summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
AgeCommit message (Collapse)Author
2022-09-09fix header logo width inconsistancyReorx
2022-09-07menu link is active for being the prefix of current urlReorx
2022-06-01ensure the toggle theme click event listener is only added onceReorx
2022-06-01refactor toggleThemeCallbacksReorx
- use object instead of array to ensure uniqueness for each callback - do not use <script data-no-instant> to add callback, they won't be called if the page is not loaded first time; instead, try to set the callback each time the page is loaded
2022-05-29ensure menu item url has / suffixReorx
2022-05-28instantclick: support updating head tagsReorx
only for meta and link (not stylesheet) tags
2022-05-27refactor theme toggle; add delegate-itReorx
2022-05-08rename some image variables; rss default show contentReorx
2022-05-05fix logo urlReorx
2022-05-05just replace absLangURL with absURL, stop using DisableLanguageSwitchReorx
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
2022-05-05DisableLanguageSwitch affects logo linkReorx
2022-05-05add DisableLanguageSwitchReorx
2022-04-14handle external menu itemReorx
2022-04-13tune link styles, add color to menu, content, footer linksReorx
2022-04-12blacklist /search from instantclickReorx
2022-03-27Remove redundant code for Label.logo: resize imageAditya Telange
amend to 1de55c4
2022-03-27Label.logo: Generate a resize imageAditya Telange
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`.
2022-03-27Use `site` function instead of `.Site` or `$.Site`Aditya Telange
- The site function provides global access to the same data as the .Site page method. - Current context (`.`) is never considered.
2022-03-25Removing unit from `img`'s height attribute for label.iconAditya Telange
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-height
2022-01-13Add `absURL` to `label.icon` and `profileMode.imageUrl`Aditya Telange
fixes: #622 #623
2021-09-11Move `noscript` elements to headAditya Telange
- Should fix search engines picking up elements inside noscript
2021-06-11Add `pre` and `post` menu paramsAditya Telange
so that icons can be added via external scripts (ex. fontawesome) fixes: #420 ref: https://gohugo.io/content-management/menus/#params
2021-05-01Use `title` instead of `humanize`Aditya Telange
- https://gohugo.io/functions/title/
2021-04-29Improve scripts for menu-scrollAditya Telange
- also fixes menu-scroll-position not working in search page
2021-04-17Add custom alt title in Multilingual Mode + Add fallback based on ↵Geeqla
LanguageName with emojify (#364)
2021-03-30Fix Spacing in overall repoAditya Telange
2021-03-27Fix logo not being displayed with no title pagesAditya Telange
- use a local var to get label text ot site title fixes: #281
2021-03-25Refactor noscript styles to not break with code formatterAditya Telange
2021-03-22Fix scrollbar track background in dark mode caused by #308 (#313)Kian Kasad
2021-03-19Use CSS inside noscript when JS is disabled to detect preferred color theme ↵Kian Kasad
(#308) - Makes auto theme work when JS is disabled - Only applies if the 'theme' configuration parameter is set to 'auto' or is unset.
2021-02-12fix theme-toggle shown when js is disabledAditya Telange
2021-02-12change theme-switch from 'a' to 'button'Aditya Telange
and refactor
2021-01-31Improve headerAditya Telange
- fix header height 61px->60px - check for elements before displaying - align theme-toggle - rm unnecessary elements - rm theme-toggle class - rm menu class
2020-12-18header: use .KeyName for accesskey searchAditya Telange
in menu - .Name doesn't work with emojis - .URL doesn't work with url such as 'search/'
2020-12-18header: add accesskey (Alt + /) for searchAditya Telange
in menu - Alt + /: jumps to search page if in menu
2020-12-18Link AccessKeys shortcut in title of elementsAditya Telange
2020-12-13header: rm class attributes [WIP]Aditya Telange
from hugov0.79.0
2020-12-13header: add title attribute to menusAditya Telange
2020-12-11language-switch: humanize only Lang codeAditya Telange
- displays weird text :/ - amend to ad11fe1
2020-12-11header: fix trailing slash '/' in menu URLAditya Telange
closes #122
2020-12-01header: improve menu location indicatorAditya Telange
- fix non-highlight on subdirs - menu url need not have leading or trailing slashes - fix non-highlight with multilingual config
2020-11-28language-switch: rm humanize on 'displayFullLangName'Aditya Telange
- displays weird text :/
2020-11-26theme-switch: Improve theme switch logic (#86)Aditya Telange
- 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
2020-11-08language-switch: enable emojifyAditya Telange
- languageName: ":country_emoji:" can now be displayed as emoji
2020-11-04theme-switch: Enable theme toggle unless specifically disabled (#69)Itay Cohen
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-11-03Revert "theme-switch-button: improve logic"Aditya Telange
This reverts commit 0eed773e6dcf999cb052b6f781bfbe7ad74e63c7.
2020-11-03theme-switch-button: improve logicAditya Telange
- 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
2020-10-30Add accesskeys (attribute specifies a shortcut key to activate/focus an ↵Aditya Telange
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
2020-10-26header: add Language switch (#54)Aditya Telange
* language-switch: init * header: move logo-switches together
2020-10-17nav-label: accessibilityAditya Telange