Commit graph

181 commits

Author SHA1 Message Date
Sören Weber
c81bf82ced
menu: allow empty ul
This simplyfies code, as of now it is only necessary to tag the ul with
classes and let the CSS do all the heavy lifting.

Care was taken, to not mess up layout when a ul ends up with all
its li hidden.
2021-08-26 22:19:52 +02:00
Sören Weber
d04bbaad4e
theme: treat pages without title as hidden #59 2021-08-26 12:42:20 +02:00
Helder Pereira
6efb50a010 Add menu-pre and menu-post templates 2021-08-25 13:54:52 +01:00
Sören Weber
1fda1d8692
children: add parameter for container style #53 2021-08-25 14:45:01 +02:00
Sören Weber
223aa26ddd
Merge branch 'fix-relative-search' of git://github.com/helfper/hugo-theme-relearn into helfper-fix-relative-search 2021-08-25 09:55:43 +02:00
Sören Weber
a47e7a6871
Merge branch 'content-template' of git://github.com/helfper/hugo-theme-relearn into helfper-content-template 2021-08-25 01:03:59 +02:00
Helder Pereira
2edbf2645c Fix search with relativeURLs 2021-08-24 23:36:26 +01:00
Sören Weber
a69236d160
menu: control sub-menu expansion #49 2021-08-25 00:10:09 +02:00
Helder Pereira
49882c4ae6 Add content template 2021-08-24 21:59:46 +01:00
Sören Weber
2fcc3979b4
wildspace 2021-08-24 20:57:33 +02:00
Helder Pereira
449708afd4 Upgrade Hugo to 0.87.0 2021-08-24 00:48:48 +01:00
Helder Pereira
757d2f06dc Fix home link when base URL has some path 2021-08-23 23:48:41 +01:00
Sören Weber
b29f1ce055
theme: adjust leading whitespace and superflous lines 2021-08-24 00:23:52 +02:00
Sören Weber
bdce9ec45a
theme: adjust idention to spaces 2021-08-23 23:57:56 +02:00
Sören Weber
de7b3d8056
theme: remove typos and superflous whitespace 2021-08-23 23:51:52 +02:00
Sören Weber
cdd08cdf1a
include: new shortcode - missing file #43 2021-08-23 22:19:48 +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
bb5541f791
attachments: sort output #23 2021-07-26 11:14:27 +02:00
Sören Weber
6fb5852643
maintenance: upgrade jquery to 3.6.0 #30
Because of a jquery security vulnerability, we are upgrading to the latest version 3.6.0

https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/

Depending on the site content, there may be issues with self-closing tags that are allowed to have content like `div` or `span`. See https://jquery.com/upgrade-guide/3.5/
2021-07-25 22:33:18 +02:00
Sören Weber
4d5d7f6815
attachments: support i18n for attachment size #21 2021-07-17 12:37:24 +02:00
Sören Weber
919c826f8c
attachments: align style with notice #28 2021-07-17 11:59:27 +02:00
Sören Weber
565cfbe03d
notice: align styles with attachments #28 2021-07-17 11:59:26 +02:00
Sören Weber
050837bc3f
expand: add option to open on page load #25 2021-07-16 23:51:11 +02:00
Sören Weber
bc1de84fc5
expand: remove undocumented named parameter 2021-07-16 23:14:07 +02:00
Sören Weber
a9a081903a
expand: make expander more visible #24 2021-07-16 23:07:15 +02:00
Sören Weber
a0084ecf96
notice: support multiple blocks in one box #15 2021-07-16 19:48:48 +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
146965c497
Reworking screenshots after rebranding 2021-07-01 16:25:08 +02:00
Sören Weber
e8340249df
Docs adjustments #1 2021-07-01 14:35:27 +02:00
Sören Weber
82bdb24f72
New logo #1 2021-07-01 13:35:12 +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
Alekos Filini
d7a4481ff2
Don't count hidden pages for the sub-menus (#470) 2021-03-16 17:29:22 +00:00
Swen Wenzel
0b5bb6e7b3
Implement tab views (#386)
Tab views from @swenzel
2021-03-16 17:21:57 +00:00
Helder Pereira
0c0b906ae1
Remove .Inner from children shortcode (#400) 2020-12-05 10:39:25 +00:00
Jian Liew
ae732f3931
Added binary prefix for kilobyte using i18n (#461) 2020-11-12 09:48:55 +00:00
DCsunset
c3a66e9b4d
Fix default logo URL (#467) 2020-11-12 09:46:37 +00:00
mirisbowring
6cfd61e0f6
Navigation home option (#381)
* 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

* applied 3 new params to default config

* Implemented Home Button logic

* Applied default style

* applied same landingpage ref to logo partials

* added sample image, how the button will looks like

* added en documentation on how to configure the button

* translated home button configuration to french via deepl

* applied home button style to theme variants

* set button disabled by default

* 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-10-21 17:53:27 +01: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
Razon Yang
00f1ca6856
Add the titleSeparator parameter. (#448)
* Add the titleSeparator parameter

* Add a description for the titleSeparator parameter
2020-09-11 09:31:22 +01:00
Gaetan BOGAERT
a7a29541f8
fix: change taxonomy term and use taxonomy name (#444)
@see bf74d9e81c
2020-09-10 17:59:18 +01:00
mtbt03
eb80a1788b
fix: closing div tag (#416)
Co-authored-by: HORIBATA Shingo <shingo@mitibata.dev>
2020-09-10 17:40:40 +01:00
Qi Wenmin
ca0872ecb5 Fix: can't give argument to non-function not .Params.hidden
Build fail when using Hugo 0.71.1.
2020-06-01 12:45:19 +01:00
Matthew Taylor
d4abb3c9a1 Allow custom css files to be loaded by configuration
Previously adding custom css files would require the end user to copy
the header or footer partial into their overrides. They would then
need to maintain that partial into the future.

This config allows a user to provide a list of custom css files to load
into the theme, meaning they do not need to clone the partial.

```
[params]
  custom_css = ["css/foo.css", "css/bar.css"]
```

Inspiration taken from https://discourse.gohugo.io/t/how-to-override-css-classes-with-hugo/3033/4
2020-04-14 11:12:06 +01:00
Helder Pereira
f7847b6a3a Fix .File.UniqueID on zero object warning 2020-03-09 15:25:50 +00:00
Rasmus Stougaard
46223816d6 Avoid displaying hidden sections in menu 2020-02-01 23:06:35 +00:00