feat: if language switch shows language codes (instead of full language name), those codes are now uppercase
feat: translation list in post headers are replaced by links to translations in page headers - the old translation list in the post header can still be enabled using the boolean parameter "showTranslationListInPosts" (i.e. to turn it back on, add the parameter to your hugo.toml and set it to true)
If an article has a `canonicalUrl` set, Originally published at `<hostname>` will be displayed at the top of the article by setting `showCanonicalLink` to true.
Usage =>
In front-matter:
canonicalUrl: "<URL>"
showCanonicalLink: true
Usage
- in site config =>
Params:
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
- in front-matter vars =>
---
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
---
- Front-matter vars overrides global ones
* adds Breadcrumb nav above title of single page/post
* add enabler var 'ShowBreadCrumbs'
* introduce i18n var "home"
usage:
in site config:
Params:
ShowBreadCrumbs: true
in page front-matter:
ShowBreadCrumbs: false
in site config =>
params:
cover:
hidden: true # hide everywhere but not in structured data
hiddenInList: true # hide on list pages and home
hiddenInSingle: true # hide on single page
per-page in front-matter =>
hidden: true # only hide on current single page
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
- generates images of different sizes
- browser can choose between set of images w.r.t viewport width
- is enabled by default
- supported image formats :
https://gohugo.io/content-management/image-processing/#target-format
- Customizing site config params:
params:
cover:
responsiveImages: false # if want to disable it
linkFullImages: true # if link original image on clicking cover
* change in d819914 and #13
* previous impl breks sites not using `/static` dir as their static location
* hugo supports multiple static directories and previous impl checks only for one
* ref : https://gohugo.io/content-management/static-files/
usage change in post-vars =>
cover:
image: '<relative url>'
relative: true
* checks whether path mentioned in `cover` page-variable exists OR is an external url,
else sets the relative path for image w.r.t the post the cover is of.