mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Merge pull request #38 from mtn/social-links
A working implementation of social links
This commit is contained in:
@@ -2,5 +2,7 @@
|
|||||||
meta_img = "/images/image.jpg"
|
meta_img = "/images/image.jpg"
|
||||||
tags = ["tags"]
|
tags = ["tags"]
|
||||||
description = "Desc"
|
description = "Desc"
|
||||||
|
hacker_news_id = ""
|
||||||
|
lobsters_id = ""
|
||||||
title = "Title"
|
title = "Title"
|
||||||
+++
|
+++
|
||||||
|
@@ -23,6 +23,18 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tags">
|
||||||
|
<ul>
|
||||||
|
{{ if isset .Params "hacker_news_id" }}
|
||||||
|
<div class="middot"></div>
|
||||||
|
<li><a href="https://news.ycombinator.com/item?id={{ .Params.hacker_news_id }}">Hacker News</a> </li>
|
||||||
|
{{ end }}
|
||||||
|
{{ if isset .Params "lobsters_id" }}
|
||||||
|
<div class="middot"></div>
|
||||||
|
<li><a href="https://lobste.rs/s/{{ .Params.lobsters_id }}">Lobsters</a> </li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="markdown">
|
<div class="markdown">
|
||||||
|
Reference in New Issue
Block a user