summaryrefslogtreecommitdiff
path: root/layouts
AgeCommit message (Collapse)AuthorFilesLines
2022-12-10Add conversion notice to footertweaksAdmin1-0/+4
2022-12-03Add footer with text detailsAdmin1-0/+11
2022-11-02#441, add menu.params.class supportAlex Shpak1-1/+1
2022-10-05(MAINT) Respect LinkTitle in page metadata (#483)Mikey Lombardi (He/Him)1-1/+3
Prior to this commit, the partial for determining a page title used the `Title` property of a page, if present, or humanized and titleized the file name if not. It did not use the `LinkTitle` property at all (defined in the [front matter][01]). According to the [menu documentation][02]: > The following order is used to determine an Identifier: > > `.Name > .LinkTitle > .Title` > > This means that `.Title` will be used unless `.LinkTitle is present, > etc. Similar, the documentation for [menu entry variables][03] states: > The `name` key, if set for the menu entry, sets this value. If that > key is not set, and if the menu entry is set in a page front-matter, > this value defaults to the page's `.LinkTitle`. Together, these imply that if `.LinkTitle` is specified, it should be preferred over `.Title` for the generated nav menu. [01]: https://gohugo.io/content-management/front-matter/ [02]: https://gohugo.io/content-management/menus/#nesting [03]: https://gohugo.io/variables/menus/#menu-entry-variables
2022-04-26#440L Adjust bookHref, check .Content again, add redirectAlex Shpak2-6/+10
2022-04-26Add BookHref, set explicit URL for the menu (#440)Horea Christian1-1/+5
2022-02-18Make menu entries' link relative (#421)Giuseppe Masino1-2/+2
This change allows hugo to build pages correcly when `canonifyURLs = false` and `relativeURLs = true`. Otherwise the links on the menu will be canonicalized regardless of configuration. This results in broken sites in a number of situations, such as sites served behind a reverse-proxy that don't want to account for the prefix they're served under.
2022-01-13#408, #410: Use LanguageCode in templates if specifiedAlex Shpak2-3/+3
2021-10-19#369, switch to google_analytics.html internal templateAlex Shpak1-1/+1
2021-10-19Removed extra Google Analitics include (#389)Nikolay Raspopov1-1/+0
It's already included via "docs/html-head" partial.
2021-09-27Allow site title to be customised via parital (#384)Jack Morgan2-1/+2
* Allow site title to be customised via parital * Modify readme to highlight available partials * Rename template for consistency * Move title tags to head partial
2021-09-26add color-scheme to head-html (#387)xhdix1-0/+1
2021-08-30#370: Allow markdown in details shortcode, also change markdownify to โ†ตAlex Shpak4-5/+6
RenderString in other shortcodes
2021-08-18#343, #165: Move lang selector to left menuAlex Shpak4-22/+25
2021-07-20issues 362 (#364)้€Š็‹ผ1-3/+3
* ๐Ÿž fix issues 352 Solve this problem๏ผš https://github.com/alex-shpak/hugo-book/issues/352 The Reason: https://github.com/gohugoio/hugo/issues/8688 * fix issues 362 https://github.com/alex-shpak/hugo-book/issues/362 * Revert "๐Ÿž fix issues 352" This reverts commit 58f8935d1e2348d7c9aa03ca2fac8049f486ad3d. * Revert "Revert "๐Ÿž fix issues 352"" This reverts commit fa0d46ccf56f435a628af17798d36616a5c23d86. * fix issues 362 * Update columns.html * Revert "Revert "Revert "๐Ÿž fix issues 352""" This reverts commit 79777a9e846334b6043048b156d972212802931c. Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
2021-05-21#285, skip integrity attribute if site is built without hostnameAlex Shpak1-3/+9
2021-05-21Add deprecation notice for menu bundleAlex Shpak1-0/+1
2021-05-20Prefer existing and translated variant of home page (#342)Nikolay Raspopov1-1/+1
* Prefer existing and translated variant of home page as the site link in the menu header. * More compact "cond"-version of fix.
2021-05-20Fix lighthouse remarks: icon sizes, noopenerAlex Shpak2-2/+2
2021-05-19Refactor search, prepare for pre-built indexingAlex Shpak1-9/+10
2021-05-06Fixed ineffective "disableHugoGeneratorInject" parameter (#337)Nikolay Raspopov1-4/+0
Fixed issue #336. HUGO does not use `{{ hugo.Generator }}` placeholder anymore.
2021-05-03#281, Copy code block content on clickAlex Shpak1-0/+5
2021-05-03Imporove sectiopn shortcode exampleAlex Shpak1-1/+1
2021-05-03Improve posts title renderingAlex Shpak4-6/+6
2021-05-03#286, Add ability to set image for postsAlex Shpak2-3/+11
2021-05-03collapsed menu right arrow, uncollapsed down arrow (#332)Pim Snel1-1/+0
2021-04-11Add custom commit path for last edited link (#319)Collin Brooks1-1/+2
- A new `BookCommitPath` paramter was added that allows the 'commit' portion of the link to a page's last edited commit hash to be specified. - This is useful when github is not the default repository for a project. Co-authored-by: Collin Brooks <cbrooks@sentryds.com>
2021-02-22Bug Fix: Empty .Site.Params.contentDir (#312)Caleb Jasik1-1/+1
* Bug Fix: Empty .Site.Params.contentDir When .Site.Params.contentDir is left as the default: "content", calling .Site.Params.contentDir returns nothing, or maybe an empty string. To fix this, we set a default value for .Site.Params.contentDir to "content" and the url is built correctly. * Use the `default` function instead of `or` https://gohugo.io/functions/default/
2021-02-19Let's enable markdown in the button title (#308)Nikolay Raspopov1-1/+1
Added " | markdownify" to the inner text of button.
2021-02-03Added default dir="ltr" (#307)Nikolay Raspopov1-2/+2
Added default (i.e. "ltr") value of "dir" attribute of "html" and "body" tags instead of empty.
2021-01-26Refactor aside menus, add extra wrapperAlex Shpak2-5/+7
2021-01-26Add before and after partials for toc (#296)Tiger Oakes3-1/+5
Closes #257
2021-01-21Add OnlyTranslated property (#303)Alex Ivanov1-2/+5
* Add OnlyTranslated property Signed-off-by: Alex Ivanov <ai@contributor.pw> * Add newlines Signed-off-by: Alex Ivanov <ai@contributor.pw> * rename property Signed-off-by: Alex Ivanov <ai@contributor.pw>
2020-11-14Add hugo.Generator (#290)Shohei Ueda1-0/+1
https://gohugo.io/functions/hugo
2020-09-14#231, Allow open collapsed menu without changing pageAlex Shpak1-10/+13
2020-08-16#204, Add mermaid config customization, upgrade mermaidjsAlex Shpak1-5/+3
2020-07-07Improve accessibility and keyboard navigationAlex Shpak2-6/+6
2020-05-31Add section shortcode, to render childrenAlex Shpak1-0/+10
2020-05-30Add anchors to headingsAlex Shpak2-1/+5
2020-05-25- hide ToC icon in header if ToC not enabled (#225)Vincent Vialard1-0/+2
2020-05-18#215, Fix menu translateX for RTL (negative X)Alex Shpak2-2/+2
2020-05-17#215, Add support for languageDirection paramAlex Shpak1-1/+1
2020-05-01Add manifestAlex Shpak2-1/+5
2020-04-28#212, Fix use of IsAncestor after hugo breaking changeAlex Shpak1-1/+1
2020-04-24#207, Fix whitespaces again, in shortcodes inside shortcodesAlex Shpak1-2/+2
2020-04-21#205, Add details shortcodeAlex Shpak2-0/+7
2020-04-16Edit this page content dir lang independent (#202)tyler711-1/+1
#200
2020-04-15404 Page redesignAlex Shpak1-4/+18
2020-04-14#197, Use RelPermalink to identify nested pages in collapsed menuAlex Shpak1-3/+4
2020-04-12Introduce serviceWorker, disabled by defaultAlex Shpak1-1/+6