| Age | Commit message (Collapse) | Author |
|
|
|
start from this commit, PaperModX will no longer support multi language site,
post still have language, but there won't be /zh, /zh/archives pages
|
|
|
|
|
|
|
|
|
|
|
|
amend to 1de55c4
|
|
if the image is present in assets directory.
- Resizing the image will reduce the size of a large image.
- Should improve image load time.
- Usage:
- Add the image under assets directory.
- Provide path in `label.icon`.
- if image is located as `assets/images/image.png` mention `label.icon: images/image.png`.
|
|
- The site function provides global access to the same data as the .Site page method.
- Current context (`.`) is never considered.
|
|
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-height
|
|
fixes: #622 #623
|
|
- Should fix search engines picking up elements inside noscript
|
|
so that icons can be added via external scripts (ex. fontawesome)
fixes: #420
ref: https://gohugo.io/content-management/menus/#params
|
|
- https://gohugo.io/functions/title/
|
|
- also fixes menu-scroll-position not working in search page
|
|
LanguageName with emojify (#364)
|
|
|
|
- use a local var to get label text ot site title
fixes: #281
|
|
|
|
|
|
(#308)
- Makes auto theme work when JS is disabled
- Only applies if the 'theme' configuration parameter is set to 'auto' or is unset.
|
|
|
|
and refactor
|
|
- fix header height
61px->60px
- check for elements before displaying
- align theme-toggle
- rm unnecessary elements
- rm theme-toggle class
- rm menu class
|
|
in menu
- .Name doesn't work with emojis
- .URL doesn't work with url such as 'search/'
|
|
in menu
- Alt + /: jumps to search page if in menu
|
|
|
|
from hugov0.79.0
|
|
|
|
- displays weird text :/
- amend to ad11fe1
|
|
closes #122
|
|
- fix non-highlight on subdirs
- menu url need not have leading or trailing slashes
- fix non-highlight with multilingual config
|
|
- displays weird text :/
|
|
- removes unnecessary local-storage item removal
- less inline script on build
- assumes `defaultTheme as auto when value is not `dark` or `light`
- should work according to table at docs
|
|
- languageName: ":country_emoji:"
can now be displayed as emoji
|
|
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
|
|
This reverts commit 0eed773e6dcf999cb052b6f781bfbe7ad74e63c7.
|
|
- owner can set dark/light/auto default theme
- theme toggle will be enabled on all theme modes unless disbaled
- if disableThemeToggle is true, user won't be able to switch themes,
here auto (a/c to system theme) also works
for #69
|
|
element.)
c - ToC Open/Close
g- Go To Top
h - Home (according to current lang)
t - Theme toggle
more: https://www.w3schools.com/tags/att_global_accesskey.asp
|
|
* language-switch: init
* header: move logo-switches together
|
|
|
|
* 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
|
|
for having default-theme with theme-toggle
* can set/unset default theme
* for default-theme: dark/light : theme-toggle will not be visible
* theme-toggle with defaultheme: auto is functional
fixes #25 for #15
|
|
* hide theme-toggle and
* go-to-top button
when js is disabled
|
|
* thanks to https://feathericons.com for svgs
* can be disabled in site config
Params:
disableThemeToggle : true
|
|
|
|
created by hugo's {{ }}
|
|
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
|
|
usage: add to config
params:
defaultTheme: "auto"
|