Skip to content
Snippets Groups Projects
Commit f63d44ea authored by Torsten Grote's avatar Torsten Grote
Browse files

Merge branch 'show-date-and-author-only-for-n-news-pages' into 'master'

Show date and author for news pages only

See merge request !93
parents 8266cbd8 537c86aa
No related branches found
No related tags found
1 merge request!93Show date and author for news pages only
......@@ -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
......
{{ 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 }}
{{ 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 }}
{{ 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 }}
{{ 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 }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment