From 3ab39559cfb589f4cf038ea80672bee412f967d2 Mon Sep 17 00:00:00 2001 From: Bunker Date: Sun, 7 Jun 2015 08:29:45 +0200 Subject: added tags, summary or content to home page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added tags to homepage list view * Added Summary or content switch to homepage view * Added small separator for menu between pages and external links * Changed from useso.com to google api as according to useso.com instructions on there homepage as source for fonts — also loads a lot faster * updated README to represent changes and added functionality --- README.md | 6 ++++++ layouts/index.html | 17 +++++++++++++++++ layouts/pages/signle.html | 0 layouts/partials/head.html | 3 +-- layouts/partials/header.html | 4 +++- static/css/slim.css | 20 ++++++++++++++++++++ 6 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 layouts/pages/signle.html diff --git a/README.md b/README.md index 96bc150..f47c429 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ You could add `params` into your site's `config.toml` file: GithubID = "Your Github ID" TwitterID = "Your Twitter ID" AnalyticsID = "Your Google Analytics tracking code" + Summary = true # takes true or false + Content = false # takes true or false + # if both are set to true, summary is shown. ``` if you use `config.yaml`, it could look like: @@ -35,6 +38,9 @@ params: GithubID: "Your Github ID" TwitterID: "Your Twitter ID" AnalyticsID: "Your Google Analytics tracking code" + Summary: true # takes true or false + Content: false # takes true or false + # if both are set to true, summary is shown ``` ## Build your site diff --git a/layouts/index.html b/layouts/index.html index da5754c..83cd23f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -14,6 +14,23 @@

{{ .Title }}

+ {{ if .Params.tags }} + + {{ end }} + {{ if .Site.Params.Summary }} +
+ {{ .Summary }} + +
+ {{ else if .Site.Params.Content }} +
+ {{ .Content }} +
+ {{ end }}
{{ end }} diff --git a/layouts/pages/signle.html b/layouts/pages/signle.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ff8c638..ffbb74c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,8 +5,7 @@ - - + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 57204a7..9ee2d33 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,7 +8,9 @@