mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36: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"
|
||||
tags = ["tags"]
|
||||
description = "Desc"
|
||||
hacker_news_id = ""
|
||||
lobsters_id = ""
|
||||
title = "Title"
|
||||
+++
|
||||
|
@@ -23,6 +23,18 @@
|
||||
{{ end }}
|
||||
</ul>
|
||||
</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 class="markdown">
|
||||
|
Reference in New Issue
Block a user