diff options
author | Egon Elbre <egonelbre@gmail.com> | 2015-04-26 18:42:09 +0300 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-05-07 21:16:38 +0200 |
commit | 9123ac559e0db5974b01209c3267b398cd972243 (patch) | |
tree | eec58dc999c56bd140339a0f99c4af29b1131000 /examples/multilingual | |
parent | 3596b1b81078c1089d6b294a9b35954741d878a9 (diff) |
Fix multilingual site layouts/templates.
Diffstat (limited to 'examples/multilingual')
-rw-r--r-- | examples/multilingual/config.toml | 4 | ||||
-rw-r--r-- | examples/multilingual/content/about.en.md | 16 | ||||
-rw-r--r-- | examples/multilingual/content/about.et.md | 16 | ||||
-rw-r--r-- | examples/multilingual/content/index.en.md | 18 | ||||
-rw-r--r-- | examples/multilingual/content/index.et.md | 18 | ||||
-rw-r--r-- | examples/multilingual/content/story/alpha.md | 10 | ||||
-rw-r--r-- | examples/multilingual/content/story/beta.md | 10 | ||||
-rw-r--r-- | examples/multilingual/content/story/index.md | 18 | ||||
-rw-r--r-- | examples/multilingual/content/uudis/alfa.md | 10 | ||||
-rw-r--r-- | examples/multilingual/content/uudis/beeta.md | 10 | ||||
-rw-r--r-- | examples/multilingual/content/uudis/index.md | 18 | ||||
-rw-r--r-- | examples/multilingual/layouts/_default/single.html | 2 | ||||
-rw-r--r-- | examples/multilingual/layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | examples/multilingual/layouts/partials/header.html | 4 | ||||
-rw-r--r-- | examples/multilingual/layouts/story/list.html | 15 | ||||
-rw-r--r-- | examples/multilingual/layouts/uudis/list.html | 15 | ||||
-rw-r--r-- | examples/multilingual/static/static/main.css | 2 |
17 files changed, 79 insertions, 109 deletions
diff --git a/examples/multilingual/config.toml b/examples/multilingual/config.toml index 4285f302d..9f436859a 100644 --- a/examples/multilingual/config.toml +++ b/examples/multilingual/config.toml @@ -1,6 +1,6 @@ -baseurl = "" +baseurl = "http://example.com" [taxonomies] tag = "tags" group = "groups" -menu = "menu" +menu = "menu"
\ No newline at end of file diff --git a/examples/multilingual/content/about.en.md b/examples/multilingual/content/about.en.md index a47d1d923..9a7b497c5 100644 --- a/examples/multilingual/content/about.en.md +++ b/examples/multilingual/content/about.en.md @@ -1,12 +1,12 @@ ----
-title: "About"
-linktitle: "About"
-url: /about
++++
+title = "About"
+linktitle = "About"
+url = "/about"
-lang: "en"
-menu: ["en"]
-menu_weight: 30
----
+lang = "en"
+menu = ["en"]
+menu_weight = 30
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illum ex deleniti ut tenetur amet accusantium dolores nam provident! Ipsum, dicta voluptatum quas architecto nostrum sapiente eos commodi numquam accusantium reprehenderit.
diff --git a/examples/multilingual/content/about.et.md b/examples/multilingual/content/about.et.md index fd129f8e8..be71772fb 100644 --- a/examples/multilingual/content/about.et.md +++ b/examples/multilingual/content/about.et.md @@ -1,12 +1,12 @@ ----
-title: "Minust"
-linktitle: "Minust"
-url: /minust
++++
+title = "Minust"
+linktitle = "Minust"
+url = "/minust"
-lang: "et"
-menu: ["et"]
-menu_weight: 30
----
+lang = "et"
+menu = ["et"]
+menu_weight = 30
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illum ex deleniti ut tenetur amet accusantium dolores nam provident! Ipsum, dicta voluptatum quas architecto nostrum sapiente eos commodi numquam accusantium reprehenderit.
diff --git a/examples/multilingual/content/index.en.md b/examples/multilingual/content/index.en.md index 7c769211a..e819eacca 100644 --- a/examples/multilingual/content/index.en.md +++ b/examples/multilingual/content/index.en.md @@ -1,12 +1,12 @@ ----
-title: ""
-linktitle: "Home"
-url: /
-
-lang: "en"
-menu: ["en"]
-menu_weight: 0
----
++++
+title = "Home"
+linktitle = "Home"
+url = "/home"
+
+lang = "en"
+menu = ["en"]
+menu_weight = 0
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illum ex deleniti ut tenetur amet accusantium dolores nam provident! Ipsum, dicta voluptatum quas architecto nostrum sapiente eos commodi numquam accusantium reprehenderit.
diff --git a/examples/multilingual/content/index.et.md b/examples/multilingual/content/index.et.md index fbcd70466..0de2d6a71 100644 --- a/examples/multilingual/content/index.et.md +++ b/examples/multilingual/content/index.et.md @@ -1,12 +1,12 @@ ----
-title: ""
-linktitle: "Kodu"
-url: /kodu
-
-lang: "et"
-menu: ["et"]
-menu_weight: 0
----
++++
+title = "Kodu"
+linktitle = "Kodu"
+url = "/kodu"
+
+lang = "et"
+menu = ["et"]
+menu_weight = 0
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illum ex deleniti ut tenetur amet accusantium dolores nam provident! Ipsum, dicta voluptatum quas architecto nostrum sapiente eos commodi numquam accusantium reprehenderit.
diff --git a/examples/multilingual/content/story/alpha.md b/examples/multilingual/content/story/alpha.md index 558a7571f..0cbbb5b31 100644 --- a/examples/multilingual/content/story/alpha.md +++ b/examples/multilingual/content/story/alpha.md @@ -1,9 +1,9 @@ ----
-title: "Alpha"
++++
+title = "Alpha"
-lang: "en"
-groups: ["news"]
----
+lang = "en"
+groups = ["news"]
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione, porro, doloribus ducimus reprehenderit nobis at voluptates ipsa dicta nostrum perferendis in vitae. Magnam, quia officia modi incidunt tenetur ratione cum.
diff --git a/examples/multilingual/content/story/beta.md b/examples/multilingual/content/story/beta.md index ece4463d4..b098dc6cf 100644 --- a/examples/multilingual/content/story/beta.md +++ b/examples/multilingual/content/story/beta.md @@ -1,9 +1,9 @@ ----
-title: "Beta"
++++
+title = "Beta"
-lang: "en"
-groups: ["news"]
----
+lang = "en"
+groups = ["news"]
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione, porro, doloribus ducimus reprehenderit nobis at voluptates ipsa dicta nostrum perferendis in vitae. Magnam, quia officia modi incidunt tenetur ratione cum.
diff --git a/examples/multilingual/content/story/index.md b/examples/multilingual/content/story/index.md index 2d35b716b..00f92d3ad 100644 --- a/examples/multilingual/content/story/index.md +++ b/examples/multilingual/content/story/index.md @@ -1,10 +1,10 @@ ----
-title: "News"
-linktitle: "News"
-url: /news
-type: list
++++
+title = "News"
+linktitle = "News"
+url = "/news"
-lang: "en"
-menu: ["en"]
-menu_weight: 10
----
+listing = true
+lang = "en"
+menu = ["en"]
+menu_weight = 10
++++
diff --git a/examples/multilingual/content/uudis/alfa.md b/examples/multilingual/content/uudis/alfa.md index 7243795ec..85f62718d 100644 --- a/examples/multilingual/content/uudis/alfa.md +++ b/examples/multilingual/content/uudis/alfa.md @@ -1,9 +1,9 @@ ----
-title: "Alfa"
++++
+title = "Alfa"
-lang: "et"
-groups: ["uudised"]
----
+lang = "et"
+groups = ["uudised"]
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione, porro, doloribus ducimus reprehenderit nobis at voluptates ipsa dicta nostrum perferendis in vitae. Magnam, quia officia modi incidunt tenetur ratione cum.
diff --git a/examples/multilingual/content/uudis/beeta.md b/examples/multilingual/content/uudis/beeta.md index e90c3afd2..a6823586e 100644 --- a/examples/multilingual/content/uudis/beeta.md +++ b/examples/multilingual/content/uudis/beeta.md @@ -1,9 +1,9 @@ ----
-title: "Beeta"
++++
+title = "Beeta"
-lang: "et"
-groups: ["uudised"]
----
+lang = "et"
+groups = ["uudised"]
++++
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione, porro, doloribus ducimus reprehenderit nobis at voluptates ipsa dicta nostrum perferendis in vitae. Magnam, quia officia modi incidunt tenetur ratione cum.
diff --git a/examples/multilingual/content/uudis/index.md b/examples/multilingual/content/uudis/index.md index c73b778ab..48d092a37 100644 --- a/examples/multilingual/content/uudis/index.md +++ b/examples/multilingual/content/uudis/index.md @@ -1,10 +1,10 @@ ----
-title: "Uudised"
-linktitle: "Uudised"
-url: /uudised
-type: list
++++
+title = "Uudised"
+linktitle = "Uudised"
+url = "/uudised"
-lang: "et"
-menu: ["et"]
-menu_weight: 10
----
+listing = true
+lang = "et"
+menu = ["et"]
+menu_weight = 10
++++
diff --git a/examples/multilingual/layouts/_default/single.html b/examples/multilingual/layouts/_default/single.html index 66e4a3828..5a83414f8 100644 --- a/examples/multilingual/layouts/_default/single.html +++ b/examples/multilingual/layouts/_default/single.html @@ -1,4 +1,4 @@ {{ partial "head.html" . }}
{{ partial "header.html" . }}
-{{ if .IsPage }}{{ .Content }}{{ end }}
+{{ .Content }}
{{ partial "footer.html" . }}
diff --git a/examples/multilingual/layouts/partials/footer.html b/examples/multilingual/layouts/partials/footer.html index 2630b2e32..c5d0afa94 100644 --- a/examples/multilingual/layouts/partials/footer.html +++ b/examples/multilingual/layouts/partials/footer.html @@ -1,3 +1,3 @@ - <footer>(Ↄ) 2013 Egon Elbre</footer>
+ <footer>(Ↄ) 2015 example.com</footer>
</body>
</html>
\ No newline at end of file diff --git a/examples/multilingual/layouts/partials/header.html b/examples/multilingual/layouts/partials/header.html index a244b8b0c..59495da8f 100644 --- a/examples/multilingual/layouts/partials/header.html +++ b/examples/multilingual/layouts/partials/header.html @@ -1,7 +1,7 @@ <header>
<nav class="menu language-menu">
<ul>
- <li><a href="/">English</a></li>
+ <li><a href="/home">English</a></li>
<li><a href="/kodu">Eesti</a></li>
</ul>
<div class="clear"></div>
@@ -15,7 +15,7 @@ <nav class="menu main-menu">
<ul>
- {{ range (index .Site.Indexes.menu .Params.lang).Pages }}
+ {{ range (index .Site.Taxonomies.menu .Params.lang).Pages }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
diff --git a/examples/multilingual/layouts/story/list.html b/examples/multilingual/layouts/story/list.html deleted file mode 100644 index a753577d5..000000000 --- a/examples/multilingual/layouts/story/list.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ partial "head.html" . }}
-{{ partial "header.html" . }}
-{{ range .Site.Indexes.groups.news.Pages }}
-<article class="post">
- <header>
- <h2><a href='{{ .Permalink }}'>{{ .Title }}</a> </h2>
- <div class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words</div>
- </header>
- {{ .Summary }}
- <footer>
- <a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
- </footer>
-</article>
-{{ end }}
-{{ partial "footer.html" . }}
diff --git a/examples/multilingual/layouts/uudis/list.html b/examples/multilingual/layouts/uudis/list.html deleted file mode 100644 index 23c0daec8..000000000 --- a/examples/multilingual/layouts/uudis/list.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ partial "head.html" . }}
-{{ partial "header.html" . }}
-{{ range .Site.Indexes.groups.uudised.Pages }}
-<article class="post">
- <header>
- <h2><a href='{{ .Permalink }}'>{{ .Title }}</a> </h2>
- <div class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} sõna</div>
- </header>
- {{ .Summary }}
- <footer>
- <a href='{{ .Permalink }}'><nobr>Loe rohkem →</nobr></a>
- </footer>
-</article>
-{{ end }}
-{{ partial "footer.html" . }}
diff --git a/examples/multilingual/static/static/main.css b/examples/multilingual/static/static/main.css index 59ccaf8f0..bf8284d56 100644 --- a/examples/multilingual/static/static/main.css +++ b/examples/multilingual/static/static/main.css @@ -77,7 +77,7 @@ header { clear: both;
}
-footer {
+body > footer {
font-family: Georgia;
background: #eee;
margin: 0;
|