diff --git a/exampleSite/content/basics/configuration/_index.en.md b/exampleSite/content/basics/configuration/_index.en.md index a7b4f403fa..f894055f70 100644 --- a/exampleSite/content/basics/configuration/_index.en.md +++ b/exampleSite/content/basics/configuration/_index.en.md @@ -86,6 +86,8 @@ Note that some of these parameters are explained in details in other sections of # If set to true, no index.html will be appended to prettyURLs; this will cause pages not # to be servable from the file system disableExplicitIndexURLs = false + # For external links you can define how they are opened in your browser; this setting will only be applied to the content area but not the shortcut menu + externalLinkTarget = "_blank" ``` ## Serving your page from a subfolder diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index 5c0496125d..0ad22f1f79 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -22,6 +22,9 @@ This document shows you what's new in the latest release. For a detailed list of This added unnessessary complexity. So attachments for leaf bundles in non-multilang setups can now also reside in a `index.files` directory. Although the old `files` directory is now deprecated, if both directories are present, only the old `files` directory will be used for compatiblity. + You can revert back to the old behavior by defining `externalLinkTarget="_self"` in your in the `params` section of your `config.toml`. + + - {{% badge style="note" title=" " %}}Change{{% /badge %}} Absolute links prefixed with `http://` or `https://` are now opened in a separate browser tab. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now supports [Hugo's module system](https://gohugo.io/hugo-modules/). diff --git a/layouts/partials/header.html b/layouts/partials/header.html index b8093d5c86..28941fcd9d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -90,7 +90,7 @@ {{- if and (eq $outputFormat "html") .Site.Params.editURL $File }} {{- with $File.Path }}