diff --git a/config.toml b/config.toml index e56bf86..815f6f4 100644 --- a/config.toml +++ b/config.toml @@ -113,6 +113,8 @@ show_read_time = true # Whether to enable the KaTeX library for rendering LaTeX. # Note: This will make your page significantly heavier. katex = true +# Display outlines around all elements for debugging purposes +# debug_layout = true [extra.nav] # Whether to show the Atom/RSS feed button in the nav @@ -126,11 +128,11 @@ show_repo = true # i.e. "@/blog/_index.md". # See https://www.getzola.org/documentation/content/linking/#internal-links links = [ - { name = "Links" , sublinks = [ + { name = "Links", sublinks = [ { url = "@/blog/_index.md", name = "Blog" }, { url = "@/demo/index.md", name = "Demo" }, { url = "@/tricks/index.md", name = "Tricks" }, - ]}, + ] }, { url = "https://daudix.one/coffee/", name = "Coffee" }, ] diff --git a/sass/_general.scss b/sass/_general.scss index 40c3bf8..634a3de 100644 --- a/sass/_general.scss +++ b/sass/_general.scss @@ -1,10 +1,3 @@ -// Layout Debugging -// *, -// *::before, -// *::after { -// outline: solid 0.0625rem var(--primary-color); -// } - * { box-sizing: border-box; } @@ -78,6 +71,7 @@ body { } @media (prefers-reduced-motion) { + *, *::before, *::after { diff --git a/templates/article_list.html b/templates/article_list.html index eddc422..f5fd694 100644 --- a/templates/article_list.html +++ b/templates/article_list.html @@ -7,13 +7,20 @@ {{ section.content | safe }} - - - {{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }} - -
- {{ macros_translate::translate(key="newest_to_oldest", default="From newest to oldest", language_strings=language_strings) }} ↓ -
+

+ {%- if config.taxonomies | length > 0 -%} + + + {{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }} + + +
+ {%- endif %} + + + {{ macros_translate::translate(key="newest_to_oldest", default="From newest to oldest", language_strings=language_strings) }} ↓ + +

{% include "partials/articles.html" %} {% endblock content %} diff --git a/templates/partials/head.html b/templates/partials/head.html index d9207da..979d1e1 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -67,6 +67,14 @@ } } {%- endif %} + + {%- if config.extra.debug_layout -%} + *, + *::before, + *::after { + outline: solid 1px var(--primary-color); + } + {%- endif -%} {%- set stylesheets = [ "style.css" ] %}