fixed some inconsistencies

This commit is contained in:
Michael Clemens 2023-04-16 16:40:43 +02:00
parent 6211fef2d4
commit a2136bd0b2
5 changed files with 14 additions and 9 deletions

View File

@ -8,7 +8,7 @@
<title>{{ .Site.Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "css/style.css?v1.42" | relURL }}">
<link rel="stylesheet" href="{{ "css/style.css?v1.43" | relURL }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}">

View File

@ -1,5 +1,6 @@
{{ define "main" }}
<main>
<article>
{{ $listtitle := .Title }}
{{ if or .Title .Content }}
<div>
@ -22,5 +23,6 @@
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</article>
</main>
{{ end }}

View File

@ -1,9 +1,9 @@
<article>
<h1><a href="{{ .Permalink }}">[<time>{{ .Date.Format (default "2006-01-02" .Site.Params.dateFmt) }}</time>] {{ .Title }}</a></h1>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div>
{{ .Summary }}
<b><time>{{ .Date.Format (default "2006-01-02" .Site.Params.dateFmt) }}</time>:</b> {{ .Summary }}
{{ if .Truncated }}
<a href="{{ .Permalink }}">Read more...</a>
[...]
{{ end }}
</div>
</article>

View File

@ -1,12 +1,15 @@
<header>
<nav>
<span>
<a href="/"><b>{{ $.Site.Title }}</b></a>
<a href="/"><b>{{ $.Site.Title }}</b></a>
</span>
<span>
{{ with .Site.Menus.main }}
{{ range first 1 . }} <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a> {{ end }}
{{ range after 1 . }} - <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a> {{ end }}
&nbsp;&nbsp;&nbsp;
</span>
<span>
{{ with .Site.Menus.main }}
{{ range first 1 . }} <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a> {{ end }}
{{ range after 1 . }} - <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a> {{ end }}
</span>
</nav>
{{ end }}

View File

@ -62,7 +62,7 @@ pre{
border: 1px solid orange;
}
article{
padding:24px 0
padding:10px 0
}
.center {
display: block;