From 8194c152150642351826fa8593e1451bff4a5796 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 11 Apr 2021 10:51:06 +0100 Subject: [PATCH] final tweaks for shortcodes --- config.toml | 9 ++++++--- content/post/testing-new-shortcodes.md | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index c332812..0a8bec3 100644 --- a/config.toml +++ b/config.toml @@ -11,6 +11,7 @@ paginate = 10 PygmentsCodeFences = true PygmentsStyle = "tango" +enableInlineShortcodes = true [indexes] tag = "tags" @@ -24,6 +25,10 @@ PygmentsStyle = "tango" custom_js = ["js/math-code.js"] dateFormat = "02 Jan 2006, 15:04" +[markup] + [markup.goldmark.renderer] + unsafe= true + [menu] [[menu.main]] name = "Home" @@ -56,6 +61,4 @@ PygmentsStyle = "tango" locals = "https://exitingthecave.locals.com/" gab = "https://gab.com/exitingthecave/" -[markup] - [markup.goldmark.renderer] - unsafe= true + diff --git a/content/post/testing-new-shortcodes.md b/content/post/testing-new-shortcodes.md index 8176821..1df9492 100644 --- a/content/post/testing-new-shortcodes.md +++ b/content/post/testing-new-shortcodes.md @@ -3,6 +3,7 @@ title: "Testing New Shortcodes" date: 2021-04-10T11:27:58+01:00 draft: false --- +{{< time.inline >}}{{ now }}{{< /time.inline >}} Today, I'm just testing out a few new Hugo shortcodes I added to the site. I've culled these from around the internet, and hacked together some of my own. You might find them useful, if you're doing static blogging yourself. You can find all the code on the repo for this site, **{{< newtab title="found here." url="https://gitea.gmgauthier.com/gmgauthier/personal-blog" >}}** As I do more and more blogging from the static site generator, this sort of thing will be more and more useful to me, at least.