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

github.com/diwao/hestia-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiwao <nakapom@gmail.com>2018-03-22 08:05:11 +0300
committerdiwao <nakapom@gmail.com>2018-03-22 08:05:11 +0300
commit0ff6b9c147350099cb1315c7c4f99326eb29560b (patch)
tree76c45ae786c2929b651b20d214fc7395b1e10eea
parent69580b6cad605df4062983fc32a06eeab0c45e94 (diff)
fix author and lang
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/head.html3
6 files changed, 6 insertions, 7 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 7053f50..726e25b 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="ja">
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
{{ partial "head" . }}
<body>
<div id="wrap" class="wrap">
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 01f6a43..3f9652e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="ja">
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
{{ partial "head" . }}
<body>
<div id="wrap" class="wrap">
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6e18a1e..aaea1ff 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="ja">
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
{{ partial "head" . }}
<body>
<div id="wrap" class="wrap">
diff --git a/layouts/index.html b/layouts/index.html
index 01f6a43..3f9652e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="ja">
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
{{ partial "head" . }}
<body>
<div id="wrap" class="wrap">
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index c269d21..e3b8ab3 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -9,7 +9,7 @@
{{ if and (.Site.Author.author) (ne .Site.Author.author "") }}
<h3>{{ .Site.Author.author }}</h3>
{{ else }}
- <h3>Daisuke Iwao</h3>
+ <h3>{{ .Site.Params.author.author }}</h3>
{{ end }}
{{ if and (.Site.Author.profile) (ne .Site.Author.profile "") }}
<p>{{ .Site.Author.profile }}</p>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5a69c38..6555a72 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,7 +3,7 @@
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
{{ .Hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="author" content="diwao">
+ <meta name="author" content="{{ .Site.Author.author }}">
{{ if eq $isHomePage true }}
<meta name="description" content="{{ .Site.Params.description }}">
{{ else }}
@@ -24,7 +24,6 @@
<meta property="og:description" content="{{ .Summary }}">
{{ end }}
<meta property="og:type" content="blog">
- <meta property="og:locale" content="ja_JP">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}">
<meta name="twitter:title" content="{{ .Title }}">