Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/josephhutch/aether.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Li <li@siutsin.com>2020-06-18 22:47:20 +0300
committerSimon Li <li@siutsin.com>2020-06-18 22:47:20 +0300
commit9225ccd9aba2396d0b10d9e11718abb42dd2f294 (patch)
treeca22ab6cac3addd686f10d0b25e91f3b6630d881 /layouts
parent62014e51353e6e951b8800437a14ba75bb5199b9 (diff)
add optional ogp and twitter meta tags
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 79eb808..0d319f7 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -19,6 +19,12 @@
{{ if (fileExists "static/safari-pinned-tab.svg") -}}
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
{{ end -}}
+ {{ if (fileExists "layouts/partials/twitter.html") -}}
+ {{ partial "twitter.html" . }}
+ {{ end -}}
+ {{ if (fileExists "layouts/partials/ogp.html") -}}
+ {{ partial "ogp.html" . }}
+ {{ end -}}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
{{ $mainStyle := resources.Get "css/style.css" }}