From 23766907958505259eee7dd1c8812f658e5b2ba2 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 13 Sep 2021 00:48:07 +0200 Subject: Tags overhaul to improve search results, and some light rewording or reformating --- content/blog/hugo/adding-custom-shortcode-age.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'content/blog/hugo/adding-custom-shortcode-age.md') diff --git a/content/blog/hugo/adding-custom-shortcode-age.md b/content/blog/hugo/adding-custom-shortcode-age.md index afa96b4..1f912bc 100644 --- a/content/blog/hugo/adding-custom-shortcode-age.md +++ b/content/blog/hugo/adding-custom-shortcode-age.md @@ -28,7 +28,12 @@ With this `layouts/shortcodes/age.html` file I can just add the following in a p {{< print "{{% age %}}" >}} {{< / highlight >}} -And if you are wondering how I am able to display a shortcode code inside this page without having it render, it is because I defined another shortcode that does exactly that [here](https://git.adyxax.org/adyxax/www/src/branch/master/layouts/shortcodes/print.html)! Hugo really is a powerful static website generator, it is amazing. +And if you are wondering how I am able to display a shortcode code inside this page without having it render, it is because I defined another shortcode that does exactly like this : +{{< highlight html >}} +{{< print "{{ index .Params 0 }}" >}} +{{< / highlight >}} + +You can find these examples [here](https://git.adyxax.org/adyxax/www/src/branch/master/layouts/shortcodes/)! Hugo really is a powerful static website generator, it is amazing. ## References -- cgit v1.2.3