summaryrefslogtreecommitdiff
path: root/layouts
AgeCommit message (Collapse)Author
2021-01-13Do not smooth scrollIntoViewAditya Telange
if user has it preferred https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
2021-01-11go-top-top button cleanupAditya Telange
2021-01-06fix wrong asset links on multihost config (#126)Roman Ispaev
CORS issue for multidomain setup (#168)
2021-01-02single: Add post description (#165)Weichen Liu
usage => in post params add : description: "Desc Text."
2020-12-31social-icons: add reddit icon #163Aditya Telange
credits for svg: https://iconmonstr.com/reddit-1-svg/ LICENSE: https://iconmonstr.com/license/
2020-12-31social-icons: add nuget icon & refactor code #163Aditya Telange
credits for svg: https://commons.wikimedia.org/wiki/File:NuGet_project_logo.svg This file is licensed under the Creative Commons Attribution 2.0 Generic license.
2020-12-29fotter: fix Links do not have a discernible name for go-to-top btnAditya Telange
2020-12-29cover: granular controls for hiding cover image #156Aditya Telange
in site config => params: cover: hidden: true # hide everywhere but not in structured data hiddenInList: true # hide on list pages and home hiddenInSingle: true # hide on single page per-page in front-matter => hidden: true # only hide on current single page
2020-12-29footer: allow disabling HLJS #143Aditya Telange
usage => in site config => params: assets: disableHLJS: true per-page in front-matter => disableHLJS: true
2020-12-27head: rm invalid rel="preload" on search assetsAditya Telange
2020-12-27baseof: pass .LayoutAditya Telange
for https://github.com/adityatelange/hugo-PaperMod/blob/0f994eee95811f5cf6099fb5897dd62be1e6cff2/layouts/partials/footer.html#L21
2020-12-24footer: change scroll behaviour as it was before 80954deAditya Telange
fixes #151 anchored-headings: retain anchor link '#' in URL cc #108 footer: remove '#' with go-to-top Revert "anchored-headings: retain anchor link '#' in URL" This reverts commit 80954de8bd085a3d5876e86c878088f911307c52. Revert "footer: rm unused code" This reverts commit c76233b350fde926c557e49b1a5f0bab8edddc55.
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-18head: trim whitespace from canonicalURLAditya Telange
- amend to 14c5245
2020-12-18Search: Keyboard Bindings for easier navigation (#138)Aditya Telange
* set up basic actions on keypress * add actions to perform conditionally * add simple highlight animation * prevent mouseclick to change active element * clear input box on Escape * click on Arrow Right * clear results and focus search-input on esc * refactor
2020-12-16templates: Fix series detection in opengraphMaciej Sawicki
When inside front matter you specified series with spaces, then the opengraph template wouldn't detect other articles, because in `.Site.Taxonomies.series` they are stored by urlized key. Example: ```yaml series: - My Series ``` ```gohtml {{/* in a template */}} {{- $series := index .Site.Taxonomies.series$name }} {{/* was resolved to */}} {{- $series := index {'my-series': ...} "MySeries" }} ``` (cherry picked from commit d2d493ab5d6a054001a8448ea0de2949dac4b30e)
2020-12-15head: Fix user defining canonical URL resulting in multiple canonical URLs ↵Cody Brownstein
(#133) * Revert "head: add support for Canonical URLs" This reverts commit 8af7c551ffb45e31d545373f88c78b38f660cf8d. * Allow user to specify single canonical URL
2020-12-15search: introduce loading custom fusejs options from site config #134Aditya Telange
* refer https://fusejs.io/api/options.html for opts * keys used can be some, all or none from ["title", "permalink", "summary", "content"] in config.yml, add fuseOpts as shown below => params: fuseOpts: isCaseSensitive: false shouldSort: true location: 0 distance: 1000 threshold: 0.4 minMatchCharLength: 0 keys: ["title", "permalink", "summary", "content"]
2020-12-15shortcodes: figure: don't use h4 tag in figure captions (#127)Kian Kasad
* avoiding h4 tags in figcaption elements * picked from https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/figure.html * figure.html is licensed under Apache License 2.0 and is part of https://github.com/gohugoio/hugo
2020-12-13header: rm class attributes [WIP]Aditya Telange
from hugov0.79.0
2020-12-13layouts: use hugo.IsProductionAditya Telange
2020-12-13header: add title attribute to menusAditya Telange
2020-12-13Remove whitespace around urls wherever applicableAditya Telange
- corrects mistyped urls with leading or trailing whitespaces
2020-12-13head: add support for Canonical URLsAditya Telange
cc: #104 usage => in site config.yml (used for home page only) => canonical: ["https://www.example.com" , "https://blog.example.com"] in per-page vars => canonical: ["https://www.example.com/page1" , "https://blog.example.com/pages/page1"]
2020-12-11language-switch: humanize only Lang codeAditya Telange
- displays weird text :/ - amend to ad11fe1
2020-12-11head: add *.css under assets/css/extended/Aditya Telange
to bundle it with stylesheet.css as single resource minified - added to the end so that default vars are overriden properly
2020-12-11single: add support for custom taxonomy URLs (#125)Kian Kasad
* fix URLs of tags in tag lists * use recommended code by hugo for tag list generator * https://gohugo.io/templates/taxonomy-templates/#example-list-tags-in-a-single-page-template * closes: #113
2020-12-11header: fix trailing slash '/' in menu URLAditya Telange
closes #122
2020-12-08social-icons: add svg for kakaotalk (#115)pacientes
credits for svg: https://www.flaticon.com/free-icon/kakao-talk_2111683 Flaticon License: Free for personal and commercial purpose with attribution. Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-12-08footer: hljs: add check to not load hljs on archive and searchAditya Telange
2020-12-07head: commonize stylesheet resourceAditya Telange
2020-12-06footer: go-to-top: fix Uncrawlable LinkAditya Telange
rm redundant a tag
2020-12-06search: init Search feature (#105)Aditya Telange
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993 * modified working for PaperMod * fetches current lang index.json for search * add fuse.js v6.4.3 LICENSE: Apache License 2.0 * bundled fastsearch and fusejs as search.js Co-authored-by: Craig Mod <stuff@craigmod.com>
2020-12-05footer: rm unused codeAditya Telange
CC: #108 #64
2020-12-05anchored-headings: retain anchor link '#' in URLAditya Telange
close: #108
2020-12-05list: use absURL for pagination (#109)Devorange
2020-12-01head, footer: add option to disable fingerprinting #89Aditya Telange
in site config => params: assets: disableFingerprinting: true
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-30social-icons: add kofi icon #29Aditya Telange
* thanks to https://iconify.design/icon-sets/simple-icons/kofi.html and Simple Icons Collaborators * License CC0 1.0 * edited to fit dual-tone theme
2020-11-29cover: responsive cover: rm forced q100Aditya Telange
- lets quality attribute in imaging section - https://gohugo.io/content-management/image-processing/#image-processing-config close #92
2020-11-29Archive: Close the <sup> tag for month counts (#93)Misha Brukman
2020-11-28language-switch: rm humanize on 'displayFullLangName'Aditya Telange
- displays weird text :/
2020-11-28baseof: rm unused classesAditya Telange
single, home
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-23social-icons: add svg for keybase (#79)Niek Blankers
From https://github.com/keybase/keybase-issues/issues/973#issuecomment-307547386 SVG reduced to 2.5kB Co-authored-by: dabura667 <matsuringo667@gmail.com>
2020-11-23head: change title separator "-" -> "|"Aditya Telange
2020-11-22social-icons: Trim whitespace and Lowercase nameAditya Telange
- allows name like shown below socialIcons: - name: "TWitteR" url: "https://twitter.com" - name: "Codepen" url: "https://codepen.com"
2020-11-22social-icons: add svg for Mastodon (#82)Mikhail Zolotukhin
from: https://joinmastodon.org/press-kit.zip LICENSE: AGPLv3 close #81