Skip to content

Commit 117e614

Browse files
committed
fix: Fix hugo parsing
1 parent 5007478 commit 117e614

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

config.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ main_button_sub = "powered by the two centres hosted at the Luxembourg House of
99
subtitle = "**Open source software is more important than ever!** *And we are committed to improve and cyber secure the society through open technologies.*"
1010
copyright = "The Luxembourg House of Cybersecurity - Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)"
1111

12-
enableRobotsTXT = true
13-
Paginate = 4
12+
[pagination]
13+
pagerSize = 4
1414

15+
enableRobotsTXT = true
1516
theme = "kode"
1617

18+
[markup]
19+
[markup.goldmark]
20+
[markup.goldmark.renderer]
21+
unsafe = true
22+
1723
[taxonomies]
1824
tag = "tags"
1925

@@ -54,4 +60,3 @@ theme = "kode"
5460
title = "CyberSecurityLuxembourg GitHub account"
5561
icon = "fa-github"
5662
url = "https://github.com/CybersecurityLuxembourg"
57-

content/projects/coral.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ image_alt: "Logo of CORAL"
77
logo: "logo-coral.png"
88
weight: 60
99
tags: ["projects", "coral", "nc3"]
10-
logo: "logo_nc3.jpg"
1110
author: "NC3"
1211
draft: true
1312
---

layouts/shortcodes/readme.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
{{ $data := resources.GetRemote ( printf "https://raw.githubusercontent.com/%s/master/README.md" $.Page.Params.repository) }}
2-
{{ $data.Content | markdownify | safeHTML }}
1+
{{ $repo := $.Page.Params.repository }}
2+
{{ if not $repo }}
3+
{{ errorf "readme shortcode requires a `repository` parameter on %q" $.Page.File.Path }}
4+
{{ else }}
5+
{{ $url := printf "https://raw.githubusercontent.com/%s/master/README.md" $repo }}
6+
{{ with resources.GetRemote $url }}
7+
{{ .Content | markdownify | safeHTML }}
8+
{{ else }}
9+
{{ warnf "readme shortcode: unable to fetch %q" $url }}
10+
<p><a href="{{ printf "https://github.com/%s" $repo }}">View the project README on GitHub</a></p>
11+
{{ end }}
12+
{{ end }}

0 commit comments

Comments
 (0)