mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-10-31 23:35:00 -04:00
updated source from latest Octopress, added small improvement to blogging docs
This commit is contained in:
parent
76860c1d32
commit
e6c3451acf
@ -1,5 +1,7 @@
|
||||
{% if post.author %}
|
||||
{% assign author = post.author %}
|
||||
{% elsif page.author %}
|
||||
{% assign author = page.author %}
|
||||
{% else %}
|
||||
{% assign author = site.author %}
|
||||
{% endif %}
|
||||
|
@ -11,7 +11,11 @@ layout: default
|
||||
{{ content }}
|
||||
{% unless page.footer == false %}
|
||||
<footer>
|
||||
{% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
|
||||
{% if page.date or page.author %}<p class="meta">
|
||||
{% if page.author %}{% include post/author.html %}{% endif %}
|
||||
{% include post/date.html %}
|
||||
{% if page.categories %}{% include post/categories.html %}{% endif %}
|
||||
</p>{% endif %}
|
||||
{% unless page.sharing == false %}
|
||||
{% include post/sharing.html %}
|
||||
{% endunless %}
|
||||
|
@ -10,8 +10,8 @@ footer: false
|
||||
Octopress offers some rake tasks to create post and pages preloaded with metadata and according to Jekyll's naming conventions.
|
||||
|
||||
## Blog Posts
|
||||
Blog posts must be stored in the `source/_posts` directory and named according to Jekyll's naming conventions: `YYYY-MM-DD-post-title.markdown`. The name of the file is
|
||||
used as the slug for the url, and the date helps with file distinction and determines the sorting order for post loops.
|
||||
Blog posts must be stored in the `source/_posts` directory and named according to Jekyll's naming conventions: `YYYY-MM-DD-post-title.markdown`. The name of the file will be used
|
||||
as the url slug, and the date helps with file distinction and determines the sorting order for post loops.
|
||||
|
||||
Octopress provides a rake task to create new blog posts with the right naming conventions, with sensible yaml metadata.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user