Commit graph

58 commits

Author SHA1 Message Date
Sören Weber
8c1a7304f9
theme: add a theme selector #178 2022-02-13 01:53:23 +01:00
Sören Weber
ede20225b4
mermaid: always load javascript to avoid break if code fences are used #142 2021-11-08 16:53:08 +01:00
Sören Weber
f3c067bf9b
mermaid: assert that window.mermaid is actually mermaid #136 2021-11-03 21:42:38 +01:00
Sören Weber
139c587757
mermaid: revert destroyed HTML structure #95 2021-11-03 20:50:35 +01:00
Sören Weber
3446aa4230
mermaid: only load javascript if necessary #95 2021-10-30 20:31:52 +02:00
Sören Weber
3224bfb1a3
theme: fix sticky header to remove horizontal scrollbar #82
HTML5 solution; sorry IE11
2021-09-23 21:25:45 +02:00
Sören Weber
b5e90f03dd
theme: ensure IE11 compatiblity #89 2021-09-13 21:09:44 +02:00
Sören Weber
65cb38aec3
theme: use <main> #88 2021-09-13 19:28:16 +02:00
Sören Weber
2fcaac5d0b
theme: fix usage of <section> #88 2021-09-13 19:28:16 +02:00
Sören Weber
aa54732f09
theme: wildspace
in partials and generated output
2021-09-12 00:40:03 +02:00
Sören Weber
06486bdc3c
search: disable search in hidden branches #76
1-1-1-1 was previously displayed in the search results
2021-09-03 22:21:22 +02:00
Sören Weber
2e364fdb2b
arrow-nav: fix broken links on (and below) hidden pages #61
complete rewrite of logic
2021-08-27 14:11:29 +02:00
Sören Weber
fc28f11f8b
arrow-nav: default sorting ignores ordersectionsby #63 2021-08-27 00:29:40 +02:00
Sören Weber
dff23d89b4
arrow-nav: wildspace 2021-08-26 23:45:21 +02:00
Sören Weber
d3f70bd846
menu: show hidden pages if accessed directly #60 2021-08-26 23:26:05 +02:00
Sören Weber
d04bbaad4e
theme: treat pages without title as hidden #59 2021-08-26 12:42:20 +02:00
Sören Weber
b29f1ce055
theme: adjust leading whitespace and superflous lines 2021-08-24 00:23:52 +02:00
Sören Weber
5c667b3d07
code highligher: switch to standard hugo highlighter #32
Since a while, Hugo has its own mechanism for code highlightning.

We remove the old highlightning code provided by the client-side javascript library highlight.js and all its related files.

This also solves issues introduced by Hugos own highlightning because in our theme we are currently highlighting the code twice leading to unpredictiable results.

This will also fix an issue were light code highlightning themes weren't displayed correctly because our styles are overwriting color information.

Another advantage is the huge list of supported languages which by far exceeds our current list.

