Commit graph

18 commits

Author SHA1 Message Date
Alex Shpak
6720168dd5 #281, Copy code block content on click 2021-05-03 23:52:00 +02:00
Collin Brooks
ba38e17b1b
Add custom commit path for last edited link (#319)
- 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-04-11 17:50:54 +02:00
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
Alex Shpak
e2ffa7b3ad Add manifest 2020-05-01 17:35:08 +02:00
tyler71
b88d5f6b12
Edit this page content dir lang independent (#202)
#200
2020-04-16 17:40:17 +02:00
Alex Shpak
8927a3c672 #162, Add docs/date partial, for date customization 2020-04-10 20:24:36 +02:00
Alex Shpak
ba5d38ad44 Rework of main template, adds options for more fine customisation 2020-01-24 00:07:56 +01:00
Alex Shpak
4b641b0f9a #133, move disqus to separate template to allow override, rename BookDisqus to BookComments 2020-01-17 21:44:25 +01:00
Alex Shpak
ec53e2733f Update disqus support, add global site config BookDisqus 2020-01-13 17:55:34 +01:00
Dave Kerr
36a8cf5169 feat: added support for Disqus (#120)
* feat: added support for Disqus
* feat: allow disqus to be disabled through frontmatter

Set:
    bookDisableComments: true

On a page to disable disqus for the content.
2020-01-13 17:46:19 +01:00
Thomas M Porter II
f5a52e6ed1 replacing any backslashes with forward slashes for edit file url(#116)
Seems to be a Windows related thing. `.File.Path` returns a path with backslashes this adds a replace to make those forward slashes. This appears to fix #115
2019-12-17 23:24:15 +01:00
Alex Shpak
d934e0b12a Make icons white in dark mode 2019-12-09 11:24:31 +01:00
Alex Shpak
f1d4aeb69a Make GitInfo not required for 'edit this page' link 2019-11-16 21:49:48 +01:00
Alex Shpak
1addb8dca6 Refactor footer 2019-11-16 21:32:23 +01:00
Alex Shpak
13584878c2 Polish multilang mode, update docs 2019-11-16 20:35:23 +01:00
Alex Shpak
05c3b8fac9 Add language switch at bottom of page 2019-11-16 20:35:23 +01:00
Jordi Bares
629c4bb1d4 Various fixes responding to Alex notes 2019-04-09 22:31:24 +02:00
Jordi Bares
45271b5298 Add footer functionality 2019-04-09 22:31:24 +02:00