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:31:49 +0300
committerGitHub <noreply@github.com>2022-10-02 17:31:49 +0300
commit713860a22d93577a68a569b967554e34bd6ffe68 (patch)
treea7d96da1660cb5143e8170b22b876232d842a2c7
parentfcee825d8e543f4f0378d1072bee3bf39c3d4be0 (diff)
parentf749a48fd8885578a6a421d2e4ba27f58e2c4dca (diff)
Merge pull request #27 from gkmngrgn/internal-templates
Internal templates
-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, 18 insertions, 50 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 1f70ed0..838ebeb 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,42 +14,10 @@
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 }}"
- />
+ {{ template "_internal/opengraph.html" . }}
+ {{ template "_internal/twitter_cards.html" . }}
- {{ 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 }}"
- />
+ {{ hugo.Generator }}
{{ if .Site.Params.flattr }}
<meta name="flattr:id" content="{{ .Site.Params.flattr }}" />
@@ -72,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 }}