ar.al/2018/06/17/formatting-an-iso-8601-date-stamp-in-hugo

Preview meta tags from the ar.al website.

Linked Hostnames

11

Thumbnail

Search Engine Appearance

Google

https://ar.al/2018/06/17/formatting-an-iso-8601-date-stamp-in-hugo

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

https://ar.al/2018/06/17/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

https://ar.al/2018/06/17/formatting-an-iso-8601-date-stamp-in-hugo

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
    • title
      Formatting an ISO 8601 date stamp in Hugo – Aral Balkan
    • charset
      utf-8
    • viewport
      width=device-width, initial-scale=1
    • article:published_time
      2018-06-17T09:14:55+01:00
    • article:modified_time
      2018-06-17T09:14:55+01:00
  • Open Graph Meta Tags

    12
    • og:title
      Formatting an ISO 8601 date stamp in Hugo
    • og:description
      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:
    • og:type
      article
    • og:url
      https://ar.al/2018/06/17/formatting-an-iso-8601-date-stamp-in-hugo/
    • og:image
      https://ar.al/images/aral-432.jpg
  • Twitter Meta Tags

    4
    • twitter:card
      summary_large_image
    • twitter:image
      https://ar.al/images/aral-432.jpg
    • twitter:title
      Formatting an ISO 8601 date stamp in Hugo
    • twitter:description
      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:
  • Item Prop Meta Tags

    7
    • name
      Formatting an ISO 8601 date stamp in Hugo
    • description
      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:
    • datePublished
      2018-06-17T09:14:55+01:00
    • dateModified
      2018-06-17T09:14:55+01:00
    • wordCount
      149
  • Link Tags

    4
    • alternate
      https://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