updated headers / footers / links / post tags
parent
c196fcf7a8
commit
261206c9bc
@ -1 +1 @@
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank"><img alt="CC BY-SA 4.0 - Creative Commons License" title="CC BY-SA 4.0 - Creative Commons License" style="border-width:0" src="/assets/creativecommons.png" /></a>
|
||||
<a rel="noreferrer" href="http://creativecommons.org/licenses/by-sa/4.0/" aria-label="CC BY-SA 4.0 - Creative Commons License" target="_blank"><img alt="CC BY-SA 4.0 - Creative Commons License" title="CC BY-SA 4.0 - Creative Commons License" style="border-width:0" src="/assets/creativecommons.png" /></a>
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{ if $.Site.Params.github_username }}
|
||||
<a href="https://github.com/{{ .Site.Params.github_username }}" target="_blank">
|
||||
<a href="https://github.com/{{ .Site.Params.github_username }}" aria-label="github" rel="noreferrer" target="_blank">
|
||||
<span class="icon icon--github">{{ partial "icon-github.svg" }}</span>
|
||||
</a>
|
||||
{{end}}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{ if $.Site.Params.twitter_username }}
|
||||
<a href="https://twitter.com/{{ .Site.Params.twitter_username }}" target="_blank">
|
||||
<a href="https://twitter.com/{{ .Site.Params.twitter_username }}" aria-label="twitter" rel="noreferrer" target="_blank">
|
||||
<span class="icon icon--twitter">{{ partial "icon-twitter.svg" }}</span>
|
||||
</a>
|
||||
{{end}}
|
||||
|
@ -0,0 +1,55 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<meta name="generator" content="Source Themes Tiles {{ site.Data.academic.version }}">
|
||||
|
||||
{{/* Generate page description. */}}
|
||||
{{ $desc := $.Site.Title }}
|
||||
{{ if .Params.Summary }}
|
||||
{{ $desc = .Params.Summary }}
|
||||
{{ else if .IsPage }}
|
||||
{{ $desc = .Summary }}
|
||||
{{ else if site.Params.description }}
|
||||
{{ $desc = site.Params.description }}
|
||||
{{ end }}
|
||||
<meta name="description" content="{{ $desc }}">
|
||||
|
||||
<meta name="author" content="{{ .Params.author }}">
|
||||
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint "sha512" }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
|
||||
|
||||
<meta property="og:site_name" content="{{ site.Title }}">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:title" content="{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ site.Title }}">
|
||||
<meta property="og:description" content="{{ $desc }}">
|
||||
|
||||
{{ if .IsPage }}
|
||||
<meta property="og:type" content="article">
|
||||
{{ if not .PublishDate.IsZero }}
|
||||
<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">
|
||||
{{ else if not .Date.IsZero }}
|
||||
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">
|
||||
{{ end }}
|
||||
{{ if not .Lastmod.IsZero }}
|
||||
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ if not .Date.IsZero }}
|
||||
<meta property="og:updated_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ block "title" . }}
|
||||
{{ if .IsHome }}
|
||||
<title>{{ $.Site.Title }}</title>
|
||||
{{ else }}
|
||||
<title>{{ .Title }} / {{ $.Site.Title }}</title>
|
||||
{{ end }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue