From 8e1be686742b6ef4d58ccbf4affcb7a84ea56a27 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 24 Jun 2017 10:55:01 -0400 Subject: [PATCH] Fixed numerous hugo warnings and errors that were showing up when building. --- site/config.toml | 2 ++ site/i18n/en.toml | 2 ++ .../citra-bs-theme/layouts/_default/baseof.html | 4 +++- site/themes/citra-bs-theme/layouts/_default/list.html | 2 +- site/themes/citra-bs-theme/layouts/_default/list.json | 1 + .../themes/citra-bs-theme/layouts/_default/terms.html | 11 +++++++++++ 6 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 site/i18n/en.toml create mode 100644 site/themes/citra-bs-theme/layouts/_default/list.json create mode 100644 site/themes/citra-bs-theme/layouts/_default/terms.html diff --git a/site/config.toml b/site/config.toml index 5a80581..f7259be 100644 --- a/site/config.toml +++ b/site/config.toml @@ -1,5 +1,7 @@ baseurl = "https://citra-emu.org/" languageCode = "en-us" + +DefaultContentLanguage = "en" theme = "citra-bs-theme" # Define how many objects appear per pagination. diff --git a/site/i18n/en.toml b/site/i18n/en.toml new file mode 100644 index 0000000..35c4214 --- /dev/null +++ b/site/i18n/en.toml @@ -0,0 +1,2 @@ +[home] +other = "Home" diff --git a/site/themes/citra-bs-theme/layouts/_default/baseof.html b/site/themes/citra-bs-theme/layouts/_default/baseof.html index 0513498..1ca0a7d 100755 --- a/site/themes/citra-bs-theme/layouts/_default/baseof.html +++ b/site/themes/citra-bs-theme/layouts/_default/baseof.html @@ -8,7 +8,9 @@ + {{- if eq .IsPage true }} {{ .Render "meta" }} + {{- end }} {{ .Hugo.Generator }} @@ -115,7 +117,7 @@ diff --git a/site/themes/citra-bs-theme/layouts/_default/list.html b/site/themes/citra-bs-theme/layouts/_default/list.html index 4e48179..6b26975 100755 --- a/site/themes/citra-bs-theme/layouts/_default/list.html +++ b/site/themes/citra-bs-theme/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "main" }} {{ $paginator := .Paginate .Data.Pages }} - + {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} diff --git a/site/themes/citra-bs-theme/layouts/_default/list.json b/site/themes/citra-bs-theme/layouts/_default/list.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/site/themes/citra-bs-theme/layouts/_default/list.json @@ -0,0 +1 @@ +{} diff --git a/site/themes/citra-bs-theme/layouts/_default/terms.html b/site/themes/citra-bs-theme/layouts/_default/terms.html new file mode 100644 index 0000000..d2d2af6 --- /dev/null +++ b/site/themes/citra-bs-theme/layouts/_default/terms.html @@ -0,0 +1,11 @@ +{{ define "main" }} + {{- if eq .IsPage true }} + {{ $paginator := .Paginate .Data.Pages }} + + {{ range $paginator.Pages }} + {{ .Render "summary" }} + {{ end }} + + {{ partial "pagination" . }} + {{- end }} +{{ end }}