cleanup
Some checks are pending
Build and Push Docker Container / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Container / build-and-push (push) Waiting to run
This commit is contained in:
@@ -39,25 +39,27 @@
|
||||
|
||||
<body>
|
||||
|
||||
{{ if .Site.Menus.main }}{{ partial "nav.html" . }}{{ end -}}
|
||||
<main>
|
||||
<header><h1 id="tag_{{ .Title }}">{{ block "title" . }}{{ end }}</h1></header>
|
||||
<header>
|
||||
<h1 id="tag_{{ .Title }}">{{ block "title" . }}{{ end }}</h1>
|
||||
</header>
|
||||
|
||||
<article>
|
||||
{{ block "main" . }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}}
|
||||
{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}}
|
||||
{{ block "main" . }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ if .Params.tags }}
|
||||
<p style="margin-block-start: 3em;">Tags:
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<p class="taglist" >Tags:
|
||||
{{ $tags := .Params.tags }}
|
||||
{{ range $index, $tag := $tags }}
|
||||
<a href="{{ "tags/" | relLangURL }}{{ $tag | urlize }}">{{ $tag }}</a>{{ if lt (add $index 1) (len $tags) }}, {{ end }}
|
||||
<a class="tag" href="{{ "tags/" | relLangURL }}{{ $tag | urlize }}">{{ $tag }}</a>{{ if lt (add $index 1) (len $tags) }}, {{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
{{ block "footer" . }}
|
||||
<footer>
|
||||
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a>
|
||||
|
||||
@@ -1,20 +1,14 @@
|
||||
{{ define "title" -}}
|
||||
{{ .Title | title }}
|
||||
{{ if eq .Kind "term" }}🏷️ {{end}}{{ .Title | title }}
|
||||
{{- end }}
|
||||
|
||||
{{ define "main" -}}
|
||||
{{ .Content }}
|
||||
<ul>
|
||||
{{- range.Pages }}
|
||||
<li>
|
||||
{{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – {{ end -}}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{- if .Param "authorsinlist" }}
|
||||
{{ with .Params.authors }}
|
||||
by
|
||||
{{ delimit . ", " " und " }}
|
||||
{{end}}
|
||||
{{ end -}}
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{ .Content }}
|
||||
<ul>
|
||||
{{- range.Pages }}
|
||||
<li class="no-before">
|
||||
<a class="no-underline" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<nav>
|
||||
<ul>
|
||||
{{- $sec := .Page.Section }}{{ $file := .File.TranslationBaseName -}}
|
||||
{{ range.Site.Menus.main.ByWeight }}{{ $base := path.Base .URL }}
|
||||
<li><a {{ if or ( eq $sec $base ) ( eq $file $base ) ( and (eq $sec "") ( eq $file "_index") (eq $base "/") ) }}class="menuactive" {{ end }}href="{{ .URL }}"><span class=pre>{{ .Pre }}</span><span class=menuname>{{ .Name }}</span></a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -1,10 +0,0 @@
|
||||
{{ if or .Next .Prev -}}
|
||||
<div id="nextprev">
|
||||
{{- with .Prev }}
|
||||
<a href="{{ .RelPermalink}}"><div id="prevart">Previous:<br>{{.Title}}</div></a>
|
||||
{{ end -}}
|
||||
{{- with .Next -}}
|
||||
<a href="{{ .RelPermalink}}"><div id="nextart">Next:<br>{{.Title}}</div></a>
|
||||
{{ end -}}
|
||||
</div>
|
||||
{{ end -}}
|
||||
@@ -1,13 +1,13 @@
|
||||
{{- if isset .Params "tags" -}}
|
||||
{{- $tagsLen := len .Params.tags -}}
|
||||
{{- if gt $tagsLen 0 -}}
|
||||
<div style="clear:both" class=taglist>
|
||||
{{- with .Site.Params.relatedtext }}{{ . }}<br>{{ end -}}
|
||||
{{- range $k, $v := .Params.tags -}}
|
||||
{{- $url := printf "tags/%s" (. | urlize | lower) -}}
|
||||
<a id="tag_{{ . | lower }}" href="{{ $url | absURL }}">{{ . | title }}</a>
|
||||
{{- if lt $k (sub $tagsLen 1) }} · {{ end -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- $tagsLen := len .Params.tags -}}
|
||||
{{- if gt $tagsLen 0 -}}
|
||||
<div class="taglist">
|
||||
{{- with .Site.Params.relatedtext }}{{ . }}<br>{{ end -}}
|
||||
{{- range $k, $v := .Params.tags -}}
|
||||
{{- $url := printf "tags/%s" (. | urlize | lower) -}}
|
||||
<a class="tag" id="tag_{{ . | lower }}" href="{{ $url | absURL }}">{{ . | title }}</a>
|
||||
{{- if lt $k (sub $tagsLen 1) }} · {{ end -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<details>
|
||||
<summary>Click to reveal video.</summary>
|
||||
<iframe src="{{ index .Params 0 }}"
|
||||
loading="lazy"
|
||||
sandbox="allow-same-origin allow-scripts allow-popups"
|
||||
allowfullscreen frameborder="0"
|
||||
class="embvid"
|
||||
title="Embedded Video">
|
||||
</iframe>
|
||||
</details>
|
||||
@@ -1,20 +0,0 @@
|
||||
<!--
|
||||
class: class of the figure
|
||||
link: url the image directs to
|
||||
alt: alternative text
|
||||
caption: caption
|
||||
mouse: what the image says when moused over ("title" in HTML)
|
||||
-->
|
||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}>
|
||||
{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
|
||||
<img src="{{ .Get "src" }}"
|
||||
{{- with .Get "mouse" }} title="{{.}}"{{ end -}}
|
||||
{{- with .Get "alt" }} alt="{{.}}"{{ end -}}
|
||||
>
|
||||
{{- if .Get "link"}}</a>{{ end -}}
|
||||
{{- with .Get "caption" -}}
|
||||
<figcaption>
|
||||
{{- . -}}
|
||||
</figcaption>
|
||||
{{- end -}}
|
||||
</figure>
|
||||
@@ -1,3 +0,0 @@
|
||||
{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <ul id="tagcloud">
|
||||
{{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<li><a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a></li>
|
||||
{{ end }}</ul>{{ end }}{{ end }}
|
||||
@@ -1,6 +0,0 @@
|
||||
<iframe src="{{ index .Params 0 }}"
|
||||
loading="lazy"
|
||||
sandbox="allow-same-origin allow-scripts allow-popups"
|
||||
allowfullscreen frameborder="0"
|
||||
title="Embedded Video">
|
||||
</iframe>
|
||||
Reference in New Issue
Block a user