On the downside, this is a breaking change because our current color theme isn't supported by Hugo.
2021-07-26 11:50:34 +02:00
Sören Weber
1b06d27608
pan and zoom for mermaid graphs #9 2021-07-02 23:01:38 +02:00
Sören Weber
8a53387a81
upgrade mermaid to 8.10.2 and relocate #7 2021-07-02 22:24:44 +02:00
Sören Weber
6b7779dac5
merge theme js scripts into one file and fix mermaid init #5 2021-07-02 21:58:16 +02:00
Sören Weber
3564d9ebfa
expose mermaid options in config.toml #4 2021-07-02 18:12:34 +02:00
Sören Weber
aad4bf26e1
Change mermaid initialization to support code fences #6 2021-07-02 17:38:58 +02:00
Sören Weber
b3429ed9a3
mermaid: config option for CDN url not used #12 2021-07-02 17:18:19 +02:00
Sören Weber
c108d677b4 Rebranding to new theme name
- Rename theme from "Learn" to "Relearn"
- also change URLs
- remove old references
- more removal of french and chinese
2021-06-30 14:56:06 +02:00
mirisbowring
023fe7ef2b
Customize mermaid module (#362)
* enabled mermaid by default

* implemented logic to use internal oder cdn mermaid

* added english documentation

* added french translation for the mermaid options

* Removed useless test print

* Hugo does not use upper case letters in params

* fixed false sample link

* improved mermaid pages

* fixed always load mermaid if no frontmatter specified

* fixed mermaid samples

* removed obsolete css files

* changed default version of mermaid cdn

* renamed mermaidURL to customMermaidURL and removed css link

* improved mermaid configuration description

Co-authored-by: Arthur Ferdinand Lindner <Arthur-Ferdinand.Lindner@Telekom.de>
Co-authored-by: Arthur Ferdinand Lindner <arthur.lindner@outlook.de>
2020-09-11 14:57:25 +01:00
Christian Oliff
be898802f0 remove
`<script src="{{"js/html5shiv-printshiv.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>`
This was only ever needed for IE8 (which is not supported with this theme since it uses a newer version of jQuery). Furthermore it should be loaded in the head anyway. IE9 supports HTML5 tags and does not need this polyfill at all.
2019-08-11 21:13:29 +01:00
James Booker
eb0ad9c489 Fix deprecated .Hugo, .UniqueID and .URL references 2019-07-30 21:46:35 +01:00
Christian Oliff
02315785f2 remove unneeded type="text/css" 2019-06-11 22:29:17 +01:00
ozobi
f2ef666790 Update js and css 2019-04-01 22:31:07 +01:00
willwade
a29add8d5e changes so can now use page params as well as site 2018-03-19 10:40:10 +00:00
will wade
6d6fde35b9
adding .Site.Params.disableNextPrev
adding this site param to disable back and forth..
2018-03-14 00:30:00 +00:00
matcornic
6562adeb7b fix #83 no Title and Edit this page text when on mobile + fixed top bar width pbm on resize by switching to sticky.js instead of sticky-kit 2017-11-23 19:46:56 +01:00
Haitao Chen
13780c6fa8 allowing comments system 2017-11-03 23:37:37 -07:00
matcornic
6b265c5181 add first content for new documentation 2017-08-20 23:43:49 +02:00
matcornic
52e897dcb9 changed defaults + scroll with offset 2017-08-20 23:43:49 +02:00
matcornic
951e8fb40e feat: add shortcode for attachments 2017-08-20 23:43:47 +02:00
matcornic
9eb81efb44 fix busting javascript #47 2017-08-20 23:43:46 +02:00
matcornic
2b03e2568e feat: mermaid #53 + archetypes + move doc + expand 2017-08-20 23:43:45 +02:00
matcornic
b2ac8298bf feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
Nikolay Yakimov
2f5722599e
Merge branch 'use-index-pages' of github.com:lierdakil/hugo-theme-learn into use-index-pages 2017-03-27 22:58:09 +03:00
Nikolay Yakimov
7aa1e70638
Fixes, see description
* fix menu ordering when mixing chapters and non-chapters
* allow for `chapter` type override in `_index` pages
* fix breadcrumbs
* fix some crashes with empty categories
* use page context in list.html (to avoid setting uniqueid in scratch)
* use UniqueID instead of relative links for page identification
2017-03-27 22:57:49 +03:00
Nikolay Yakimov
f1c65dd9e7
Use relURL for manual navigation 2017-03-26 20:30:49 +03:00
Nikolay Yakimov
532a102a87
Remove baseurl from automatic navigation arrows
Since it's already included in `Page.URL`
2017-03-26 20:15:36 +03:00
Nikolay Yakimov
329d426d86
More compatibility issues 2017-03-14 02:55:59 +03:00
Nikolay Yakimov
79107d2e75
Backwards compatibility 2017-03-14 02:10:33 +03:00
Nikolay Yakimov
f238cdbc16
Auto prev/next 2017-03-14 01:31:13 +03:00
Nikolay Yakimov
23e40c6b5b
Use index pages 2017-03-14 01:07:40 +03:00
Nikolay Yakimov
b8d31039ec
Initial auto arrows 2017-03-14 00:19:57 +03:00
matcornic
7603122da8 fix: dead links on prev/next arrows 2016-12-30 22:48:13 +01:00