1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00
hugo-theme-bootstrap4-blog/layouts
Alan Orth f7d9451aa6
layouts: Fix minor encoding issue with dates
This is similar to other encoding issues we have fixed lately where
we need to make sure Hugo (or Golang's HTML template library) does
not escape our non-ASCII content.

For example, this is how our datetimes end up currently:

    <p class="blog-post-meta"><time datetime="2020-01-16T09:23:20&#43;02:00">Thu Jan 16, 2020</time> by Alan Orth

After printing them with `printf` and filtering them with the Hugo
built-in function `safeHTMLAttr` they look like this:

    <p class="blog-post-meta"><time datetime="2020-01-16T09:23:20+02:00">Thu Jan 16, 2020</time> by Alan Orth

See: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/opengraph.html
See: https://github.com/alanorth/hugo-theme-bootstrap4-blog/pull/111
2020-03-22 11:09:27 +02:00
..
_default layouts: Fix minor encoding issue with dates 2020-03-22 11:09:27 +02:00
partials layouts/partials/meta-terms.html: Trailing slash 2020-01-28 10:50:31 +02:00
404.html layouts/404.html: Add minimal not found page 2018-01-14 05:49:55 +02:00
robots.txt Support baseurl without trailing slash 2019-06-04 00:26:09 +02:00