From 01e79c10ccbeb2830492adb91490e5455b6653f6 Mon Sep 17 00:00:00 2001 From: Marc Riera Irigoyen Date: Sun, 31 May 2020 18:29:23 +0200 Subject: [PATCH] Update to Goldmark --- config.toml | 6 ++++++ content/_index.md | 13 ++++--------- layouts/_default/_markup/render-image.html | 1 + layouts/_default/_markup/render-link.html | 1 + themes/marcriera/layouts/index.html | 4 +++- 5 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 layouts/_default/_markup/render-image.html create mode 100644 layouts/_default/_markup/render-link.html diff --git a/config.toml b/config.toml index 6090d51..a5bd117 100644 --- a/config.toml +++ b/config.toml @@ -4,6 +4,7 @@ theme = "marcriera" DefaultContentLanguage = "ca" removePathAccents = true enableRobotsTXT = true +disableKinds = ["taxonomy", "taxonomyTerm"] [params] name = "Marc Riera Irigoyen" @@ -11,3 +12,8 @@ enableRobotsTXT = true logoimage = "images/logo.png" description = "Translator and localizer" description2 = "EN,RO > CA,ES" + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true diff --git a/content/_index.md b/content/_index.md index d38d226..a6024f7 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,19 +1,14 @@ --- --- -
**Contact:** -E-mail: contacte@mrtraduccions.cat +![E-mail](/images/icon-mail.png) [contacte@mrtraduccions.cat](mailto:contacte@mrtraduccions.cat) -Phone: (+34) 652 492 008 +![Phone:](/images/icon-phone.png) (+34) 652 492 008   - +![Twitter:](/images/icon-twitter.png) [@marcrierai](https://www.twitter.com/marcrierai) -Twitter: @marcrierai - -LinkedIn: Marc Riera Irigoyen - -
+![LinkedIn:](/images/icon-linkedin.png) [Marc Riera Irigoyen](https://www.linkedin.com/in/marc-riera-irigoyen/) diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..9a222e0 --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1 @@ +{{ .Text }} diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..f04b2e3 --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +{{ .Text | safeHTML }} diff --git a/themes/marcriera/layouts/index.html b/themes/marcriera/layouts/index.html index a3a96df..3527ab4 100644 --- a/themes/marcriera/layouts/index.html +++ b/themes/marcriera/layouts/index.html @@ -4,7 +4,7 @@ {{ .Site.Title }} - {{ .Site.Params.Description }} - {{ .Hugo.Generator }} + {{ hugo.Generator }} @@ -28,7 +28,9 @@
+
{{ .Content }} +