hugo-book/layouts/partials/docs
Caleb Jasik 9791db1ce7
Bug Fix: Empty .Site.Params.contentDir (#312)
* 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-22 19:48:49 +01:00
..
inject Add before and after partials for toc (#296) 2021-01-26 18:45:08 +01:00
brand.html Rework of main template, adds options for more fine customisation 2020-01-24 00:07:56 +01:00
comments.html #133, move disqus to separate template to allow override, rename BookDisqus to BookComments 2020-01-17 21:44:25 +01:00
date.html #162, Add docs/date partial, for date customization 2020-04-10 20:24:36 +02:00
footer.html Bug Fix: Empty .Site.Params.contentDir (#312) 2021-02-22 19:48:49 +01:00
header.html - hide ToC icon in header if ToC not enabled (#225) 2020-05-25 22:40:54 +02:00
html-head.html Add manifest 2020-05-01 17:35:08 +02:00
languages.html Add OnlyTranslated property (#303) 2021-01-21 11:42:26 +01:00
menu-bundle.html Remove BookMenuBundleActiveLinkColor parameter 2019-10-08 23:17:30 +02:00
menu-filetree.html #231, Allow open collapsed menu without changing page 2020-09-14 22:45:58 +02:00
menu-hugo.html #150, Add support for menu nesting (before, after menus) 2020-02-22 19:30:46 +01:00
menu.html Add support for hugo menus 2020-02-12 22:12:41 +01:00
post-meta.html #162, Add docs/date partial, for date customization 2020-04-10 20:24:36 +02:00
search.html #215, Fix menu translateX for RTL (negative X) 2020-05-18 23:58:21 +02:00
taxonomy.html #141, Add page counters to taxonomy side menu 2020-02-10 22:24:36 +01:00
title.html #186, Make title generation cross-platform 2020-03-31 23:29:21 +02:00
toc.html Refactor aside menus, add extra wrapper 2021-01-26 22:20:30 +01:00