diff --git a/README.md b/README.md index de6b5ced..9c28cbec 100644 --- a/README.md +++ b/README.md @@ -612,3 +612,34 @@ aliases: --author=Satoshi Nakamoto: Satoshi Nakamoto gavinandresen: Gavin Andresen ``` + +### Blog Posts + +Posts for the [Bitcoin.org Site Blog][] should be added to the `_posts` +directory with the naming convention: +`YEAR-MONTH-DAY-ARBITRARY_FILE_NAME` (with year, month, and day as +two-digit numbers). The YAML front matter should be similar to this: + + --- + type: posts + layout: post + lang: en + category: blog + + title: "Quarterly Report March 2015" + permalink: /en/posts/quarterly-report-march-2015.html + date: 2015-03-05 + author: > + David A. Harding (email, GitHub, + Reddit) + --- + +The type, layout, and category should always be as specified above. The +other parameters should be set to values specific to that post, but the +permalink must end in '.html'. + +Below the YAML front matter, enter the content of the post in Markdown +format. Images should be placed in `img/blog/free` if they are +MIT-licensed or `img/blog/nonfree` if they have a more restrictive +copyright license. diff --git a/_config.yml b/_config.yml index 654be003..ff2b2630 100644 --- a/_config.yml +++ b/_config.yml @@ -165,7 +165,10 @@ aliases: safe: false port: 4000 +## Used in older version of Jekyll base-url: / +## Used in newer versions of Jekyll +baseurl: / source: . destination: ./_site diff --git a/_contrib/bco-htmlproof b/_contrib/bco-htmlproof index b799f8e3..1873d691 100755 --- a/_contrib/bco-htmlproof +++ b/_contrib/bco-htmlproof @@ -27,7 +27,7 @@ HTML::Proofer.new( ## require updating :href_swap => { ## (Hack) Append '$' to the ends of filenames we don't want to append .html to - /(css|png|rss|pdf|jpg|asc)$/ => '\1$', + /(css|png|rss|pdf|jpg|asc|xml)$/ => '\1$', ## Append .html to end of most URLs so proofer can find the local files /^( diff --git a/_layouts/base.html b/_layouts/base.html index 9bf1fc39..5a05d34b 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -95,6 +95,7 @@ {% endcase %} {% translate menu-press layout %} {% translate menu-about-us layout %} + Blog
Posted to the Bitcoin.org Site + Blog on {{ page.date | date: "%d %B %Y" }} {% if page.author %} by {{ page.author }}{% endif %}{% if page.meta %} {{ page.meta }}{% endif %}
+ +Discover what's new on Bitcoin.org or subscribe to the RSS feed
+ +