Commit Graph

236 Commits

Author SHA1 Message Date
Nikolay Raspopov
4d936a55d8
Fixed ineffective "disableHugoGeneratorInject" parameter (#337)
Fixed issue #336. HUGO does not use `{{ hugo.Generator }}` placeholder anymore.
2021-05-06 09:33:18 +02:00
Alex Shpak
6720168dd5 #281, Copy code block content on click 2021-05-03 23:52:00 +02:00
Alex Shpak
f4a26ff3da Imporove sectiopn shortcode example 2021-05-03 22:59:33 +02:00
Alex Shpak
9e9c7d3403 Improve posts title rendering 2021-05-03 22:05:25 +02:00
Alex Shpak
c197f3399b #286, Add ability to set image for posts 2021-05-03 21:47:19 +02:00
Pim Snel
e0823c2138
collapsed menu right arrow, uncollapsed down arrow (#332) 2021-05-03 21:18:49 +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
Nikolay Raspopov
27c1791144
Let's enable markdown in the button title (#308)
Added " | markdownify" to the inner text of button.
2021-02-19 11:55:53 +01:00
Nikolay Raspopov
cb57401039
Added default dir="ltr" (#307)
Added default (i.e. "ltr") value of "dir" attribute of "html" and "body" tags instead of empty.
2021-02-03 09:42:32 +01:00
Alex Shpak
d9fe59a6e9 Refactor aside menus, add extra wrapper 2021-01-26 22:20:30 +01:00
Tiger Oakes
012ccee53d
Add before and after partials for toc (#296)
Closes #257
2021-01-26 18:45:08 +01:00
Alex Ivanov
c828c6660f
Add OnlyTranslated property (#303)
* 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>
2021-01-21 11:42:26 +01:00
Shohei Ueda
a486adf846
Add hugo.Generator (#290)
https://gohugo.io/functions/hugo
2020-11-14 21:40:16 +01:00
Alex Shpak
5cc3d6719c #231, Allow open collapsed menu without changing page 2020-09-14 22:45:58 +02:00
Alex Shpak
8f64ee74aa #204, Add mermaid config customization, upgrade mermaidjs 2020-08-16 18:57:43 +02:00
Alex Shpak
bf93dafdfa Improve accessibility and keyboard navigation 2020-07-07 23:06:21 +02:00
Alex Shpak
b8b7184e89 Add section shortcode, to render children 2020-05-31 00:18:25 +02:00
Alex Shpak
aa7c486e76 Add anchors to headings 2020-05-30 23:22:51 +02:00
Vincent Vialard
1608ade3f4
- hide ToC icon in header if ToC not enabled (#225) 2020-05-25 22:40:54 +02:00
Alex Shpak
65484b0f4c #215, Fix menu translateX for RTL (negative X) 2020-05-18 23:58:21 +02:00
Alex Shpak
92600f77fe #215, Add support for languageDirection param 2020-05-17 13:10:50 +02:00
Alex Shpak
e2ffa7b3ad Add manifest 2020-05-01 17:35:08 +02:00
Alex Shpak
2b430b0b41 #212, Fix use of IsAncestor after hugo breaking change 2020-04-28 22:00:24 +02:00
Alex Shpak
5be250b0e2 #207, Fix whitespaces again, in shortcodes inside shortcodes 2020-04-24 10:29:23 +02:00
Alex Shpak
66968582ef #205, Add details shortcode 2020-04-21 22:30:00 +02:00
tyler71
b88d5f6b12
Edit this page content dir lang independent (#202)
#200
2020-04-16 17:40:17 +02:00
Alex Shpak
0f58a77354 404 Page redesign 2020-04-15 23:24:51 +02:00
Alex Shpak
94c8230e1e #197, Use RelPermalink to identify nested pages in collapsed menu 2020-04-14 22:56:31 +02:00
Alex Shpak
9719692512 Introduce serviceWorker, disabled by default 2020-04-12 20:50:03 +02:00
Alex Shpak
e4e43bd9b1 Refactor KaTeX shortcode, remove whitespaces and fix font size 2020-04-11 20:05:43 +02:00
Alex Shpak
15339ab6a6 #157, Refactor side menu, simpler and renders all pages at root 2020-04-11 14:35:29 +02:00
Alex Shpak
8927a3c672 #162, Add docs/date partial, for date customization 2020-04-10 20:24:36 +02:00
Alex Shpak
1eeabcad67 #187, Use .Permalink for lang switch, align icons 2020-04-03 17:42:48 +02:00
Alex Shpak
6e146b1bf1 #188, Add hreflang metadata to html head 2020-04-02 22:47:36 +02:00
Alex Shpak
b91e9eaea7 #186, Make title generation cross-platform 2020-03-31 23:29:21 +02:00
Alex Shpak
a9867292af Fix current page highlight in new Hugo version 2020-03-30 18:00:15 +02:00
Alex Shpak
831e570f16 Fix mermaid scaling for flowchart 2020-03-30 17:59:29 +02:00
Alex Shpak
976f619b2f Update mermaid to 8.4.8, move KaTeX to static folder 2020-03-23 20:40:53 +01:00
Alex Shpak
bccdeca767 Remove unintended whitespaces from markdown links 2020-03-22 19:09:09 +01:00
Alex Shpak
a3059fe4f7 #140, Use new GetTerms function to fix tag titles 2020-03-19 22:00:45 +01:00
Alex Shpak
0d1ba29999 #177, #176 Simplify description in html head 2020-03-13 18:15:51 +01:00
undergroundwires
13ef4c1efc
prioritize more related parameters for description #176 (#177) 2020-03-13 18:14:22 +01:00
undergroundwires
d7def135c9
added go home url #172 (#178)
* added go home url #172
* wrapped in a div #172
* removed h2 #172
* fixed indenting #172
2020-03-13 18:13:36 +01:00
Alex Shpak
5296ba3d38 Clean trailing whitespaces 2020-03-07 18:51:24 +01:00
Alex Shpak
289a3f456e Add portable links, requires hugo 0.62 2020-03-07 18:47:16 +01:00
Alex Shpak
7df4251b72 #169, Remove whitespaces around content in tabs, just to be safe. 2020-03-07 13:37:40 +01:00
Alex Shpak
050d5a83de #161, Move inject/footer template into footer, before comments 2020-03-01 00:52:00 +01:00
Alex Shpak
9c8663eb34 #155, Do not show collapse indicator in non-section pages 2020-03-01 00:49:34 +01:00
Alex Shpak
4ee099e8cf #157, Make docs template default for all pages 2020-02-29 21:24:00 +01:00
Alex Shpak
6ecc94ed2b #155, Add expand indicator in collapsed section 2020-02-29 21:15:52 +01:00
Alex Shpak
a722f74fba #154, Add menu overlay over content to hide menu on click 2020-02-27 22:58:15 +01:00
Alex Shpak
08519158f4 #153, Remove extra spaces in generated tabs html 2020-02-25 21:16:49 +01:00
Alex Shpak
5d7f257e30 #150, Add content-before and content-after inject partials 2020-02-23 13:29:58 +01:00
Alex Shpak
5cba28f865 Simplify post meta template 2020-02-23 13:26:51 +01:00
Alex Shpak
8369d9a3a7 #150, Add support for menu nesting (before, after menus) 2020-02-22 19:30:46 +01:00
Alex Shpak
2088c9a0cb Add support for hugo menus 2020-02-12 22:12:41 +01:00
Alex Shpak
a23d848db2 #141, Add page counters to taxonomy side menu 2020-02-10 22:24:36 +01:00
Alex Shpak
a33bb33f18 Make translations list respect weight of languages 2020-02-10 22:05:26 +01:00
Alex Shpak
e1d55f2b15 Improve lang switch accesibility 2020-02-10 18:39:07 +01:00
Alex Shpak
c0bd5b5bb8 #90, Move inline scripts to file in assets to allow overwrite 2020-02-04 22:24:36 +01:00
Alex Shpak
83f6c3d475 Disable space as search focus key 2020-01-24 00:39:47 +01:00
Alex Shpak
ba5d38ad44 Rework of main template, adds options for more fine customisation 2020-01-24 00:07:56 +01:00
Daniel Forssten
7e2af86777 #134, Focus search field by pressing s or / (#135)
* #134, Focus search field by pressing s or /
* #134, Refactoring away an array loop using indexOf
2020-01-19 21:57:53 +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
9888c52dbf #132, add urlize to taxonomy templates 2020-01-17 21:31:36 +01:00
Shane Liesegang
bce8940c62 Removing flex from <main> for sake of print layout (#129)
* Removing flex from <main> for sake of print layout
* trimming excess whitespace
2020-01-17 20:32:36 +01:00
Alex Shpak
db73f20cb5 #130, Fix post metadata links regression, add RelPermalink 2020-01-16 09:58:53 +01:00
Alex Shpak
68f096fa4c Remove use of Scratch in search configuration 2020-01-13 19:42:16 +01:00
Alex Shpak
9fa444757a #117, Update KaTeX shortcode, add displayMode param 2020-01-13 19:05:54 +01:00
Alex Shpak
b9f45270a0 #122, Fix post taxonomy list links (include base url) 2020-01-13 18:06:09 +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
tyler71
e037b7c70f mobile toc menu (#121)
* Implement TOC for mobile
* Uses Page title as label
* Label entries so that tapping TOC will hide menu
* Switch to medium breakpoint
* Correct tos -> toc
* toc-menu-control -> toc-control
2020-01-13 17:44:24 +01:00
Alex Shpak
d6290dcf50 #66, add taxonomy support 2019-12-19 17:22:12 +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
c4232b6e28 #113, Hide date from posts if not specified 2019-12-14 13:31:11 +01:00
Alex Shpak
e01674c287 Move baseof to _default folder, making it default view of site 2019-12-09 11:24:31 +01:00
Alex Shpak
d934e0b12a Make icons white in dark mode 2019-12-09 11:24:31 +01:00
Alex Shpak
5af2b92f00 #106, Upgrade to hugo 0.60 2019-12-01 14:54:47 +01:00
Alex Shpak
20c3faae4d Improve accessibility score 2019-11-16 22:00:50 +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
aaf236410e Update README.md 2019-11-16 20:35:23 +01:00
Alex Shpak
13584878c2 Polish multilang mode, update docs 2019-11-16 20:35:23 +01:00
Alex Shpak
7b52bf4232 #87, Add support for multilang search index generation 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
Alex Ivanov
9cd378a2d2 Multilang (#93)
* Add i18n langs trans example
* partials
* Update sample site
* cc of variables of config
* Clean PR
* revert master data
2019-11-16 20:34:46 +01:00
Alex Shpak
4596f08e32 Rename ToC level styles, reorganize example content 2019-10-23 21:31:58 +02:00
Alex Shpak
e2188136e1 #51, Add experimental bookCollapseSection page param to hide nested sections 2019-10-09 01:00:40 +02:00
Alex Shpak
1db63cef5c Fix valign for git footer icons 2019-10-08 23:25:33 +02:00
Alex Shpak
00988ceee1 Remove BookMenuBundleActiveLinkColor parameter 2019-10-08 23:17:30 +02:00
Alex Shpak
007bc10c07 Introduce SCSS plugins: dark mode and numbered headings 2019-10-08 17:03:49 +02:00
Alex Shpak
1f8d34168f #77, Introduce hint shortcode 2019-10-03 18:15:24 +02:00
Alex Shpak
77255304f3 #74, Remove readonly flag from search field 2019-10-03 14:18:34 +02:00
Alex Shpak
22ff783d86 #86, Add google analytics to readme, move GA and enable Open Graph in head 2019-10-03 14:10:03 +02:00
Alex Shpak
5d6873e992 #73, Enable TOC and git footer for posts 2019-09-22 13:15:22 +02:00
Alex Shpak
ae3c5017c4 Small adjustments for logo span and css 2019-09-05 23:01:40 +02:00
Paul Twohey
73e53768c9 always have <span> for title text and move spacing to logo 2019-09-05 22:22:14 +02:00
Paul Twohey
d94b4196ba support relative URLs for brand logos 2019-09-05 22:22:14 +02:00