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

github.com/calintat/minimal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcalintat <calintat@gmail.com>2017-08-29 20:28:07 +0300
committercalintat <calintat@gmail.com>2017-08-29 20:28:07 +0300
commitd341780f552dccac6b6c7ecbe45b58c7fe46fc6f (patch)
treeb9a7c410332992e99fc6050c4cf7fe9e4a67d291
parent2ac9acc008de52f61cc79fe2f93e61ba62e17d3b (diff)
Support for custom links in the front matter
-rw-r--r--layouts/partials/list-item.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/list-item.html b/layouts/partials/list-item.html
index 3d6f795..445eded 100644
--- a/layouts/partials/list-item.html
+++ b/layouts/partials/list-item.html
@@ -2,6 +2,7 @@
{{ $.Scratch.Set "link" .RelPermalink }}
{{ with .Params.repo }} {{ printf "https://github.com/%s/%s/" $.Site.Params.githubUsername . | $.Scratch.Set "link" }} {{ end }}
+ {{ with .Params.link }} {{ $.Scratch.Set "link" . }} {{ end }}
{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006") | $.Scratch.Set "subtitle" }}
{{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }}