From 01c297d5e7eb25f0cd6da2f536662ba881fb96d5 Mon Sep 17 00:00:00 2001 From: Perry Woodin Date: Thu, 14 Jul 2016 14:05:47 -0400 Subject: [PATCH] Blog section The blog is driven by the _posts directory nested in each language. --- _data/people.yml | 6 ++- _i18n/en.yml | 3 ++ _i18n/en/_posts/README.md | 8 ++++ _i18n/en/blog/header.html | 12 ++++++ _i18n/es/blog/header.html | 10 +++++ _includes/author.html | 3 -- _includes/nav-desktop.html | 15 ++++++-- _includes/nav-mobile.html | 4 +- _includes/pagination_navigation.html | 10 +++++ _includes/pagination_navigation_all.html | 21 +++++++++++ _layouts/default.html | 1 - _posts/README.md | 2 +- _sass/_header.scss | 45 +++++++++++++++++++++++ assets/css/style.scss | 1 + assets/img/logo-blue.png | Bin 0 -> 12776 bytes assets/img/placeholder-full-image.jpg | Bin 0 -> 63798 bytes assets/img/placeholder-news-post.jpg | Bin 0 -> 23460 bytes blog/index.html | 36 ++++++++++++++++++ 18 files changed, 166 insertions(+), 11 deletions(-) create mode 100644 _i18n/en/_posts/README.md create mode 100644 _i18n/en/blog/header.html create mode 100644 _i18n/es/blog/header.html create mode 100644 _includes/pagination_navigation.html create mode 100644 _includes/pagination_navigation_all.html create mode 100644 _sass/_header.scss create mode 100644 assets/img/logo-blue.png create mode 100644 assets/img/placeholder-full-image.jpg create mode 100644 assets/img/placeholder-news-post.jpg create mode 100644 blog/index.html diff --git a/_data/people.yml b/_data/people.yml index 83ad269..16107bd 100644 --- a/_data/people.yml +++ b/_data/people.yml @@ -1,4 +1,8 @@ perry: name: Perry Woodin twitter: PerryWoodin - image: /assets/img/perry_sm.jpg \ No newline at end of file + image: /assets/img/perry_sm.jpg +tungfa: + name: tungfa + twitter: + image: \ No newline at end of file diff --git a/_i18n/en.yml b/_i18n/en.yml index 9fab2ff..5c9f53c 100644 --- a/_i18n/en.yml +++ b/_i18n/en.yml @@ -176,6 +176,9 @@ pages: youtube-btn: Dash YouTube # Need some Dash - get content from get-dash ^^ + blog: + title: The Digital Cash Blog + description: The Digital Cash Blog nav: diff --git a/_i18n/en/_posts/README.md b/_i18n/en/_posts/README.md new file mode 100644 index 0000000..408fe59 --- /dev/null +++ b/_i18n/en/_posts/README.md @@ -0,0 +1,8 @@ +To create a new post, all you need to do is create a file in the _posts directory. How you name files in this folder is important. Jekyll requires blog post files to be named according to the following format: + +YEAR-MONTH-DAY-title.MARKUP +Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. For example, the following are examples of valid post filenames: + +2011-12-31-new-years-eve-is-awesome.md +2011-12-31-new-years-eve-is-awesome.html +2012-09-12-how-to-write-a-blog.textile \ No newline at end of file diff --git a/_i18n/en/blog/header.html b/_i18n/en/blog/header.html new file mode 100644 index 0000000..f4dc13c --- /dev/null +++ b/_i18n/en/blog/header.html @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/_i18n/es/blog/header.html b/_i18n/es/blog/header.html new file mode 100644 index 0000000..7e96aad --- /dev/null +++ b/_i18n/es/blog/header.html @@ -0,0 +1,10 @@ +
+ + + {% include nav-desktop.html %} + + +

{% t pages.blog.title %}

+

{% t pages.blog.description %}

+ +
\ No newline at end of file diff --git a/_includes/author.html b/_includes/author.html index 2b96145..8b90d3e 100644 --- a/_includes/author.html +++ b/_includes/author.html @@ -1,8 +1,5 @@ {% if page.author %}
-
- -
{% assign author = site.data.people[page.author] %}
+
- }