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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByeonggon Lee <gonny952@gmail.com>2019-04-20 10:45:34 +0300
committerByeonggon Lee <gonny952@gmail.com>2019-04-20 10:45:34 +0300
commit49d8d3dc01d607442b2138619d094373f620e857 (patch)
tree47773d781cba6d5edc3b8a7823620d7fc4f8812c
parent381049a428f10ae6747aca91287a462ffd02b5ae (diff)
Use .Permalink instead of .URL
-rw-r--r--layouts/_default/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index eb77cdc..a0777f3 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -3,7 +3,7 @@
{{ range .Pages }}
<div class="apps-app-item">
<div class="apps-app-icon">
- <a href="{{ .URL }}">
+ <a href="{{ .Permalink }}">
{{ if or (not (isset .Params "img")) (eq .Params.img "") }}
<img src="{{ .Site.BaseURL }}/img/no-image.svg"/>
{{ else }}
@@ -12,7 +12,7 @@
</a>
</div>
<div class="apps-app-name">
- <a href="{{ .URL }}">
+ <a href="{{ .Permalink }}">
<h6>{{- .Title -}}</h6>
</a>
</div>