Skip to content

Commit

Permalink
Add documentation link, added date format option
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Greenough committed Mar 23, 2019
1 parent fd7c212 commit c4d3d5e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 8 deletions.
14 changes: 14 additions & 0 deletions DOCUMENTATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
_ _ _
(_) | | | |
_ __ _ ___| |__ ___ | | __ _ ___
| '_ \| |/ __| '_ \ / _ \| |/ _` / __|
| | | | | (__| | | | (_) | | (_| \__ \
|_| |_|_|\___|_| |_|\___/|_|\__,_|___/

Thank you for downloading Nicholas!

Documentation:
https://github.com/adamgreenough/nicholas/wiki/

Main Website:
https://nicholas.adgr.dev/
13 changes: 8 additions & 5 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
============================================ */

// Posts per page
'posts_per_page' => 2,
'posts_per_page' => 4,

// The name of your blog
'blog_name' => 'Nicholas Demo',
Expand All @@ -19,19 +19,22 @@
Front-end Settings
============================================ */

// Front-end theme
'frontend_theme' => 'default',

// Use the front-end (true) or API-only (false)?
'use_frontend' => true,

// Front-end theme
'frontend_theme' => 'default',

// Date format
'date_format' => 'jS F Y',

/* ============================================
Advanced Settings
============================================ */

// If your Nicholas installation is not in the web root,
// enter your folder name here with a preceding slash (eg. /blog)
'base_url' => '/blog',
'base_url' => ''

);

Expand Down
2 changes: 1 addition & 1 deletion themes/default/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h2><?= $post->title; ?></h2>
</a>
<p><?= $post->excerpt; ?></p>
<p class="small"><?= date('jS F Y', $post->date); ?> • Filed under <?= display_tag_list($post->tags); ?></p>
<p class="small"><?= date($config['date_format'], $post->date); ?> • Filed under <?= display_tag_list($post->tags); ?></p>
</article>

<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion themes/default/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img src="<?= $post->image; ?>" alt="<?= $post->title; ?>">

<h1><?= $post->title; ?></h1>
<p class="lead">Posted on <?= date('jS F Y', $post->date); ?> • Filed under <?= display_tag_list($post->tags); ?>
<p class="lead">Posted on <?= date($config['date_format'], $post->date); ?> • Filed under <?= display_tag_list($post->tags); ?>

<?= $post->body; ?>
</article>
Expand Down
2 changes: 1 addition & 1 deletion themes/default/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h2><?= $post->title; ?></h2>
</a>
<p><?= $post->excerpt; ?></p>
<p class="small"><?= date('jS F Y', $post->date); ?> • Filed under <?= display_tag_list($post->tags); ?></p>
<p class="small"><?= date($config['date_format'], $post->date); ?> • Filed under <?= display_tag_list($post->tags); ?></p>
</article>
<?php } ?>

Expand Down

0 comments on commit c4d3d5e

Please sign in to comment.