mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-01 07:45:01 -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 %}
|
{% if post.author %}
|
||||||
{% assign author = post.author %}
|
{% assign author = post.author %}
|
||||||
|
{% elsif page.author %}
|
||||||
|
{% assign author = page.author %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign author = site.author %}
|
{% assign author = site.author %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -11,7 +11,11 @@ layout: default
|
|||||||
{{ content }}
|
{{ content }}
|
||||||
{% unless page.footer == false %}
|
{% unless page.footer == false %}
|
||||||
<footer>
|
<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 %}
|
{% unless page.sharing == false %}
|
||||||
{% include post/sharing.html %}
|
{% include post/sharing.html %}
|
||||||
{% endunless %}
|
{% 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.
|
Octopress offers some rake tasks to create post and pages preloaded with metadata and according to Jekyll's naming conventions.
|
||||||
|
|
||||||
## Blog Posts
|
## 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
|
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
|
||||||
used as the slug for the url, and the date helps with file distinction and determines the sorting order for post loops.
|
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.
|
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