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

github.com/bul-ikana/hugo-cards.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosjupiter <neko.10osama+github@gmail.com>2019-04-04 19:04:20 +0300
committerosjupiter <neko.10osama+github@gmail.com>2019-04-05 14:54:59 +0300
commitdf6ceff8341b0165b9d0d8f3f5f3089027eba26b (patch)
tree28529cae54e0593ed921884e5c162486460c4209
parent8e59d01a5bb19e00bad1c4e3adde3b4c88990feb (diff)
add title tag
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/head.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index c1ff15f..ba4014d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
- {{ partial "head.html" }}
+ {{ partial "head.html" .}}
<body>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index cb2b770..e38bac6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,7 +3,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<!-- {% seo %} -->
+<title>{{ .Title}}{{if .IsPage}} - {{.Site.Title}}{{ end }}</title>
{{ $main := resources.Get "sass/main.scss" | resources.ToCSS (dict "outputStyle" "compressed")}}
<link rel="stylesheet" href="{{ $main.RelPermalink }}">