diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..a179cac --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,38 @@ +<head>
+ <title>
+ {{ .Site.Params.title }}{{ if .Title }} - {{ .Title }} {{ end }}
+ </title>
+ <meta name="theme-color" content="" />
+ <meta charset="utf-8" />
+ <meta content="width=device-width, initial-scale=1.0" name="viewport" />
+ <meta name="description" content="{{ .Site.Params.description }}" />
+ <meta name="author" content="{{ .Site.Params.author }}" />
+
+ <meta
+ property="og:url"
+ content="{{ .Permalink }}"
+ />
+ <meta property="og:type" content="website" />
+ <meta property="og:title" content="{{ .Site.Params.title }}{{ if .Title }} - {{ .Title }} {{ end }}" />
+ <meta property="og:description" content="{{ .Site.Params.description }}" />
+ <meta
+ property="og:image"
+ content="{{ `images/profile.jpg` | absURL }}"
+ />
+
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ <link rel="stylesheet" href="{{ `/css/main.css` | relURL }}" />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Mukta:wght@300;700&display=swap"
+ rel="stylesheet"
+ />
+
+ <style>
+ html {
+ font-size: {{ .Site.Params.theme.fontSize | safeCSS }};
+ }
+ </style>
+</head>
|