From de1ca477b8402ad195b121d60eddb2c3e4d2f506 Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Wed, 17 Aug 2016 10:30:55 +0200 Subject: [PATCH] docs: Fix URLs in examples sites with path prefix When baseurl ist something like "http://example.com/hugo/" a link to "/tags/..." does not work. Therefore I fixed the examples so that they also work in cases where the website is not saved at the server's root. See also https://discuss.gohugo.io/t/how-shall-i-link-a-taxonomy-page/3920 --- docs/content/taxonomies/displaying.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/taxonomies/displaying.md b/docs/content/taxonomies/displaying.md index 5250e0bb1..8719807f9 100644 --- a/docs/content/taxonomies/displaying.md +++ b/docs/content/taxonomies/displaying.md @@ -38,7 +38,7 @@ each content piece are located in the usual place @@ -52,7 +52,7 @@ To list such taxonomy use the following: {{ if .Params.directors }} Director{{ if gt (len .Params.directors) 1 }}s{{ end }}: - {{ range $index, $director := .Params.directors }}{{ if gt $index 0 }}, {{ end }}{{ . }}{{ end }} + {{ range $index, $director := .Params.directors }}{{ if gt $index 0 }}, {{ end }}{{ . }}{{ end }} {{ end }} Alternatively, you may use the [delimit]({{< relref "templates/functions.md#delimit" >}}) @@ -110,7 +110,7 @@ The following example displays all tag keys: @@ -120,7 +120,7 @@ This example will list all taxonomies, each of their keys and all the content as