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

github.com/gkmngrgn/hugo-alageek-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGökmen Görgen <gkmngrgn@gmail.com>2022-10-02 17:28:20 +0300
committerGökmen Görgen <gkmngrgn@gmail.com>2022-10-02 17:28:20 +0300
commitf749a48fd8885578a6a421d2e4ba27f58e2c4dca (patch)
treea7d96da1660cb5143e8170b22b876232d842a2c7
parente7c2ee911967085bd612509822d98a109634f9dd (diff)
use internal templates in head.
-rw-r--r--layouts/_default/baseof.html12
-rw-r--r--layouts/partials/footer_extra.html8
-rw-r--r--layouts/partials/head.html40
-rw-r--r--layouts/partials/head_extra.html8
4 files changed, 17 insertions, 51 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index f72e3a7..79129d7 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,19 +1,19 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
- {{- partial "head" . -}}
+ {{ partial "head" . }}
<body>
- {{- partial "header" . -}}
+ {{ partial "header" . }}
<div id="content">
- {{- block "main" . }}{{- end }}
+ {{ block "main" . }}{{ end }}
</div>
- {{- partial "footer" . -}}
- {{- partial "footer_extra" . -}}
+ {{ partial "footer" . }}
+ {{ partial "footer_extra" . }}
- {{- template "_internal/google_analytics_async.html" . -}}
+ {{ template "_internal/google_analytics_async.html" . }}
</body>
</html>
diff --git a/layouts/partials/footer_extra.html b/layouts/partials/footer_extra.html
index 0215932..838934b 100644
--- a/layouts/partials/footer_extra.html
+++ b/layouts/partials/footer_extra.html
@@ -1,13 +1,13 @@
-{{- partial "script_bootstrap" . -}}
+{{ partial "script_bootstrap" . }}
{{ if .Site.Params.highlightjs }}
- {{- partial "script_highlight" . -}}
+ {{ partial "script_highlight" . }}
{{ end }}
{{ if .Site.Params.progressively }}
- {{- partial "script_progressively" . -}}
+ {{ partial "script_progressively" . }}
{{ end }}
{{ if .Site.Params.uselatex }}
- {{- partial "script_latex" . -}}
+ {{ partial "script_latex" . }}
{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a525495..838ebeb 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,42 +14,8 @@
content="{{ .Description | default .Site.Params.description }}"
/>
- <meta property="og:site_name" content="{{ .Site.Title }}" />
- <meta property="og:locale" content="nn_NO" />
- <meta property="og:type" content="article" />
- <meta property="og:url" content="{{ .Permalink }}" />
- <meta
- property="og:title"
- content="{{ if .Title }}
- {{ .Title }}
- {{ else }}
- {{ .Site.Title }}
- {{ end }}"
- />
- <meta
- property="og:image"
- content="{{ .Site.BaseURL }}{{ .Params.meta_img | default .Site.Params.logofile }}"
- />
- <meta
- property="og:description"
- content="{{ .Description | default .Site.Params.description }}"
- />
-
- {{ if .Site.Params.twitter }}
- <meta property="twitter:site" content="@{{ .Site.Params.twitter }}" />
- {{ end }}
-
-
- <meta property="twitter:title" content="{{ .Title | default .Site.Title }}" />
- <meta
- property="twitter:image"
- content="{{ .Site.BaseURL }}{{ .Params.meta_img | default .Site.Params.logofile }}"
- />
- <meta property="twitter:card" content="summary" />
- <meta
- property="twitter:description"
- content="{{ .Description | default .Site.Params.description }}"
- />
+ {{ template "_internal/opengraph.html" . }}
+ {{ template "_internal/twitter_cards.html" . }}
{{ hugo.Generator }}
@@ -74,5 +40,5 @@
title="{{ .Site.Title }}"
/>
- {{- partial "head_extra" . -}}
+ {{ partial "head_extra" . }}
</head>
diff --git a/layouts/partials/head_extra.html b/layouts/partials/head_extra.html
index fac508c..21ac0e1 100644
--- a/layouts/partials/head_extra.html
+++ b/layouts/partials/head_extra.html
@@ -1,11 +1,11 @@
-{{- partial "style_bootstrap" . -}}
+{{ partial "style_bootstrap" . }}
-{{- partial "style_main" . -}}
+{{ partial "style_main" . }}
{{ if .Site.Params.highlightjs }}
- {{- partial "style_highlight" . -}}
+ {{ partial "style_highlight" . }}
{{ end }}
{{ if .Site.Params.progressively }}
- {{- partial "style_progressively" . -}}
+ {{ partial "style_progressively" . }}
{{ end }}