diff --git a/6-blog.md b/6-blog.md new file mode 100644 index 0000000..05685ce --- /dev/null +++ b/6-blog.md @@ -0,0 +1,6 @@ +--- +layout: blog +title: blog +permalink: /blog/ +group: nav +--- \ No newline at end of file diff --git a/_config.yml b/_config.yml index 0111f5a..885bb15 100644 --- a/_config.yml +++ b/_config.yml @@ -9,9 +9,15 @@ twitter: pebblecode github: pebblecode vimeo: pebblecode + # Build settings markdown: kramdown redirects: yes sass: style: :compressed +permalink: "/blog/:title" + +# Pagination +paginate: 8 +paginate_path: "/blog/:num" diff --git a/_includes/nav.html b/_includes/nav.html index 72ab72b..df1c04b 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -9,4 +9,4 @@ {% endfor %} {% assign nav = nil %} {% assign group = nil %} -Blog \ No newline at end of file + \ No newline at end of file diff --git a/_layouts/blog.html b/_layouts/blog.html new file mode 100644 index 0000000..619aa30 --- /dev/null +++ b/_layouts/blog.html @@ -0,0 +1,90 @@ +--- +layout: blog +--- +{% include head.html %} + + + + {% include header.html %} + +
+
+ {% if paginator.next_page == 2 %} + {% for post in site.posts %} + {% if post.featured == true %} + {% capture count %}{{ count | plus: '1' }}{% endcapture %} + {% if count == '1' %} +
+ Featured Post +
+

{{ post.title }}

+ + + {% endif %} + {% endif %} + {% endfor %} + {% for post in site.posts %} + {% if post.featured == true %} + {% capture counttwo %}{{ counttwo | plus: '1' }}{% endcapture %} + {% if counttwo == '2' or counttwo == '3'%} +
+ Featured Post +
+

{{ post.title }}

+ + + {% endif %} + {% endif %} + {% endfor %} + {% endif %} +
+
+ + +
+
+ +
+ + +
+ + + {% if paginator.total_pages > 1 %} +
+
+ +
+
+ {% endif %} + + {% include footer.html %} + + + + + + + + \ No newline at end of file diff --git a/_layouts/home.html b/_layouts/home.html index e086dbe..ed87630 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -25,9 +25,9 @@

{{page.hero-title}}

- Featured Case Study - {{page.feat-client}} -
+ Featured Case Study + {{page.feat-client}} +

{{page.feat-title}}

{{page.feat-excerpt}}

Read more diff --git a/_layouts/page.html b/_layouts/page.html index 0d3ba5d..e48fccb 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,5 +1,5 @@ --- -layout: default +layout: blog --- {% include head.html %} diff --git a/_layouts/post.html b/_layouts/post.html index a2b4e52..0f8a66a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,15 +1,51 @@ --- -layout: default +layout: post --- -
+{% include head.html %} -
-

{{ page.title }}

- -
+ -
- {{ content }} -
+ {% include header.html %} -
+
+
+
+ + +
+
+

{{ page.title }}

+ + +
+
+ {{content}} +
+ +
+ + + + + + {% include footer.html %} + + + + + + + + + \ No newline at end of file diff --git a/_layouts/work.html b/_layouts/work.html index 1a82c5c..ce712c5 100644 --- a/_layouts/work.html +++ b/_layouts/work.html @@ -23,7 +23,6 @@

AstraZeneca

Harnessing Knowledge

-

AZ had over 200 million documents. Printed out on paper, that would weigh more than the Titanic.

They used over 100 different applications to search them all. That meant over 100 passwords, interfaces and systems to learn and no common way to collate results.