Commit graph

157 commits

Author SHA1 Message Date
Robert Kaussow 2f752b32ad
fix: add missing navigation for pagination (#540) 2022-11-16 11:06:35 +01:00
Robert Kaussow 54b7d1388f
use .Page.Site instead of site to access data assets (#541) 2022-11-16 10:41:02 +01:00
Robert Kaussow 74e4d13673
fix: fix access to data assets in render hook (#539)
Site variables in markdown render hooks or partials need to be accessed
via global site function or .Page object.
2022-11-16 09:36:44 +01:00
Robert Kaussow e9ece03388
feat: add option to enable or disable the dark mode toggle button (#529) 2022-11-02 15:48:45 +01:00
Robert Kaussow 128a55e974
feat: add option to sort items in properties shortcode (#527)
BREAKING CHANGE: To enable sorting of elements in the `properties` shortcode, it was necessary to change the structure of the properties file. Due to this change, the `properties` object now requires a list of maps instead of a map. A [sample file](https://raw.githubusercontent.com/thegeeklab/hugo-geekdoc/main/exampleSite/data/properties/demo.yaml) can be found in the repository.
2022-11-02 13:01:20 +01:00
Robert Kaussow c1d8443eed
chore: bump hugo in ci to 0.104.3 (#518) 2022-10-14 12:21:12 +02:00
Robert Kaussow b9876a8640
feat: add origin size to image shortcode (#490) 2022-09-02 10:58:44 +02:00
Robert Kaussow 12c81554ac
feat: support mermaid codeblocks (#485) 2022-08-29 21:52:44 +02:00
Robert Kaussow 1a9fe22d64
feat: add option anchor the the bundle menu (#468) 2022-08-04 21:57:02 +02:00
Robert Kaussow b280889260
fix: fix wrong class and parameter name (#461) 2022-07-17 20:37:19 +02:00
Robert Kaussow 3a26b6ed1b
feat: add profile size to img shortcode (#456) 2022-07-11 20:46:07 +02:00
Robert Kaussow 66d456f552
feat: add column size attribute (#455) 2022-07-11 20:46:01 +02:00
Robert Kaussow aa15025ba0
fix button class handling (#444) 2022-06-27 09:14:24 +02:00
Robert Kaussow 580ea885e3
fix: fix broken rendering of nested buttons (#443) 2022-06-24 10:54:16 +02:00
Robert Kaussow 7195431d8c
fix: improve keyboard accessability for anchors and code blocks (#434) 2022-06-10 21:44:08 +02:00
Robert Kaussow 6545ceb24d
feat: add option geekdocDarkModeCode to enforce dark codeblocks (#429) 2022-05-31 14:14:01 +02:00
Robert Kaussow 33ea5c37a9
feat: render popertylist description as markdown (#426) 2022-05-30 21:40:09 +02:00
Robert Kaussow 1ab1620c7b
fix: allow loading property files from nested folder (#420) 2022-05-26 17:07:38 +02:00
brett ohland 61ef82104e
fix: remove table formatting from github gists (#416)
* fix: fix CSS issue with gist embeds

* Addressing PR comments

* remove newline

* simplify selector and add example

* fix spellcheck

* fix markdownlint

Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2022-05-24 00:37:06 +02:00
Robert Kaussow 6b464202c9
fix: fix formatting issue while using nested toc shortcodes (#415) 2022-05-22 22:07:35 +02:00
Robert Kaussow 6ab98d1da3
feat: add propertylist shortcode (#414) 2022-05-22 22:00:37 +02:00
Robert Kaussow f576e4ca0d
fix: fix extra space after katex shortcode (#406) 2022-05-17 14:45:25 +02:00
Robert Kaussow 6d82d6f851
fix: fix rendering issue for untranslated pages in bundle menu (#389) 2022-04-28 11:38:28 +02:00
Robert Kaussow 0a5af2e8da
fix: fix nested hint rendering issues (#391) 2022-04-28 11:26:45 +02:00
Robert Kaussow f6966b8513
feat: add optional hint/admonition icons (#383)
BREAKING CHANGE: The types of the `hint` short code have been renamed to `[note|tip|important|caution|warning]` the old types `[info|ok|warning|danger]` are still working, but should be considered as deprecated.

BREAKING CHANGE: The `hint` short code is using named arguments now. You have to change, e.g. `{{< hint warning >}}` to `{{< hint type=warning >}}`.
2022-04-23 15:14:42 +02:00
Robert Kaussow b104d6ac70
refactor: rename class .icon to .gdoc-icon (#379)
BREAKING CHANGE: The class `.icon` was renamed to `.gdoc-icon` to avoid conflicts.
2022-04-18 20:33:23 +02:00
Robert Kaussow 9d61f9ddf9
fix: avoid to apply css class katex twice (#357) 2022-02-26 16:28:10 +01:00
Robert Kaussow a4d1f51b1b
fix template auto-formatting 2022-02-22 21:45:14 +01:00
Robert Kaussow 2ecb63e7b2
fix: fix isPage detection for metatdata tags (#348) 2022-02-18 14:03:19 +01:00
Robert Kaussow 2dbe3a4a5f
fix: add schema.org metadata to docs sections (#347) 2022-02-17 20:44:08 +01:00
Robert Kaussow 7df6057ca0
feat: add new option geekdocContentLicense (#346) 2022-02-16 11:53:13 +01:00
Robert Kaussow 95c38f6193
refactor: cleanup and unify the featured image metadata integration (#345) 2022-02-15 22:27:43 +01:00
Robert Kaussow 055ab6c4e3
fix: fallback to 'content' if no contentDir parameter is set (#344) 2022-02-15 21:14:05 +01:00
Robert Kaussow c9f809ca19
fix: fix edit page link and auto-detect contentDir (#343)
BREAKING CHANGE: With support of the multilingual mode, we broke the `edit page` links, as the content directory was statically hard-coded into the `GeekdocEditPath` parameter. To get the correct content directory, regardless of the language or a disabled multilingual mode, we now use Hugo's built-in `.Site.Params.contentDir` parameter. Therefor, you have to remove the hard-coded `/content` part from the `geekdocEditPath` parameter in the configuration of your project.
2022-02-15 20:58:35 +01:00
Robert Kaussow 4e93b70b7b
fix: revert fix for broken Edit Page links (#339) (#342) 2022-02-14 23:23:06 +01:00
Andreas Deininger f66ca6a07d
fix: fix broken Edit Page links (#339) 2022-02-13 22:48:38 +01:00
Robert Kaussow 87fdde4808
fix: use safeHTML for description in metadata (#334) 2022-02-07 14:47:32 +01:00
Robert Kaussow cd9ab9e48e
fix: fix formatting of multiline post metadata (#333) 2022-02-07 13:52:12 +01:00
Robert Kaussow e97cddfd2a
fix: use absolute ULRs in img shortcode (#332) 2022-02-07 13:24:00 +01:00
Robert Kaussow e100ccf034
feat: add canonical link to head (#331) 2022-02-07 12:04:51 +01:00
Robert Kaussow a901b3da36
fix: fix usage of terms and taxonomies list templates (#330) 2022-02-07 11:53:45 +01:00
Robert Kaussow d2668b43f6
refactor: unify title and description handling in meta files (#329) 2022-02-07 10:57:43 +01:00
Robert Kaussow 3228f90eef
fix: prevent failing build if tags is an empty string (#322) 2022-02-04 13:31:23 +01:00
Robert Kaussow 4f3d48c1d9
fix: fix formatting on code links (#316) 2022-02-03 11:42:26 +01:00
Robert Kaussow 30d3c64c41
fix: fix post metadata positioning (#315) 2022-02-03 10:58:37 +01:00
Robert Kaussow 8b117788c6
fix: fix header menu style if no extra entries were added (#305) 2022-01-30 22:05:14 +01:00
Nicholas Seemiller 2ed5365d54
BREAKING CHANGE: rename icons gdoc_keyborad_arrow_* to gdoc_keyboard_arrow_* (#299) 2022-01-27 22:03:12 +01:00
Robert Kaussow 2805fbd33a
fix: always fetch menu name from data file (#296) 2022-01-23 22:32:21 +01:00
Robert Kaussow 5c22ce57dc
feat: add multilingual mode support (#241)
BREAKING CHANGE:  Layout file renamed ´layouts/partials/page-footer.html → layouts/partials/menu-nextprev.html`. If you use overrides, you might need to change the filenames as well.
2022-01-23 13:21:44 +01:00
Robert Kaussow cdc8c1faed
fix: fix asset loading on subfolder deployments (#287) 2022-01-16 16:03:31 +01:00