aboutsummaryrefslogtreecommitdiff
path: root/content/blog/hugo
diff options
context:
space:
mode:
Diffstat (limited to '')
-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