Added tags and post about LinuxDays.

This commit is contained in:
Greenscreener
2019-08-27 16:34:50 +02:00
parent e05c20b4ed
commit 0aed293cbe
9 changed files with 50 additions and 15 deletions
+7 -1
View File
@@ -30,4 +30,10 @@ other = "Přednášející"
other = "Datum přednášky"
[talks-paginator-heading]
other = "Nadcházející a proběhlé Talky"
other = "Nadcházející a proběhlé Talky"
[tags]
other = "Tagy"
[posts_with_tag]
other = "Přízpěvky s tagem"
+7 -1
View File
@@ -25,4 +25,10 @@ other = "{{ .Name }} didn't tell us anything about themselves."
other = "Speaker"
[talks-paginator-heading]
other = "Upcoming and past Talks"
other = "Upcoming and past Talks"
[tags]
other = "Tags"
[posts_with_tag]
other = "Posts with tag"
+1 -12
View File
@@ -1,15 +1,4 @@
{{ define "main" }}
{{ partial "pageHeader.html" . }}
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
{{ partial "paginator-buttons.html" $paginator }}
{{ range $paginator.Pages }}
<div class="box">
<div class="pageHeaderContainer">
{{ partial "blogPageHeader.html" . }}
</div>
<div class="content"><p> {{ .Summary }} <a href="{{ .Permalink }}">{{ T "readmore" }}</a> </p></div>
</div>
{{ end }}
{{ partial "paginator-buttons.html" $paginator }}
{{ partial "blogList.html" . }}
{{ end }}
@@ -0,0 +1,12 @@
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
{{ partial "paginator-buttons.html" $paginator }}
{{ range $paginator.Pages }}
<div class="box">
<div class="pageHeaderContainer">
{{ partial "blogPageHeader.html" . }}
</div>
<div class="content"><p> {{ .Summary }} <a href="{{ .Permalink }}">{{ T "readmore" }}</a> </p></div>
</div>
{{ end }}
{{ partial "paginator-buttons.html" $paginator }}
@@ -4,4 +4,10 @@
<p class="has-text-grey">
{{- T "author" -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p>
{{ $baseUrl := .Site.BaseURL }}
{{ if .Params.tags }}
<p class="has-text-grey">
{{- T "tags" -}}: {{ range .Params.tags }}{{ with $.Site.GetPage (printf "tags/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p>
{{ end }}
</div>
+7
View File
@@ -0,0 +1,7 @@
{{ define "main" }}
<div class="pageHeader">
<h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ T "posts_with_tag" }} "{{ .Title }}":</a></h2>
</div>
{{ partial "blogList.html" . }}
{{ end }}
{{ define "title" }}{{ T "posts_with_tag" }} "{{ .Title }}" | {{ .Site.Title }}{{ end }}