init - lots of changes from lugo
This commit is contained in:
8
layouts/partials/footer.html
Normal file
8
layouts/partials/footer.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<hr>
|
||||
<footer>
|
||||
<p>
|
||||
Poem + Hugo = Pogo
|
||||
<br><br>
|
||||
© Pogo 2024
|
||||
</p>
|
||||
</footer>
|
19
layouts/partials/head.html
Normal file
19
layouts/partials/head.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<head>
|
||||
<title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
<link rel="canonical" href="{{ .Site.BaseURL }}">
|
||||
<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>
|
||||
<link rel='stylesheet' type='text/css' media='screen' href='/style.css'>
|
||||
{{ with .Site.Params.favicon }}
|
||||
<link rel="icon" href="{{ . }}">
|
||||
{{ end -}}
|
||||
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
|
||||
{{ if isset .Params "tags" }}
|
||||
<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . " , " }}{{ end }}">
|
||||
{{ end -}}
|
||||
{{ if isset .Params "redirect" }}
|
||||
<meta http-equiv="refresh" content="2; URL={{ with .Params.redirect }}{{ . }}{{ end }}">
|
||||
{{ end -}}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta charset="utf-8">
|
||||
</head>
|
5
layouts/partials/header.html
Normal file
5
layouts/partials/header.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<header>
|
||||
<h3>
|
||||
<a href="/">{{ .Site.Title }}</a>
|
||||
</h3>
|
||||
</header>
|
@@ -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,13 +0,0 @@
|
||||
{{- 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>
|
||||
{{- end -}}
|
||||
{{- end }}
|
Reference in New Issue
Block a user