Heads up if you’re on a pre-0.58 version of Hugo (the static site generator). As of 0.58 (as far as I can tell from the release notes), your templates will most likely break as .Data.Pages is now .Site.RegularPages. You’ll most likely need to make the changes on your home page and in your RSS template(s).
Notices tagged with hugo
-
Aral Balkan (aral@mastodon.ar.al)'s status on Wednesday, 02-Oct-2019 12:24:54 CEST Aral Balkan -
Aral Balkan (aral@mastodon.ar.al)'s status on Sunday, 06-Jan-2019 21:39:52 CET Aral Balkan Got #Hugo to display the last git commit date/time of a post, at least, if not the actual last modified date of the file (which I couldn’t find a way to do) by:
1. Setting enableGitInfo = true in config.toml
2. Creating a layouts/shortcodes/lastmodified.html
<p><strong>Last modified:</strong> {{ $.Page.Lastmod.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</p>
3. And on the post itself, using the shortcode:
{{< lastmodified >}}
(Won’t work if your site isn’t under git version control.)
-
infosec-handbook.eu (infosechandbook@mastodon.at)'s status on Sunday, 21-Oct-2018 16:15:31 CEST infosec-handbook.eu A basic introduction to the static site generator Hugo and why your static website is more secure than Wordpress sites:
https://infosec-handbook.eu/blog/static-blogging/
#hugo #wordpress #cms #security #blogging #infosec #cybersecurity #security
-
Kevin Gimbel (kevingimbel@mastodon.social)'s status on Tuesday, 18-Sep-2018 09:29:16 CEST Kevin Gimbel In case you missed it: I made a #Mastodon Shortcode for #Hugo, a static site generator. Embed all the toots into your #blog posts!
https://www.kevingimbel.com/mastodon-embed-shortcode-for-hugo/