From 690277cb014a31582a98905583ee5f28e83a4ee5 Mon Sep 17 00:00:00 2001 From: Chris Ritzo Date: Mon, 24 Feb 2014 16:36:03 -0500 Subject: [PATCH] updated blog front page template to provide the 10 most recent post teasers, updated the front page teaser view as well. Both teaser views show the blog post title, date, author,some of the text and the image defined in each post's front matter variable teaser_image: added pikwi include code. --- test.commotion/_config.yml | 3 + .../_includes/blog-front-content.html | 11 + test.commotion/_includes/footer.html | 2 +- test.commotion/_includes/piwik-code | 15 ++ test.commotion/_layouts/blog-front.html | 2 +- test.commotion/_layouts/front.html | 15 +- ...rticipates-dc-internet-freedom-hack-day.md | 1 + test.commotion/_site/about/faq/index.html | 63 ++++-- .../_site/about/guiding-principles/index.html | 51 +++-- test.commotion/_site/about/index.html | 41 ++-- .../_site/about/license-privacy/index.html | 33 ++- test.commotion/_site/about/press/index.html | 47 ++-- .../_site/about/where-its-used/index.html | 63 ++++-- test.commotion/_site/access-denied/index.html | 27 ++- .../index.html" | 64 ++++-- .../index.html | 68 +++--- .../index.html | 90 ++++---- .../index.html | 52 +++-- .../2012/08/22/exploring-meshaging/index.html | 48 ++-- .../08/23/meshtether-test-release/index.html | 48 ++-- .../_site/blog/2012/09/19/making/index.html | 48 ++-- .../10/08/diving-deeper-meshaging/index.html | 56 +++-- .../01/updating-commotion-package/index.html | 130 ++++++----- .../index.html | 52 +++-- .../2012/11/14/cost-mesh-networks/index.html | 56 +++-- .../index.html | 74 ++++--- .../index.html | 68 +++--- .../index.html | 68 +++--- .../index.html | 116 +++++----- .../index.html | 78 ++++--- .../index.html | 44 ++-- .../index.html | 56 +++-- .../index.html | 64 ++++-- .../index.html | 108 +++++---- .../index.html | 60 +++-- .../index.html | 112 ++++++---- .../index.html | 52 +++-- .../index.html | 60 +++-- .../index.html | 62 ++++-- .../index.html | 76 ++++--- .../19/commotion-dr2-release-notes/index.html | 112 ++++++---- .../index.html | 138 +++++++----- .../index.html | 68 +++--- .../building-popup-mesh-networks/index.html | 102 +++++---- .../index.html | 56 +++-- .../index.html | 112 ++++++---- .../commotion-r1-breaking-changes/index.html | 60 +++-- .../index.html | 56 +++-- test.commotion/_site/blog/index.html | 208 +++++++++++++++++- test.commotion/_site/chat/index.html | 27 ++- .../_site/content/about-commotion/index.html | 29 ++- .../content/commotion-10-released/index.html | 25 ++- .../_site/content/get-involved/index.html | 35 ++- .../_site/content/get-started/index.html | 35 ++- .../questions-about-commotion/index.html | 25 ++- test.commotion/_site/css/commotion.css | 91 +++++++- .../hig/design-principles/index.html | 65 +++--- .../_site/developer/hig/downloads/index.html | 41 ++-- .../developer/hig/introduction/index.html | 69 +++--- .../developer/hig/key-concepts/index.html | 85 ++++--- .../developer/hig/key-processes/index.html | 85 ++++--- .../_site/developer/hig/style/index.html | 59 +++-- .../hig/updating-guidelines/index.html | 41 ++-- .../_site/developer/resources/index.html | 41 ++-- .../grounding-lightning-protection/index.html | 35 ++- .../docs/build/roof-mount-guide/index.html | 35 ++- .../index.html | 109 +++++---- .../docs/cck/building-mounting/index.html | 31 ++- .../learn-about-rooftop-mounts/index.html | 109 +++++---- .../learn-rooftop-basics/index.html | 109 +++++---- .../prep-install-rooftop-nodes/index.html | 109 +++++---- test.commotion/_site/docs/cck/index.html | 77 ++++--- .../common-configuration/index.html | 111 ++++++---- .../configure-commotion/index.html | 111 ++++++---- .../cck/installing-configuring/index.html | 31 ++- .../install-and-recover-tftp/index.html | 111 ++++++---- .../install-ubiquiti-router/index.html | 111 ++++++---- .../index.html | 111 ++++++---- .../_site/docs/cck/networking/index.html | 31 ++- .../cck/networking/intro-to-mesh/index.html | 105 +++++---- .../learn-networking-basics/index.html | 105 +++++---- .../index.html | 95 ++++---- .../index.html | 115 +++++----- .../get-word-out-flyer-design/index.html | 115 +++++----- .../identify-neighborhood-skills/index.html | 115 +++++----- .../_site/docs/cck/planning/index.html | 31 ++- .../inventory-the-neighborhood/index.html | 115 +++++----- .../planning/survey-your-neighbors/index.html | 115 +++++----- .../planning/wireless-challenges/index.html | 115 +++++----- .../_site/docs/get-involved/index.html | 53 +++-- .../_site/docs/get-started/index.html | 61 +++-- test.commotion/_site/docs/hig/index.html | 25 ++- test.commotion/_site/docs/index.html | 61 +++-- .../_site/docs/localization/index.html | 61 +++-- .../_site/docs/supported-devices/index.html | 61 +++-- .../download-commotion-client/index.html | 27 ++- .../_site/download/android/index.html | 64 ++++-- .../_site/download/computers/index.html | 59 +++-- test.commotion/_site/download/index.html | 35 ++- .../_site/download/openbts/index.html | 65 ++++-- .../download/openwrt/ubiquiti/index.html | 35 ++- .../_site/download/routers/index.html | 88 +++++--- .../download/verify-signatures/index.html | 35 ++- test.commotion/_site/es/index.html | 113 +++------- test.commotion/_site/help/connect/index.html | 25 ++- .../_site/help/questions/index.html | 25 ++- test.commotion/_site/index.html | 146 +++++------- test.commotion/_site/jobs/index.html | 43 ++-- test.commotion/_site/non-front.html | 35 ++- test.commotion/_site/osmobts/index.html | 27 ++- .../index.html | 35 ++- test.commotion/blog/index.md | 1 - test.commotion/css/commotion.css | 4 +- 113 files changed, 4553 insertions(+), 2737 deletions(-) create mode 100644 test.commotion/_includes/blog-front-content.html create mode 100644 test.commotion/_includes/piwik-code diff --git a/test.commotion/_config.yml b/test.commotion/_config.yml index 8d965ac4..fdd4b988 100644 --- a/test.commotion/_config.yml +++ b/test.commotion/_config.yml @@ -5,6 +5,9 @@ encoding: utf-8 url: "staging.commotionwireless.net" port: 80 +piwik: + base_url: piwik.opentechinstitute.org + site_id: 1 permalink: /blog/:year/:month/:day/:title pagination: 3 diff --git a/test.commotion/_includes/blog-front-content.html b/test.commotion/_includes/blog-front-content.html new file mode 100644 index 00000000..e69e3ecb --- /dev/null +++ b/test.commotion/_includes/blog-front-content.html @@ -0,0 +1,11 @@ +

