mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
Add date timestamp in html meta
This commit is contained in:
parent
eba50847a6
commit
d3234c28fd
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
|||
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ if .Params.Description }}{{ .Params.Description }}{{ else }}{{ .Summary | plainify }}{{ end }}{{ end }}" class="p-summary"/>
|
||||
<meta name="keywords" content="{{ .Site.Params.keywords }}{{ if .Params.tags }}{{ range .Params.tags }}, {{ . }}{{ end }}{{ end }}" />
|
||||
<meta name="theme-color" content="{{ .Site.Params.themeColor }}" />
|
||||
{{- $modified := .Lastmod -}}
|
||||
{{- if .IsHome }}{{ with getenv "HUGO_LAST_UPDATE_TIME" }}{{ $modified = time . }}{{ end }}{{ end -}}
|
||||
<meta property="dcterms.modified" content="{{ $modified.Format "2006-01-02T15:04:05Z07:00"}}" />
|
||||
<link rel="canonical" href="{{ .Permalink }}" class="u-url"/>
|
||||
|
||||
{{/* IndieWeb */}}
|
||||
|
|
Loading…
Reference in a new issue