Hugo TODO
- make sure our folder structure is the proper one for what we want to achieve. Also see if we can make folder nesting level smaller, maybe by using permalinks or something. For content and static.
- can we generate SRI hashes for existent files on the fly? For bootstrap.min.css, bootstrap.*.js, popper.js/1.14.7/umd/popper.min.js. This would simplify things as we could remove the release-sri script
- get image width/height with Hugo when possible (examples images, homepage)
-
maybe use Hugo Extended version for docs' CSS?This is now done - bep's suggestion:
Re.
{{< partial "callout-warning-color-assistive-technologies.md" >}}
The partial above uses the
partial
func to load, parse and execute templates. This has its limitations and is possibly ineffective. I would recommend that you store your callouts (and other content files you want to include) in a so-called headless bundle -- and load them via.GetPage
. This way you can use markdown + shortcodes etc. - bep's suggestion:
Ref.
{{ block "header" . }}
in yoursingle.html
template. Blocks only make sense inside base template(s) (i.e.baseof.html
), which I cannot see. I would highly recommend that you restructure your templates to use them. It removes some repetition. - Fix https://github.com/twbs/bootstrap/blob/6335fbe224f28d2ce65c628756a84113ea65643f/site/layouts/_default/docs.html#L27
- Add a body class like
layout-{{layout}} page-{{kind}}-{{title}}{{ with .Params.body_class }} {{ . }}{{ end }}