From 8c258bbd0700e62be2feb5e516a4e6efe47e5776 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Fri, 20 Jul 2018 17:27:32 +0200 Subject: [PATCH] Use abs URL every time --- layouts/_default/list.html | 5 ++--- layouts/_default/taxonomy.html | 4 ++-- layouts/_default/terms.html | 2 +- layouts/blog/list.html | 4 ++-- layouts/index.html | 2 +- layouts/partials/blog/li.html | 2 +- layouts/partials/head/css.html | 2 +- layouts/partials/head/favicons.html | 2 +- layouts/partials/head/openGraph.html | 4 ++-- layouts/partials/home/blog.html | 6 +++--- layouts/partials/home/projects.html | 5 +++-- layouts/partials/nav.html | 10 +++++----- layouts/projects/list.html | 2 +- layouts/projects/single.html | 2 +- 14 files changed, 26 insertions(+), 26 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f102ef5..d7d6065 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,12 +2,11 @@
{{ .Content }}
-
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 786676b..cf9409a 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -8,9 +8,9 @@ {{ .Content }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 9a9a796..29815df 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -5,7 +5,7 @@
{{ range $name, $taxonomy := .Site.Taxonomies.tags }} - {{ lower $name }} ({{ len $taxonomy }}) + {{ lower $name }} ({{ len $taxonomy }}) {{ end }}
diff --git a/layouts/blog/list.html b/layouts/blog/list.html index e1d1b66..c2c6583 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -8,14 +8,14 @@ {{ range first 1 .Pages.ByPublishDate.Reverse }}
{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}

- + {{ .Title }}

{{ .Summary }} {{ if .Truncated }} - {{ i18n "index_blog_readMore" . }} + {{ i18n "index_blog_readMore" . }} {{ end }}
diff --git a/layouts/index.html b/layouts/index.html index 281b366..4e96a96 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -51,7 +51,7 @@
{{ with $home.Resources.GetMatch .Params.Image }} {{ with .Resize "320x" }} - {{ .Name }} + {{ .Name }} {{ end }} {{ end }}
diff --git a/layouts/partials/blog/li.html b/layouts/partials/blog/li.html index 9a79283..1f13118 100644 --- a/layouts/partials/blog/li.html +++ b/layouts/partials/blog/li.html @@ -1,5 +1,5 @@ {{ range .Pages.ByPublishDate.Reverse }}
  • - {{ .Title }} - {{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} + {{ .Title }} - {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}
  • {{ end }} diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index ee8046a..53753a7 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -12,5 +12,5 @@ {{ range .Site.Params.customCSS -}} - + {{- end }} diff --git a/layouts/partials/head/favicons.html b/layouts/partials/head/favicons.html index e1c93d0..2e77ade 100644 --- a/layouts/partials/head/favicons.html +++ b/layouts/partials/head/favicons.html @@ -1,3 +1,3 @@ {{ with .Site.Params.favicon }} - + {{ end }} diff --git a/layouts/partials/head/openGraph.html b/layouts/partials/head/openGraph.html index 6765eec..366ab92 100644 --- a/layouts/partials/head/openGraph.html +++ b/layouts/partials/head/openGraph.html @@ -6,12 +6,12 @@ {{ with .Resources.ByType "image" }} {{ range first 5 (sort . "Params.weight") }} - + {{ end }} {{ else }} {{ with .Site.GetPage "page" "home" }} {{ range first 5 (.Resources.ByType "image") }} - + {{ end }} {{ end }} {{ end }} diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html index f038e04..fb9a62a 100644 --- a/layouts/partials/home/blog.html +++ b/layouts/partials/home/blog.html @@ -6,11 +6,11 @@

    {{ i18n "index_blog_latestPosts" . }}

    {{ range first 1 .Pages.ByPublishDate.Reverse }}
    {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} -

    {{ .Title }}

    +

    {{ .Title }}

    {{ .Summary }} {{ if .Truncated }} - {{ i18n "index_blog_readMore" . }} + {{ i18n "index_blog_readMore" . }} {{ end }}
    @@ -21,7 +21,7 @@ {{ partialCached "blog/li.html" . }} {{ else }}
    - {{ i18n "index_blog_allPosts" . }} + {{ i18n "index_blog_allPosts" . }}
    {{ end }} diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index f0e5a6c..c4a637e 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -30,6 +30,7 @@
    + {{ .Params.external_link }} {{ .Title }}
    @@ -40,7 +41,7 @@ {{ if lt $numberOfProjectsToShow $totalProjects }}
    - {{ i18n "index_projects_allProjects" . }} + {{ i18n "index_projects_allProjects" . }}
    {{ end }} @@ -67,7 +68,7 @@ {{ if $moreThenOneImage }}
    {{ end }} - {{ $image.Name }} + {{ $image.Name }} {{ if $moreThenOneImage }}
    {{ end }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 3caa861..b38c7fc 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -37,13 +37,13 @@ {{ else }} {{ if not $isHome }} - {{ i18n "nav_main" . }} + {{ i18n "nav_main" . }} {{ end }} {{ with .Site.GetPage "page" "home" }} {{ range sort (.Resources.ByType "page") "Params.weight" }} {{ if ne .Name "contact.md" }} - {{ .Title }} + {{ .Title }} {{ end }} {{ end }} {{ end }} @@ -54,7 +54,7 @@ {{ if $isHome }} {{ .Title }} {{ else }} - + {{ if $pageIsInProjects }} {{ i18n "nav_backToSection" . }} {{ else }} @@ -71,7 +71,7 @@ {{ if $isHome }} {{ .Title }} {{ else }} - + {{ if $pageIsInBlog }} Back to {{ .Title | singularize}} {{ else }} @@ -84,7 +84,7 @@ {{ with .Site.GetPage "page" "home" }} {{ with .Resources.GetMatch "contact.md" }} - {{ .Title }} + {{ .Title }} {{ end }} {{ end }} diff --git a/layouts/projects/list.html b/layouts/projects/list.html index 619253e..f2becc8 100644 --- a/layouts/projects/list.html +++ b/layouts/projects/list.html @@ -26,7 +26,7 @@
    - + {{ .Title }}
    diff --git a/layouts/projects/single.html b/layouts/projects/single.html index 500a087..788cccd 100644 --- a/layouts/projects/single.html +++ b/layouts/projects/single.html @@ -11,7 +11,7 @@ {{ if $moreThenOneImage }}
    {{ end }} - {{ $image.Name }} + {{ $image.Name }} {{ if $moreThenOneImage }}
    {{ end }}