diff --git a/config.yaml b/config.yaml index 6ec6da0b533ec5536fbe700f621bf963045bb5cb..d28d8a259e7669236e0d32eb96747a924e6e2d45 100644 --- a/config.yaml +++ b/config.yaml @@ -11,7 +11,7 @@ Params: flatterid: 4pq200 Author: - name: Briar Team + name: The Briar Team # String to hex encoder: http://www.wbwip.com/wbw/emailencoder.html main: - identifier: torsten diff --git a/themes/briar/layouts/_default/section.html b/themes/briar/layouts/_default/section.html index d0638f5c8b57aa58e5aa2a8cef1b7ed18826a157..b59ec484174365585df2e64acfdc0e6c0b98be7c 100644 --- a/themes/briar/layouts/_default/section.html +++ b/themes/briar/layouts/_default/section.html @@ -1,24 +1,11 @@ {{ define "main" }} - <h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }} <a href="/news/index.xml"> <img src="/img/rss-icon.png" class="rss-icon"/></a></h1> + <h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h1> {{ .Content }} {{ range .Pages.ByDate.Reverse }} {{ if not .Params.hide }} - <h3 itemprop="headline" class="blog-post-title"> + <h3 itemprop="headline"> <a href="{{.Permalink}}">{{.Title}}</a> </h3> - <p class="blog-post-meta"> - {{.Date.Format "January 2, 2006"}} by - {{ if (isset .Params "author") }} - {{ markdownify .Params.author }} - {{ else }} - The Briar Team - {{ end }} - </p> - <div> - {{ .Summary | safeHTML | truncate 250 }} - <a href='{{ .Permalink }}'><nobr>Read more →</nobr></a> - </div> - <hr/> {{ end }} {{ end }} {{ end }} diff --git a/themes/briar/layouts/_default/single.html b/themes/briar/layouts/_default/single.html index d32a1bbd5ff4b65f3a0277d6412dc8f74eefa3d5..e22c3a138fe07379c771f08888f433c7f5d628c3 100644 --- a/themes/briar/layouts/_default/single.html +++ b/themes/briar/layouts/_default/single.html @@ -1,12 +1,4 @@ {{ define "main" }} <h2>{{ .Title }}</h2> -<p> - {{.Date.Format "January 2, 2006"}} by - {{ if (isset .Params "author") }} - {{ markdownify .Params.author }} - {{ else }} - The Briar Team - {{ end }} -</p> {{ .Content }} {{ end }} diff --git a/themes/briar/layouts/news/section.html b/themes/briar/layouts/news/section.html new file mode 100644 index 0000000000000000000000000000000000000000..7e2c3ee92bab8c23bcc18846b0fae0cb3118cfe6 --- /dev/null +++ b/themes/briar/layouts/news/section.html @@ -0,0 +1,24 @@ +{{ define "main" }} + <h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }} <a href="/news/index.xml"> <img src="/img/rss-icon.png" class="rss-icon"/></a> </h1> + {{ .Content }} + {{ range .Pages.ByDate.Reverse }} + {{ if not .Params.hide }} + <h3 itemprop="headline" class="blog-post-title"> + <a href="{{.Permalink}}">{{.Title}}</a> + </h3> + <p class="blog-post-meta"> + {{.Date.Format "January 2, 2006"}} by + {{ if (isset .Params "author") }} + {{ markdownify .Params.author }} + {{ else }} + {{ .Site.Author.name }} + {{ end }} + </p> + <div> + {{ .Summary | safeHTML | truncate 250 }} + <a href='{{ .Permalink }}'><nobr>Read more →</nobr></a> + </div> + <hr/> + {{ end }} + {{ end }} +{{ end }} diff --git a/themes/briar/layouts/news/single.html b/themes/briar/layouts/news/single.html new file mode 100644 index 0000000000000000000000000000000000000000..135199f0f2f9e264b215ff3fb749cf5272cabf1b --- /dev/null +++ b/themes/briar/layouts/news/single.html @@ -0,0 +1,12 @@ +{{ define "main" }} +<h2>{{ .Title }}</h2> +<p> + {{.Date.Format "January 2, 2006"}} by + {{ if (isset .Params "author") }} + {{ markdownify .Params.author }} + {{ else }} + {{ .Site.Author.name }} + {{ end }} +</p> +{{ .Content }} +{{ end }}