diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 8 | ||||
-rw-r--r-- | layouts/partials/head.html | 9 | ||||
-rw-r--r-- | layouts/partials/single/footer.html | 8 | ||||
-rw-r--r-- | layouts/partials/single/header.html | 7 |
4 files changed, 21 insertions, 11 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1917788..3838be6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,6 +5,14 @@ <cite>2007—{{ now.Year }} Александр NeonXP Кирюхин. г.Казань</cite> </div> <div class="col"> + {{ with .GitInfo }} + <ul class="list-unstyled float-end"> + <li>Коммит: {{ .AbbreviatedHash }}</li> + <li>Дата: {{ .AuthorDate.Format "2006-01-02" }}</li> + </ul> + {{ end }} + </div> + <div class="col"> <ul class="list-unstyled float-end"> <li><a href="https://git.neonxp.ru/blog.git">Исходный код</a></li> <li><a href="mailto:i@neonxp.ru" rel="me">Электропочта</a></li> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c0ee0a8..f2c7ece 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,12 +1,13 @@ <meta charset="utf-8"> -<meta name="viewport" content="width=device-width"> +<meta name="viewport" content="width=device-width, initial-scale=1"> {{if .Params.gomod}} <meta name="go-import" content="neonxp.ru/go/{{ .Params.Name }} git {{ .Params.Repository }}"> <meta name="go-source" content="neonxp.ru/go/{{ .Params.Name }} {{ .Params.Repository }} {{ .Params.Repository }}/tree/{/dir} {{ .Params.Repository }}/tree/master{/dir}/{file}#n{line}"> {{end}} +{{ template "_internal/opengraph.html" . }} +{{ template "_internal/schema.html" . }} +{{ template "_internal/twitter_cards.html" . }} + <link rel="icon" type="image/png" href="/favicon.png"> -<!-- <link rel="authorization_endpoint" href="https://indieauth.com/auth"> -<link rel="token_endpoint" href="https://tokens.indieauth.com/token"> -<link rel="micropub" href="https://neonxp.ru/micropub"> --> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> {{ partialCached "head/css.html" . }} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index 5c53001..66e4dc5 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -1,11 +1,15 @@ -<footer> +<footer class="post-footer"> <div class="row between-xs"> <span> + {{ partial "icon.html" "tag" }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} </span> {{ if .Params.Location }} - <span class="p-location">@ {{.Params.Location}}</span> + <span class="p-location"> + {{ partial "icon.html" "location" }} + {{.Params.Location}} + </span> {{ end }} </div> </footer> diff --git a/layouts/partials/single/header.html b/layouts/partials/single/header.html index 7b40390..f5ece1f 100644 --- a/layouts/partials/single/header.html +++ b/layouts/partials/single/header.html @@ -1,11 +1,8 @@ <h1 class="post-title fw-semibold"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h1> {{ if .Date }} <div class="d-flex align-items-center mb-4 text-muted"> - <span class="d-flex align-items-center ms-3" title="{{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}"> - <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="me-2" viewBox="0 0 16 16"> - <path d="M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"></path> - <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"></path> - </svg> + <span class="d-flex align-items-center" title="{{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}"> + {{ partial "icon.html" "calendar" }} {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}} </span> </div> |