summaryrefslogtreecommitdiff
path: root/layouts
AgeCommit message (Collapse)Author
2020-11-18cover: add rel="noopener noreferrer"Aditya Telange
to links
2020-11-18social-icons: add svg for discordAditya Telange
- from https://discord.com/branding close #76
2020-11-17head: rm site.webmanifest, not a PWAAditya Telange
2020-11-17footer: simpify loading hljs,Aditya Telange
defer and beautify
2020-11-17footer: fix scroll for non ASCII anchorsAditya Telange
closes #78
2020-11-14head: add meta robotsAditya Telange
- disable indexing for non-prod sites
2020-11-14head: add google_news internal template from hugoAditya Telange
2020-11-12head: add alternate pagesAditya Telange
to indicate multiple language/locale versions for multilungual sites
2020-11-10anchored-headings: port to PaperModAditya Telange
- add corresponding css - gen anchored headings for h1-h6 - link with single.html
2020-11-10anchored-headings: init partialJake Wiesler
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-11-09profile-mode: user set-able image sizeAditya Telange
- default 150 usage: profileMode: imageUrl: "/android-chrome-192x192.png" imageWidth: 120 imageHeight: 120
2020-11-09head: load stylesheet resources with a wildcardAditya Telange
- include profile-mode (cannot be done before f9fbdc9963c37b8ee46196de3349d6769839da4d) - reduce request count from 2 to 1 improves perf :P https://web.dev/resource-summary/
2020-11-08language-switch: enable emojifyAditya Telange
- languageName: ":country_emoji:" can now be displayed as emoji
2020-11-08layouts/single: fix Lang Name hidden when LanguageNameAditya Telange
was unset
2020-11-08layouts: add robots.txtAditya Telange
used when enableRobotsTXT: true https://gohugo.io/templates/robots/
2020-11-06toc: add aria-label for accessibility reasonsAditya Telange
- fix: Links do not have a discernible name
2020-11-05head: improve favicons presenceAditya Telange
- also set theme color to #2e2e33 - use syntax from https://favicon.io - `site.webmanifest` added, should be present in "static" Custom links to favicons can be added in site config => params: assets: favicon: "<link / abs url>" favicon16x16: "<link / abs url>" favicon32x32: "<link / abs url>" apple_touch_icon: "<link / abs url>" safari_pinned_tab: "<link / abs url>"
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-30footer: Fix broken anchor link scrolling (#64)Nick Spreitzer
fixes: Footnotes anchor link hrefs such as `#fn:1` fixes: ToC anchors failing with hrefs having numbers. based-on: https://stackoverflow.com/a/51396346/300212
2020-10-30footer: remove hidden chars (#63)Dan van Wijk
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
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-30baseof: use `dir` attribute instead of classAditya Telange
and set default dir to `auto` main(css): rm unused class
2020-10-26header: add Language switch (#54)Aditya Telange
* language-switch: init * header: move logo-switches together
2020-10-25share-icons: add #hashtag generation from tagsAditya Telange
for twitter share
2020-10-25json-schema:fix multiple authors in config displayed incorrectlyAditya Telange
* is of type `[]interface {}` and not `[]string`
2020-10-25author(partial): fix multiple authors in config displayed incorrectlyAditya Telange
* is of type `[]interface {}` and not `[]string`
2020-10-25json-schema: add support for multiple authorsAditya Telange
2020-10-25layouts: use author partial in head and post_metaAditya Telange
2020-10-25author(partial): init, with support for multiple authorsAditya Telange
* usage: author: ["me", "you"]
2020-10-25post-meta: fix redundant '·'(separator) in endAditya Telange
when author is not present
2020-10-23social-icons: fix duplicate rel tagsAditya Telange
2020-10-23cover: responsive cover: generate responsive images only in "production" envAditya Telange
- will reduce render time in development env
2020-10-23social-icons: add rel=meAditya Telange
* rel=me links allow cross-linking of user's identities, improving SEO
2020-10-22post-meta: improvementsAditya Telange
- hide zero date (closes #33) - fix separator - refactor
2020-10-22layouts: post_meta as partialAditya Telange
2020-10-22relative-cover: init Responsive cover images (#43)Niek Blankers
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> - generates images of different sizes - browser can choose between set of images w.r.t viewport width - is enabled by default - supported image formats : https://gohugo.io/content-management/image-processing/#target-format - Customizing site config params: params: cover: responsiveImages: false # if want to disable it linkFullImages: true # if link original image on clicking cover
2020-10-19social-icons: add svg for mediumAditya Telange
* icon belong to medium[.]com * converted to svg with online-convert[.]com
2020-10-19Add RTL support for multilingual mode (#47)Mehdy Khoshnoody
Usage: in site config: languages: ar: languagedirection: rtl title: مدونتي weight: 2 * ref: https://gohugo.io/content-management/multilingual/#configure-languages
2020-10-18extended_footer: initAditya Telange
* add placeholder template for extending footer closes #37
2020-10-18extended_head: init (#44)Northerner-coder
* add placeholder template for extending head
2020-10-17head: update description and keywords logicAditya Telange
2020-10-17home-info, profile-mode: enable markdownify for text elementsAditya Telange
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-16layouts: Add DateFormat parameter (#39)Northerner-coder
* User can change Date Format to be displayed in Front Matter * Formats supported by Hugo can be found here: https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference
2020-10-15json-schema: add support for Rich Results: Json schema for structured data (#36)Aditya Telange
* json-schema: init * sameAs can be set through .Site.Params.schema.sameAs * if it is not specified but social-icons exsists, we use social-icons for sameAs vars * .Site.Params.schema.sameAs overrides social-icons * publisherType can be changed via .Site.Params.schema.publisherType
2020-10-13list: show nested sectionsAditya Telange
* shows links to section if _index.md is present * by this sub-sections can be distinguished properly * more about this and way to implement: https://gohugo.io/content-management/organization/#index-pages-_indexmd
2020-10-12templates: social-meta: prefer cover image over other imagesAditya Telange