summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
AgeCommit message (Collapse)Author
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
2020-10-16nav-label: initAditya Telange
* 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
2020-10-05theme: set proper conditionsAditya Telange
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
2020-10-05noscript: add noscript tagsAditya Telange
* hide theme-toggle and * go-to-top button when js is disabled
2020-10-04theme-switch-button: init feature (#15)Aditya Telange
* thanks to https://feathericons.com for svgs * can be disabled in site config Params: disableThemeToggle : true
2020-10-04header: rm unnecessary logo linkAditya Telange
2020-09-23(lint) remove unnecessary whitespaceAditya Telange
created by hugo's {{ }}
2020-09-20menu : add menu location indicatorAditya Telange
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
2020-09-17automatic theme based on browser themeAditya Telange
usage: add to config params: defaultTheme: "auto"
2020-09-06automatic-theme : removeAditya Telange
2020-08-25support Multilingual navigationAditya Telange
add reading time as i18n
2020-08-21menu : save menu scroll position in localstorageAditya Telange
(ux improve)
2020-07-26rm redundant codeAditya Telange
2020-07-21baseof: separate into header, footerAditya Telange