diff options
author | Hanzei <hanzei@mailbox.org> | 2018-07-21 10:53:23 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-07-21 10:53:23 +0300 |
commit | 8fbb68c6bedea34ec2038ee34824cba81a95b99f (patch) | |
tree | ba5b372365f70578ca9d45b9ff3f92422ffe712b /layouts | |
parent | 452913c1faedcc20cf500555fa33443464ed7741 (diff) |
Use abs url with GetPage
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/blog/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/head/openGraph.html | 2 | ||||
-rw-r--r-- | layouts/partials/home/blog.html | 2 | ||||
-rw-r--r-- | layouts/partials/home/projects.html | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 98f6062..ef3c794 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,5 +1,5 @@ {{ define "title" }} - <h1 class="bold-title is-1">{{ (.Site.GetPage "section" "blog").Title }}</h1> + <h1 class="bold-title is-1">{{ (.Site.GetPage "section" "/blog").Title }}</h1> {{ end }} {{ define "main" }} diff --git a/layouts/index.html b/layouts/index.html index 7ab4cd3..c4330c2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,7 @@ </head> <body> <div id="top"> - {{ with .Site.GetPage "page" "home" }} + {{ with .Site.GetPage "page" "/home" }} <div class="hero is-{{ .Site.Params.home.introHeight | default "large" }}"> <!-- Super sweet Hero body title --> <div class="hero-body"> @@ -38,7 +38,7 @@ <!-- Tell them all about it! --> {{ partial "nav.html" . }} - {{ with .Site.GetPage "page" "home" }} + {{ with .Site.GetPage "page" "/home" }} {{ $home := . }} {{ range sort (.Resources.ByType "page") "Params.weight" }} {{ if ne .Name "contact.md" }} diff --git a/layouts/partials/head/openGraph.html b/layouts/partials/head/openGraph.html index 366ab92..d613451 100644 --- a/layouts/partials/head/openGraph.html +++ b/layouts/partials/head/openGraph.html @@ -9,7 +9,7 @@ <meta property="og:image" content="{{ .Permalink }}"/> {{ end }} {{ else }} -{{ with .Site.GetPage "page" "home" }} +{{ with .Site.GetPage "page" "/home" }} {{ range first 5 (.Resources.ByType "image") }} <meta property="og:image" content="{{ .Permalink }}"/> {{ end }} diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html index fb9a62a..1cbade0 100644 --- a/layouts/partials/home/blog.html +++ b/layouts/partials/home/blog.html @@ -1,4 +1,4 @@ -{{ with .Site.GetPage "section" "blog" }} +{{ with .Site.GetPage "section" "/blog" }} <div class="section" id="{{ .Title | urlize }}"> <!-- Begin Blog container --> <div class="container"> diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index c4a637e..783e6f8 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -1,4 +1,4 @@ -{{ with .Site.GetPage "section" "projects" }} +{{ with .Site.GetPage "section" "/projects" }} <div class="section" id="{{ .Title | urlize }}"> <!-- Begin Projects container --> <div class="container"> @@ -8,7 +8,7 @@ <div class="section is-small"> <div class="columns is-multiline"> {{ $totalProjects := (len .Pages) }} - {{ $numberOfProjectsToShow := .Site.Params.numberOfProjectsToShow | default $totalProjects }} + {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if eq (mod $numberOfProjectsToShow 2) 0 }} <div class="column is-half"> |