feat: add three different media as blog types as testing objects, with infos on list
This commit is contained in:
@@ -62,8 +62,14 @@
|
||||
<div class="blogpost">
|
||||
{{ range .Paginator.Pages.ByPublishDate.Reverse }}
|
||||
<div class="blog-summary">
|
||||
<h4><strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong></h4>
|
||||
<div class="metadata-summary">Posted on {{ .Date.Format "2 January 2006" }} - Tagged with {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{ lower $tag }}">{{ $tag }}</a>{{ end }}</div>
|
||||
<h4>
|
||||
{{- partial "blog/pre-headline.html" . -}}
|
||||
<strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong>
|
||||
</h4>
|
||||
<div class="metadata-summary">
|
||||
{{- partial "blog/verb.html" . }}
|
||||
on {{ .Date.Format "2 January 2006" }} - Tagged with {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{ lower $tag }}">{{ $tag }}</a>{{ end }}
|
||||
</div>
|
||||
{{ .Summary }} <a class="learn-more" href="{{ .RelPermalink }}"></a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{{- $cats := .Page.Params.categories }}
|
||||
{{- $symbols := dict "news" "🗞️" "presentation" "🎤" "podcast" "🎧" }}
|
||||
{{- $selection := "" }}
|
||||
{{- range $cat := $cats }}
|
||||
{{- with index $symbols $cat }}
|
||||
{{- $selection = (printf "%s " .) | safeHTML }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- return $selection }}
|
||||
12
themes/hugo-sustain/layouts/partials/blog/verb.html
Normal file
12
themes/hugo-sustain/layouts/partials/blog/verb.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- $cats := .Page.Params.categories }}
|
||||
{{- $symbols := dict "news" "Article published" "presentation" "Presentation given" "podcast" "Podcast released" }}
|
||||
{{- $selection := "" }}
|
||||
{{- range $cat := $cats }}
|
||||
{{- with index $symbols $cat }}
|
||||
{{- $selection = . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if not $selection }}
|
||||
{{- $selection = "Blogged" }}
|
||||
{{- end }}
|
||||
{{- return $selection }}
|
||||
Reference in New Issue
Block a user