
ar.al/2018/06/17/formatting-an-iso-8601-date-stamp-in-hugo
Preview meta tags from the ar.al website.
Linked Hostnames
11- 4 links togohugo.io
- 2 links toar.al
- 2 links tosmall-tech.org
- 1 link tocreativecommons.org
- 1 link todeveloper.mozilla.org
- 1 link togohugohq.com
- 1 link tomastodon.ar.al
- 1 link tositejs.org
Thumbnail

Search Engine Appearance
Formatting an ISO 8601 date stamp in Hugo
Hugo has a plethora of functions that you can use in your templates, including one for formatting dates called dateFormat. The index of this blog has a list of the posts in chronological order and uses a <time> tag. I wanted to include the machine-readable datetime attribute but the standard serialisation of Hugo’s .Date property doesn’t return an ISO 8601 timestamp. This led me to look up the esoteric syntax of Hugo’s dateFormat function and use the following format string to create an ISO 8601 string:
Bing
Formatting an ISO 8601 date stamp in Hugo
Hugo has a plethora of functions that you can use in your templates, including one for formatting dates called dateFormat. The index of this blog has a list of the posts in chronological order and uses a <time> tag. I wanted to include the machine-readable datetime attribute but the standard serialisation of Hugo’s .Date property doesn’t return an ISO 8601 timestamp. This led me to look up the esoteric syntax of Hugo’s dateFormat function and use the following format string to create an ISO 8601 string:
DuckDuckGo
Formatting an ISO 8601 date stamp in Hugo
Hugo has a plethora of functions that you can use in your templates, including one for formatting dates called dateFormat. The index of this blog has a list of the posts in chronological order and uses a <time> tag. I wanted to include the machine-readable datetime attribute but the standard serialisation of Hugo’s .Date property doesn’t return an ISO 8601 timestamp. This led me to look up the esoteric syntax of Hugo’s dateFormat function and use the following format string to create an ISO 8601 string:
General Meta Tags
7- titleFormatting an ISO 8601 date stamp in Hugo – Aral Balkan
- charsetutf-8
- viewportwidth=device-width, initial-scale=1
- article:published_time2018-06-17T09:14:55+01:00
- article:modified_time2018-06-17T09:14:55+01:00
Open Graph Meta Tags
12- og:titleFormatting an ISO 8601 date stamp in Hugo
- og:descriptionHugo has a plethora of functions that you can use in your templates, including one for formatting dates called dateFormat. The index of this blog has a list of the posts in chronological order and uses a <time> tag. I wanted to include the machine-readable datetime attribute but the standard serialisation of Hugo’s .Date property doesn’t return an ISO 8601 timestamp. This led me to look up the esoteric syntax of Hugo’s dateFormat function and use the following format string to create an ISO 8601 string:
- og:typearticle
- og:urlhttps://ar.al/2018/06/17/formatting-an-iso-8601-date-stamp-in-hugo/
- og:imagehttps://ar.al/images/aral-432.jpg
Twitter Meta Tags
4- twitter:cardsummary_large_image
- twitter:imagehttps://ar.al/images/aral-432.jpg
- twitter:titleFormatting an ISO 8601 date stamp in Hugo
- twitter:descriptionHugo has a plethora of functions that you can use in your templates, including one for formatting dates called dateFormat. The index of this blog has a list of the posts in chronological order and uses a <time> tag. I wanted to include the machine-readable datetime attribute but the standard serialisation of Hugo’s .Date property doesn’t return an ISO 8601 timestamp. This led me to look up the esoteric syntax of Hugo’s dateFormat function and use the following format string to create an ISO 8601 string:
Item Prop Meta Tags
7- nameFormatting an ISO 8601 date stamp in Hugo
- descriptionHugo has a plethora of functions that you can use in your templates, including one for formatting dates called dateFormat. The index of this blog has a list of the posts in chronological order and uses a <time> tag. I wanted to include the machine-readable datetime attribute but the standard serialisation of Hugo’s .Date property doesn’t return an ISO 8601 timestamp. This led me to look up the esoteric syntax of Hugo’s dateFormat function and use the following format string to create an ISO 8601 string:
- datePublished2018-06-17T09:14:55+01:00
- dateModified2018-06-17T09:14:55+01:00
- wordCount149
Link Tags
4- alternatehttps://ar.al/index.xml
- stylesheet/css/browser.css
- stylesheet/css/terminal.css
- stylesheet/style.css
Emails
2- [email protected]
- [email protected]?subject=Invitation%20to%20speak&body=Hey%20Aral%2C%0A%0AWe%E2%80%99d%20love%20to%20have%20you%20present%20a%20keynote%20at%20our%20event.%20The%20details%20are%20below%3A%20%0A%0AEvent%20name%3A%20%0ADate%3A%20%0ALocation%3A%0ATime%20of%20talk%20(if%20known)%3A%0AEstimated%20number%20of%20attendees%3A%20%0A%0AThis%20is%20for%20a%3A%0A%0A%5B%20%5D%20Commercial%2Findustry%20conference%20or%20exposition%0A%5B%20%5D%20Community%20conference%0A%5B%20%5D%20Not-for-profit%20conference%0A%5B%20%5D%20Local%20meet-up%0A%5B%20%5D%20A%20private%20company%20event%0A%5B%20%5D%20Other%3A%20(please%20specify)%0A%0AWe%20are%20happy%20to%3A%0A%0A%5B%20%5D%20Pay%20expenses%20(travel%2C%20hotel%2C%20etc.)%0A%5B%20%5D%20Pay%20an%20honorarium.%0A%5B%20%5D%20We%20can%E2%80%99t%20pay%20expenses%20or%20an%20honorarium%20but%20this%20is%20a%20community-run%20event%20where%20no%20one%20gets%20paid%20for%20their%20time%20organising%20or%20attending%20the%20event%20(please%20note%20that%20I%20can%20only%20do%20a%20very%20small%20number%20of%20pro-bono%20events%20and%20I%20will%20only%20consider%20local%20ones%20that%20do%20not%20involve%20travel%20time%20and%2For%20cost.)%0A%0A(The%20above%20sections%20are%20to%20save%20both%20of%20us%20time%20in%20quickly%20determining%20whether%20I%20am%20the%20right%20speaker%20for%20your%20event.%20Please%20feel%20free%20to%20add%20to%20this%20template%20as%20you%20see%20fit.%20I%20look%20forward%20to%20hopefully%20meeting%20you%20and%20talking%20at%20your%20event.)%0A
Links
16- https://ar.al
- https://ar.al/index.xml
- https://creativecommons.org/licenses/by-nc-sa/4.0
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time
- https://gohugo.io