Skip to content

Commit 812d4a5

Browse files
authored
Fix shortcode syntax and tabbing for latest hugo version (#98)
1 parent 9973e3a commit 812d4a5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

content/news.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ title: Codemeta News
33
layout: single
44
---
55

6-
{{< news >}}
6+
{{% news %}}

layouts/shortcodes/news.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
{{ $combi := sort $combi ".pubDate" "desc" }}
2020

21-
{{ range $combi }}
22-
<li class="ps-2 pb-2">
23-
<h3><a class="list-group-item newslink p-2" href="{{ .link }}">{{ .title }}</a></h3>
24-
<small class="ps-2 text-secondary-emphasis">{{ .pubDate | time.Format "Jan 02, 2006 3:04 PM MST" }}</small>
25-
<div class="ps-2 pt-2">{{ .description }}</div>
26-
</li>
27-
{{ end }}
21+
{{ range $combi }}
22+
<li class="ps-2 pb-2">
23+
<h3><a class="list-group-item newslink p-2" href="{{ .link }}">{{ .title }}</a></h3>
24+
<small class="ps-2 text-secondary-emphasis">{{ .pubDate | time.Format "Jan 02, 2006 3:04 PM MST" }}</small>
25+
<div class="ps-2 pt-2">{{ .description }}</div>
26+
</li>
27+
{{ end }}
2828
</ul>
2929
<script src="../js/news.js"></script>
3030
<script>

0 commit comments

Comments
 (0)