ct-martin / ctmartin-hugo-theme

Hugo theme for my websites
MIT License
0 stars 0 forks source link

Use Hugo/Goldmark "Render Hook Templates" for images and links #10

Closed ct-martin closed 4 years ago

ct-martin commented 4 years ago

https://gohugo.io/getting-started/configuration-markup#render-hook-templates

Markdown is semantic and should be kept as such. Display/rendering of Markdown should be handled in the templating. Additionally, I'd like to have better semantic markdown than using non-markdown (shortcodes) since they aren't part of the specification; I want my posts to be able to be run through Pandoc (for example) or any other Markdown reader/converter of choice, without issues.

Objectives:

Related: #3, #6, #7

ct-martin commented 4 years ago

Also, https://spec.commonmark.org/0.29/#links (images is the section after too)

ct-martin commented 4 years ago

With above commits, as much of what I can do in templates has been done.

Todo:

ct-martin commented 4 years ago

Note: it seems that Hugo isn't using the render-image.amp.html template...

TODO: figure out later/file bug report

ct-martin commented 4 years ago

Cleanup across sites is outside the scope of this issue.

Code is already in place to do this; upstream bug filed at https://github.com/gohugoio/hugo/issues/7160