aboutsummaryrefslogtreecommitdiff
path: root/content/blog/hugo
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-13 00:48:07 +0200
committerJulien Dessaux2021-09-13 00:48:07 +0200
commit23766907958505259eee7dd1c8812f658e5b2ba2 (patch)
tree86218bf04bfa43a6a703343d3b9cabb27d8885de /content/blog/hugo
parentUpdated gentoo upgrades article (diff)
downloadwww-23766907958505259eee7dd1c8812f658e5b2ba2.tar.gz
www-23766907958505259eee7dd1c8812f658e5b2ba2.tar.bz2
www-23766907958505259eee7dd1c8812f658e5b2ba2.zip
Tags overhaul to improve search results, and some light rewording or reformating
Diffstat (limited to 'content/blog/hugo')
-rw-r--r--content/blog/hugo/adding-custom-shortcode-age.md7
1 files changed, 6 insertions, 1 deletions
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