Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorde-souza <43355143+de-souza@users.noreply.github.com>2020-03-17 01:22:02 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2020-03-17 01:22:02 +0300
commitec129606276926de1a35d9156abb5bc4b0f40157 (patch)
tree8c9a68d851009e576b46aebbc17ec26a4cedd4b4
parente2592167dff39528c853f9f4c192ffcd8661d17a (diff)
Switch to relative URL and remove comment
-rw-r--r--layouts/_default/home.html9
1 files changed, 1 insertions, 8 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
index 5052769..30673ff 100644
--- a/layouts/_default/home.html
+++ b/layouts/_default/home.html
@@ -1,12 +1,5 @@
{{ define "loadshortcodes" }}
-{{/*
- Here Hugo is forced to cycle through all the items that will appear on
- the page, effectively pre-rendering all their shortcodes. Afterwards,
- when a shortcode contains a "css" or a "js" entry in their local
- .Scratch variable, the content of this entry is merged to the content
- of the corresponding entry in the global .Scratch variable.
-*/}}
{{ $pag := where site.RegularPages "Type" "in" site.Params.mainSections | .Paginate }}
{{ range $pag.Pages }}
{{ with .Content }}{{ end }}
@@ -31,7 +24,7 @@
{{ .Summary }}
{{ if .Truncated }}
<p>
- <a class="u-clickable" href="{{ .Permalink }}">Read More…</a>
+ <a class="u-clickable" href="{{ .RelPermalink }}">Read More…</a>
</p>
{{ end }}
{{ else }}