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> <title>{{ .Site.Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" 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 -}} {{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}"> <link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}">

View File

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

View File

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

View File

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

View File

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