diff options
author | Dragos Plesca <dragos.plesca@gmail.com> | 2015-03-22 01:35:55 +0300 |
---|---|---|
committer | Dragos Plesca <dragos.plesca@gmail.com> | 2015-03-22 01:35:55 +0300 |
commit | 2ec9b93b6221bc7c9a515402fe483239d06ba924 (patch) | |
tree | 89f40c50519f1c88fa68234f15ab19f0c3f6a51d | |
parent | aa7face6429311a90f61ca9e5e2e8bb98c9fc37a (diff) |
Category links in templates are using baseurl
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index da08491..8c7e09a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -20,7 +20,7 @@ {{ end }} {{ if isset .Params "categories" }} under - {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href="/categories/{{ . | urlize }}">{{ . }}</a>{{ end }} + {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href="{{ .Site.BaseUrl }}/categories/{{ . | urlize }}">{{ . }}</a>{{ end }} {{ end }} </p> </header> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6df9477..6385cf9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -19,7 +19,7 @@ {{ end }} {{ if isset .Params "categories" }} under - {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href="/categories/{{ . | urlize }}">{{ . }}</a>{{ end }} + {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href="{{ .Site.BaseUrl }}/categories/{{ . | urlize }}">{{ . }}</a>{{ end }} {{ end }} </p> </header> diff --git a/layouts/index.html b/layouts/index.html index 29bd14c..36d50e8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -20,7 +20,7 @@ {{ end }} {{ if isset .Params "categories" }} under - {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href="/categories/{{ . | urlize }}">{{ . }}</a>{{ end }} + {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href="{{ .Site.BaseUrl }}/categories/{{ . | urlize }}">{{ . }}</a>{{ end }} {{ end }} </p> </header> |