Recent Blog Posts

+ {% for post in site.posts limit: 10 %} +
+

{{ post.title }}

+ +

{{ post.date | date: "%B %d, %Y" }} {{ post.post_author }}

+

{{ post.content | split:'' | first | strip_html }}

+ Read More +
+
+ {% endfor %} diff --git a/test.commotion/_includes/footer.html b/test.commotion/_includes/footer.html index 34cfaa2b..a1143b7b 100644 --- a/test.commotion/_includes/footer.html +++ b/test.commotion/_includes/footer.html @@ -15,6 +15,6 @@ - +{% include piwik-code %} diff --git a/test.commotion/_includes/piwik-code b/test.commotion/_includes/piwik-code new file mode 100644 index 00000000..f7fd316a --- /dev/null +++ b/test.commotion/_includes/piwik-code @@ -0,0 +1,15 @@ + + + diff --git a/test.commotion/_layouts/blog-front.html b/test.commotion/_layouts/blog-front.html index 16767059..9f617a3f 100644 --- a/test.commotion/_layouts/blog-front.html +++ b/test.commotion/_layouts/blog-front.html @@ -3,7 +3,7 @@ {% include pageheadings.html %} {% include content-area-open.html %} {% include left-twothird-open.html %} -{{ content }} +{% include blog-front-content.html %} {% include left-twothird-close.html %} {% include right-col-start.html %} {% include blog-release-post.html %} diff --git a/test.commotion/_layouts/front.html b/test.commotion/_layouts/front.html index 3207d94d..54b2a1ed 100644 --- a/test.commotion/_layouts/front.html +++ b/test.commotion/_layouts/front.html @@ -8,13 +8,14 @@
-

Recent Blog Posts

- - - - - - +

Recent Blog Posts

+ {% for post in site.posts limit: 3 %} +
+

{{ post.title }}

+

{{ post.date | date: "%B %d, %Y" }} {{ post.post_author }}

+

{{ post.content | split:'' | first | strip_html }}

+
+ {% endfor %}
diff --git a/test.commotion/_posts/2014-01-14-commotion-team-participates-dc-internet-freedom-hack-day.md b/test.commotion/_posts/2014-01-14-commotion-team-participates-dc-internet-freedom-hack-day.md index 651cdbbe..0b47b3d7 100644 --- a/test.commotion/_posts/2014-01-14-commotion-team-participates-dc-internet-freedom-hack-day.md +++ b/test.commotion/_posts/2014-01-14-commotion-team-participates-dc-internet-freedom-hack-day.md @@ -5,6 +5,7 @@ categories: [ui,ux,hack day] created: 2014-01-14 changed: 2014-01-15 post_author: critzo +teaser_image: uihackday-011114.jpeg lang: en --- Commotion card sort activity from the DC Internet Freedom Hack Day, 1/11/2014 diff --git a/test.commotion/_site/about/faq/index.html b/test.commotion/_site/about/faq/index.html index d3dba4dc..b814f8b0 100644 --- a/test.commotion/_site/about/faq/index.html +++ b/test.commotion/_site/about/faq/index.html @@ -1,4 +1,3 @@ - @@ -17,7 +16,7 @@ -