diff options
author | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2017-01-11 04:22:30 +0300 |
---|---|---|
committer | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2017-01-11 04:22:30 +0300 |
commit | c1b81c7f61471abd0280924de6540938d4b1ea20 (patch) | |
tree | 6702e6c1d4f083908635b4f5184ed8c60a9d5a4e | |
parent | b8c78fde318f253507c3b7c854c16d1f76c693f3 (diff) |
generalize theme setup
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f1163cf..f7358fd 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@ <h1>{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}</h1> <div id=sub-header> - {{ .Date.Format .Site.Params.dateform }} · {{ .ReadingTime }} minute read + {{ .Date.Format (.Site.Params.dateform | default "January 2006") }} · {{ .ReadingTime }} minute read </div> <div class="entry-content"> diff --git a/layouts/index.html b/layouts/index.html index 6c4bbb6..f9662c9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ <li> <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <div id=date> - <time>{{ .Date.Format .Site.Params.dateform }}</time> + <time>{{ .Date.Format (.Site.Params.dateform | default "January 2006") }}</time> </div> </li> {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1690f79..ee6cb7b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -27,7 +27,6 @@ {{ partial "styles.html" . }} - <link rel="shortcut icon" href="/favicon.ico"> {{ if .RSSLink }} @@ -35,9 +34,9 @@ {{ end }} </head> - <body lang="{{ .Site.Params.lang }}"> + <body> <section id=nav> - <h1><a href="/">{{ .Site.Params.author }}</a></h1> + <h1><a href="/">{{ .Site.Params.name }}</a></h1> <ul> {{ range .Site.Menus.main }} <li><a href="{{ .URL }}">{{ .Name }}</a></li> |