diff options
author | bogem <albertnigma@gmail.com> | 2016-11-21 16:35:52 +0100 |
---|---|---|
committer | digitalcraftsman <digitalcraftsman@protonmail.com> | 2016-11-23 19:47:09 +0100 |
commit | 68ebf61613ca5715969818e60343920b4e751933 (patch) | |
tree | 77763545bb22dbcaaa118218e33d25972046f37e /examples/multilingual/layouts/partials/head.html | |
parent | 4c72eb12dca7011a0203e4bfcdb618a9d353cf8c (diff) |
examples: Update multilingual example
Use new i18n concept
Fixes #2417
Diffstat (limited to 'examples/multilingual/layouts/partials/head.html')
-rw-r--r-- | examples/multilingual/layouts/partials/head.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/multilingual/layouts/partials/head.html b/examples/multilingual/layouts/partials/head.html index fee14e72c..e493add1e 100644 --- a/examples/multilingual/layouts/partials/head.html +++ b/examples/multilingual/layouts/partials/head.html @@ -1,11 +1,11 @@ -<!DOCTYPE html>
-<html lang="{{ .Params.lang }}">
-<head>
- <meta charset="utf-8">
- {{ if .Title }}
- <title>{{ (index .Site.Data.translations .Params.lang).head_title }} - {{ .Title }}</title>
- {{ end }}
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="/main.css">
-</head>
-<body>
+<!DOCTYPE html> +<html lang="{{ .Params.lang }}"> +<head> + <meta charset="utf-8"> + {{ if .Title }} + <title>{{ i18n "head_title" }} - {{ .Title }}</title> + {{ end }} + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="/main.css"> +</head> +<body> |