| Age | Commit message (Collapse) | Author |
|
when theme-toggle is disabled
|
|
|
|
* language-switch: init
* header: move logo-switches together
|
|
* fix: clicking twice on theme switch selects other text on the nav-bar.
|
|
Usage:
in site config:
languages:
ar:
languagedirection: rtl
title: مدونتي
weight: 2
* ref: https://gohugo.io/content-management/multilingual/#configure-languages
|
|
* label can be set differently from title
* label can have an optional icon with preffered size
* in site config =>
params:
label:
text: "Home"
icon: /apple-touch-icon.png
iconHeight: 35
|
|
* thanks to https://feathericons.com for svgs
* can be disabled in site config
Params:
disableThemeToggle : true
|
|
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
|
|
* hope this does not break anything xd
|
|
|
|
|