vodoraslo.xyz/themes/lugo/layouts/_default/baseof.html
2024-09-13 17:00:58 +03:00

63 lines
5.2 KiB
HTML

<!DOCTYPE html>
<html lang="{{ .Site.Language }}" class="main-background-image">
<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' href='/style.css?v=1.0.0.12'>
{{ with .Site.Params.favicon }}<link rel="icon" href="{{ . }}">
{{ end -}}
<meta name="description" content="{{ if .Page.Params.description }}{{ .Page.Params.description }}{{ else if .Summary}}{{ .Summary }}{{else}}{{ .Site.Params.description}}{{ end }}"/>
{{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}">
{{ end -}}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="index, follow">
<meta charset="utf-8">
</head>
<div class="main-background-image">
<body>
{{ if .Site.Menus.main }}{{ partial "nav.html" . }}{{ end -}}
<main>
<header><h1 style="margin-top: 0%; padding-top: 0.5em;" id="tag_{{ .Title }}">{{ block "title" . }}{{ end }}</h1></header>
{{ if not .IsHome}}<hr style="color:var(--strong);background-color: var(--strong); border-color: var(--strong);">{{end -}}
<article style="padding: 0% 2.5% 0% 2.5%;">
{{ if not .IsHome}}{{ partial "breadcrumbs.html" . }}{{end -}}
{{ block "main" . }}
{{/* How to print Japanese weekdays in Hugo frontmatter. https://gist.github.com/ishikawa/7f06898826b66176150626f780f90d67 */}}
{{ if not .IsHome}}<small><em><p style="color: var(--muted_text);">作成日: <time datetime="{{ .Page.PublishDate.Format "2006-01-02T15:04:05Z07:00" }}" style="color: var(--muted_text);">{{ .Page.PublishDate.Format "2006" }}年{{ $t := .Page.PublishDate }}{{ $t.Format "1月2日"}}{{ if eq ($t.Weekday) 0 }} (日){{ end }}{{ if eq ($t.Weekday) 1 }} (月){{ end }}{{ if eq ($t.Weekday) 2 }} (火){{ end }}{{ if eq ($t.Weekday) 3 }} (水){{ end }}{{ if eq ($t.Weekday) 4 }} (木){{ end }}{{ if eq ($t.Weekday) 5 }} (金){{ end }}{{ if eq ($t.Weekday) 6 }} (土){{ end }}</time>; 最終更新日: <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}" style="color: var(--muted_text);">{{ .Lastmod.Format "2006" }}年{{ $t := .Lastmod }}{{ $t.Format "1月2日"}}{{ if eq ($t.Weekday) 0 }} (日){{ end }}{{ if eq ($t.Weekday) 1 }} (月){{ end }}{{ if eq ($t.Weekday) 2 }} (火){{ end }}{{ if eq ($t.Weekday) 3 }} (水){{ end }}{{ if eq ($t.Weekday) 4 }} (木){{ end }}{{ if eq ($t.Weekday) 5 }} (金){{ end }}{{ if eq ($t.Weekday) 6 }} (土){{ end }}</time> {{/*{{- if .Param "showrss" }} <a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em; float:right;" alt="RSS Feed" title="Subscribe via RSS for updates."></a> {{ end }} */}} </p></em></small>{{end -}}
{{ if .Params.toc }}<details><summary><strong>Table Of Contents:</strong></summary>{{ .TableOfContents }}</details>{{end -}}
{{- if .Content }}
<div class="post-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
{{ if not .IsHome}}<div style="text-align: right;">
{{/* <!-- <br><a href="mailto:chad@vodoraslo.xyz?subject=Re: {{ .Page.Title }}&body=Page in question - {{ .Page.Permalink }}"><i>📬 Reply via email!</i></a><br> -->*/}}
</div>{{end -}}
</div>
{{- end }}
{{ end }}
<br>
<hr style="color:var(--strong); margin: 0; background-color: var(--strong); border-color: var(--strong);">
{{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}}
<div >{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}}</div>
</article>
</main>
{{ block "footer" . }}
<footer style="padding-top: 0.5em;">
{{/*
<!-- {{ if not .IsHome}}<div style="padding-bottom: 0.7em;" class="index-links"><a href="{{ .Site.BaseURL }}">Homepage</a></div> {{end -}} -->
<!-- {{- if .Param "showrss" }} <div><a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a></div> {{ end }} -->
<!-- <div style="padding-bottom: 0.2em; display: inline-block;"><a href="{{ .Site.BaseURL }}articles">📜 Articles</a> <strong>&bull;</strong> <a href="{{ .Site.BaseURL }}library">📚 Library</a> <strong>&bull;</strong> <a href="https://wiki.vodoraslo.xyz">🌐 Wiki</a> <strong>&bull;</strong> <a href="{{ .Site.BaseURL }}contact">📬 Contact</a> <strong>&bull;</strong> <a href="{{ .Site.BaseURL }}index.xml">📰 RSS</a><hr></div> -->
*/}}
<div style="padding-bottom: 0.2em; display: inline-block;"><a href="{{ .Site.BaseURL }}articles" title="List of all my articles and writings.">📜 Articles</a> <strong>&bull;</strong> <a href="{{ .Site.BaseURL }}library" title="My personal library.">📚 Library</a> <strong>&bull;</strong> <a href="https://wiki.vodoraslo.xyz" title="My personal Wiki page.">🌐 Wiki</a> <strong>&bull;</strong> <a href="{{ .Site.BaseURL }}index.xml" title="Subscribe via RSS for updates.">📰 RSS</a><hr></div>
{{/*<!-- {{ if not .IsHome}}<div style="padding-bottom: 0.7em;" class="index-links"><a href="{{ .Site.BaseURL }}">🏠 Homepage</a></div> {{end -}} -->*/}}
<div style="padding-bottom: 0.7em;" class="index-links"><a href="{{ .Site.BaseURL }}" title="Return to the homepage.">🏠 Homepage</a></div>
</footer>
{{ end }}
</body>
</div>
</html>