diff options
author | calintat <calintat@gmail.com> | 2017-08-29 20:28:07 +0300 |
---|---|---|
committer | calintat <calintat@gmail.com> | 2017-08-29 20:28:07 +0300 |
commit | d341780f552dccac6b6c7ecbe45b58c7fe46fc6f (patch) | |
tree | b9a7c410332992e99fc6050c4cf7fe9e4a67d291 | |
parent | 2ac9acc008de52f61cc79fe2f93e61ba62e17d3b (diff) |
Support for custom links in the front matter
-rw-r--r-- | layouts/partials/list-item.html | 1 |
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 }} |