From a056805a3042f03335034daec284a5597253350a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 30 Apr 2022 14:28:48 +0200 Subject: [PATCH] docs: migrate hints to named attributes (#393) --- exampleSite/content/en/_includes/include-page.md | 2 +- exampleSite/content/en/shortcodes/includes.md | 2 +- exampleSite/content/en/usage/getting-started.md | 4 ++-- exampleSite/content/en/usage/menus.md | 2 +- src/sass/_asciidoc.scss | 1 - src/sass/_color_mode.scss | 4 ++-- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/exampleSite/content/en/_includes/include-page.md b/exampleSite/content/en/_includes/include-page.md index bfc0534..8c39141 100644 --- a/exampleSite/content/en/_includes/include-page.md +++ b/exampleSite/content/en/_includes/include-page.md @@ -1,6 +1,6 @@ _**Example page include**_ -{{< hint info >}} +{{< hint type=note >}} **Example Shortcode**\ Shortcode used in an include page. {{< /hint >}} diff --git a/exampleSite/content/en/shortcodes/includes.md b/exampleSite/content/en/shortcodes/includes.md index b092f53..7a0453b 100644 --- a/exampleSite/content/en/shortcodes/includes.md +++ b/exampleSite/content/en/shortcodes/includes.md @@ -27,7 +27,7 @@ Attributes: If no other options are specified, files will be rendered as Markdown using the `RenderString` [function](https://gohugo.io/functions/renderstring/). -{{< hint warning >}} +{{< hint type=important >}} **Location of markdown files**\ If you include markdown files that should not get a menu entry, place them outside the content folder or exclude them otherwise. {{< /hint >}} diff --git a/exampleSite/content/en/usage/getting-started.md b/exampleSite/content/en/usage/getting-started.md index b5b987d..81c2e4c 100644 --- a/exampleSite/content/en/usage/getting-started.md +++ b/exampleSite/content/en/usage/getting-started.md @@ -88,7 +88,7 @@ curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo ### Option 2: Clone the GitHub repository -{{< hint info >}} +{{< hint type=note >}} **Info**\ Keep in mind this method is not recommended and needs some extra steps to get it working. If you want to use the Theme as submodule keep in mind that your build process need to @@ -164,7 +164,7 @@ command = "command1 && command 2 && command3 && hugo" ### Subdirectories -{{< hint danger >}} +{{< hint type=important >}} **Warning**\ As deploying Hugo sites on subdirectories is not as robust as on subdomains, we do not recommend this. If you have a choice, using a domain/subdomain should always be the preferred solution! diff --git a/exampleSite/content/en/usage/menus.md b/exampleSite/content/en/usage/menus.md index 92f260a..04f0a7d 100644 --- a/exampleSite/content/en/usage/menus.md +++ b/exampleSite/content/en/usage/menus.md @@ -68,7 +68,7 @@ As an advantage you can add [icons](/features/icon-sets/) to your menu entries e ### More menu -{{< hint ok >}} +{{< hint type=tip >}} **Tip**\ The more menu is special type of the bundle menu and can be combined with the default file-tree menu. {{< /hint >}} diff --git a/src/sass/_asciidoc.scss b/src/sass/_asciidoc.scss index e3c6e38..2589e59 100644 --- a/src/sass/_asciidoc.scss +++ b/src/sass/_asciidoc.scss @@ -1,4 +1,3 @@ -// {{< hint >}} .admonitionblock { @each $name, $color in $hint-colors { &.#{$name} { diff --git a/src/sass/_color_mode.scss b/src/sass/_color_mode.scss index 1f7788c..274cf2d 100644 --- a/src/sass/_color_mode.scss +++ b/src/sass/_color_mode.scss @@ -90,8 +90,8 @@ --footer-link-color: #{$link-color-footer}; --footer-link-color-visited: #{$link-color-footer}; - .dark-mode-dim .gdoc-markdown { - img { + .dark-mode-dim { + .gdoc-markdown img { filter: brightness(0.75) grayscale(0.2); } }