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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head/metadata.html')
-rw-r--r--layouts/partials/head/metadata.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/partials/head/metadata.html b/layouts/partials/head/metadata.html
new file mode 100644
index 0000000..1d97aa2
--- /dev/null
+++ b/layouts/partials/head/metadata.html
@@ -0,0 +1,24 @@
+<meta charset="utf-8">
+<meta http-equiv="X-UA-Compatible" content="chrome=1">
+<meta name="HandheldFriendly" content="True">
+<meta name="MobileOptimized" content="320">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="referrer" content="no-referrer">
+{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
+<title>
+{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}
+</title>
+<!-- RSS -->
+{{ if .RSSLink }}
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+{{ end }}
+<!-- HTTPS -->
+{{ if .Site.Params.enforce_ssl }}
+<script type="text/javascript">
+ var baseURL = '{{ .Site.BaseURL }}';
+ var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, '');
+ if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
+ window.location.protocol = 'https:';
+ }
+</script>
+{{ end }}