Skip to content

Commit

Permalink
Merge pull request #108 from strauhmanis/master
Browse files Browse the repository at this point in the history
[Feature] Date customisation for issue #107
  • Loading branch information
daviddarnes authored Sep 25, 2018
2 parents 85351a0 + f9a3a5c commit 4169222
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ You'll need to change the `description`, `title` and `url` to match with the pro

Google Analytics can be enabled via the site configuration too. Add your tracking ID to the `/_config.yml` file in the following method: `google_analytics: 'UA-XXXXXXXX-1'`

Date format can be customised in the `/_config.yml` with the option `date_format` (please refer to Liquid date filters documentation for learning about formatting possibilities):
`date_format: "%-d %B %Y" # NOTE: only placeholder formatting is supported (do not try to use ordinal dates introduced in Jekyll 3.8)`

### Site performance settings

Alembic comes with a couple of options to enhance the speed and overall performance of the site you build upon it.
Expand Down
3 changes: 2 additions & 1 deletion _includes/post-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
{% endif %}

<small class="small post-meta">
{{ categories | append: "&nbsp;&middot;&nbsp;" }}<time datetime="{{ page.date | date_to_xmlschema }}" class="time">{{ page.date | date_to_string }}</time>
{% assign date_format = site.date_format | default: "%d %b %Y" %}
{{ categories | append: "&nbsp;&middot;&nbsp;" }}<time datetime="{{ page.date | date_to_xmlschema }}" class="time">{{ page.date | date: date_format }}</time>
</small>

0 comments on commit 4169222

Please sign in to comment.