diff --git a/assets/css/theme.css b/assets/css/theme.css index a48d78cc21..6e1f241d9b 100644 --- a/assets/css/theme.css +++ b/assets/css/theme.css @@ -2446,6 +2446,27 @@ html[dir="rtl"] #R-sidebar ul.collapsible-menu > li > label > i.fa-chevron-right transform: scaleX(-1); } +a#R-logo { + color: var(--MENU-SECTIONS-BG-color); + font-size: 1.875rem; + font-variation-settings: var(--INTERNAL-MAIN-TITLES-H4-font-variation-settings); + font-weight: var(--INTERNAL-MAIN-TITLES-H4-font-weight); + font-family: var(--INTERNAL-MAIN-TITLES-H4-font); + letter-spacing: var(--INTERNAL-MAIN-TITLES-H4-letter-spacing); + max-width: 60%; + text-transform: uppercase; + width: 14.125rem; + white-space: nowrap; +} +a#R-logo:hover { + color: var(--MENU-SECTIONS-BG-color); +} +@media only all and (max-width: 59.999rem) { + a#R-logo { + font-size: 1.5625rem; + } +} + .columnize{ column-count: 2; } diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 505e885c93..4ce3855c7a 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -5,6 +5,12 @@ # Hugo # These options usually apply to other themes as well. +# The title to be used for links to the main page +# Default: not set +# This name will be used for the link to the main page in the upper section +# of the menu. If not set, `title` from the Hugo settings will be used. +linkTitle = "Relearn" + # The author of your site. # Default: not set # This will be used in HTML meta tags, the opengraph protocol and twitter diff --git a/exampleSite/content/configuration/sitemanagement/meta/_index.en.md b/exampleSite/content/configuration/sitemanagement/meta/_index.en.md index 2fd54b3294..c29412ea38 100644 --- a/exampleSite/content/configuration/sitemanagement/meta/_index.en.md +++ b/exampleSite/content/configuration/sitemanagement/meta/_index.en.md @@ -1,7 +1,7 @@ +++ description = "What site-wide meta nformation can be set" frontmatter = ["description"] -options = ["author.email", "author.name"] +options = ["author.email", "author.name", "linkTitle"] title = "Meta Information" weight = 3 +++ @@ -17,6 +17,18 @@ weight = 3 email = 'santa@example.com' {{< /multiconfig >}} +## Site Title + +The `title` will be used in meta information of your HTML. + +{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} It will also be used for the text at the top of the sidebar. If you want to show a different text in the sidebar, you can overwrite `linkTitel`. + +{{< multiconfig file=hugo >}} +title = 'Hugo Relearn Theme' +[params] + linkTitle = "Relearn" +{{< /multiconfig >}} + ## Site Description {{% badge style="green" icon="fa-fw fab fa-markdown" title=" " %}}Front Matter{{% /badge %}} The theme shows a site description in various places, such as RSS feeds and meta tags. For this, it uses the `description` field from your home page's front matter. diff --git a/exampleSite/content/introduction/releasenotes/7/0.en.md b/exampleSite/content/introduction/releasenotes/7/0.en.md index d474aceb49..c423b7bbea 100644 --- a/exampleSite/content/introduction/releasenotes/7/0.en.md +++ b/exampleSite/content/introduction/releasenotes/7/0.en.md @@ -69,6 +69,12 @@ weight = -0 You don't need to change anything yet but will receive warnings if the old settings are used. +- {{% badge style="note" title=" " %}}Change{{% /badge %}} The default logo is not contained inside of the theme's logo partial anymore. + + This is to avoid usage of the theme's branding throughout the web in non-modified installations. + + In addition, the default text for the logo partial is now [taken from the `linkTitle` setting](configuration/sitemanagement/meta#site-title) of your `hugo.toml`. + ## New - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The docs received a much-needed overhaul for all chapters. diff --git a/exampleSite/layouts/partials/logo.html b/exampleSite/layouts/partials/logo.html new file mode 100644 index 0000000000..64c58267f1 --- /dev/null +++ b/exampleSite/layouts/partials/logo.html @@ -0,0 +1,37 @@ + + \ No newline at end of file diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index a5beda5824..16e4650c56 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -1,53 +1,3 @@ - \ No newline at end of file diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index fc219abdd9..c60fd6c7e0 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -6.4.0+d5d7a94e8f291cdd80d26ebda063f6a89fa50547 \ No newline at end of file +6.4.0+2c7e6f8964b50f1210c1776038b1ea2131f6213e \ No newline at end of file