From 522d13352bb45b7f52551d91c4c5894493a74dd9 Mon Sep 17 00:00:00 2001 From: David Darnes Date: Wed, 15 Jun 2016 01:28:56 +0100 Subject: [PATCH] Adds in basic page layouts and includes for pages, posts and a front blog --- _includes/favicons.html | 18 ++++++++++++++++++ _includes/footer.html | 9 +++++++++ _includes/header.html | 15 +++++++++++++++ _includes/pagination.html | 17 +++++++++++++++++ _includes/posts.html | 22 ++++++++++++++++++++++ _layouts/default.html | 25 +++++++++++++++++++------ _layouts/front.html | 21 +++++++++++++++++++++ _layouts/page.html | 17 +++++++++++++++++ _layouts/post.html | 22 ++++++++++++++++++++++ garth-jekyll-theme.gemspec | 2 +- 10 files changed, 161 insertions(+), 7 deletions(-) create mode 100644 _includes/favicons.html create mode 100644 _includes/footer.html create mode 100644 _includes/header.html create mode 100644 _includes/pagination.html create mode 100644 _includes/posts.html create mode 100644 _layouts/front.html create mode 100644 _layouts/page.html create mode 100644 _layouts/post.html diff --git a/_includes/favicons.html b/_includes/favicons.html new file mode 100644 index 0000000..51935ef --- /dev/null +++ b/_includes/favicons.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..6ba3f62 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,9 @@ + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..f8660d9 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,15 @@ +
+ + + + {{ site.title }} + + + +
+ +

{{ page.title }}

+ +
+ +
diff --git a/_includes/pagination.html b/_includes/pagination.html new file mode 100644 index 0000000..e424cd3 --- /dev/null +++ b/_includes/pagination.html @@ -0,0 +1,17 @@ + diff --git a/_includes/posts.html b/_includes/posts.html new file mode 100644 index 0000000..565d913 --- /dev/null +++ b/_includes/posts.html @@ -0,0 +1,22 @@ + diff --git a/_layouts/default.html b/_layouts/default.html index 9361756..2dcc463 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,8 +1,21 @@ - - - - -

Hello world

- {{ content }} + + + + + + + {% seo %} + + {% if site.logo %} + {% include favicons.html %} + {% endif %} + + + + + + {{ content }} + + diff --git a/_layouts/front.html b/_layouts/front.html new file mode 100644 index 0000000..66e0bc6 --- /dev/null +++ b/_layouts/front.html @@ -0,0 +1,21 @@ +--- +layout: default +--- + +
+ + {% include header.html %} + +
+ + {{ content }} + +
+ + {% include posts.html %} + + {% include pagination.html %} + + {% include footer.html %} + +
diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..d6a38f1 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,17 @@ +--- +layout: default +--- + +
+ + {% include header.html %} + +
+ + {{ content }} + +
+ + {% include footer.html %} + +
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..cf04fe9 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,22 @@ +--- +layout: default +--- + +
+ + {% include header.html %} + +
+ + + {% assign words = content | number_of_words %} +   –  {{ words | divided_by:180 }} minute read + + + {{ content }} + +
+ + {% include footer.html %} + +
diff --git a/garth-jekyll-theme.gemspec b/garth-jekyll-theme.gemspec index 0484819..8612e36 100644 --- a/garth-jekyll-theme.gemspec +++ b/garth-jekyll-theme.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'garth-jekyll-theme' - s.version = '0.1.5' + s.version = '0.1.6' s.license = 'MIT' s.summary = 'An experimental theme for Jekyll' s.description = 'An experimental theme for Jekyll, just to test this out'