Add external link feature for posts (#141)
* Add external link feature for posts * Add post example using external link
This commit is contained in:
parent
ced910a886
commit
7528f5bf5e
|
@ -29,3 +29,4 @@
|
||||||
- [Piotr Januszewski](https://piojanu.github.io)
|
- [Piotr Januszewski](https://piojanu.github.io)
|
||||||
- [Artem Khvastunov](https://artspb.me)
|
- [Artem Khvastunov](https://artspb.me)
|
||||||
- [Gabriel Nepomuceno] (https://blog.nepomuceno.me)
|
- [Gabriel Nepomuceno] (https://blog.nepomuceno.me)
|
||||||
|
- [Salvatore Giordano] (https://salvatore-giordano.github.io)
|
|
@ -6,4 +6,5 @@ description = ""
|
||||||
slug = ""
|
slug = ""
|
||||||
tags = []
|
tags = []
|
||||||
categories = []
|
categories = []
|
||||||
|
externalLink = ""
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
+++
|
||||||
|
date = "2019-01-17"
|
||||||
|
title = "Hugo coder wiki"
|
||||||
|
slug = "hugo-coder-wiki"
|
||||||
|
tags = [
|
||||||
|
"hugo",
|
||||||
|
"development",
|
||||||
|
"themes"
|
||||||
|
]
|
||||||
|
categories = [
|
||||||
|
"Development",
|
||||||
|
]
|
||||||
|
externalLink = "https://github.com/luizdepra/hugo-coder/wiki"
|
||||||
|
+++
|
|
@ -1,4 +1,4 @@
|
||||||
<li>
|
<li>
|
||||||
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
|
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
|
||||||
<a class="title" href="{{ .URL }}">{{ .Title }}</a>
|
<a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue