Layout debugging config variable

This commit is contained in:
daudix
2024-09-11 20:47:48 +03:00
parent c1afcc274f
commit a94a2f6e52
4 changed files with 27 additions and 16 deletions

View File

@ -113,6 +113,8 @@ show_read_time = true
# Whether to enable the KaTeX library for rendering LaTeX. # Whether to enable the KaTeX library for rendering LaTeX.
# Note: This will make your page significantly heavier. # Note: This will make your page significantly heavier.
katex = true katex = true
# Display outlines around all elements for debugging purposes
# debug_layout = true
[extra.nav] [extra.nav]
# Whether to show the Atom/RSS feed button in the nav # Whether to show the Atom/RSS feed button in the nav
@ -126,11 +128,11 @@ show_repo = true
# i.e. "@/blog/_index.md". # i.e. "@/blog/_index.md".
# See https://www.getzola.org/documentation/content/linking/#internal-links # See https://www.getzola.org/documentation/content/linking/#internal-links
links = [ links = [
{ name = "Links" , sublinks = [ { name = "Links", sublinks = [
{ url = "@/blog/_index.md", name = "Blog" }, { url = "@/blog/_index.md", name = "Blog" },
{ url = "@/demo/index.md", name = "Demo" }, { url = "@/demo/index.md", name = "Demo" },
{ url = "@/tricks/index.md", name = "Tricks" }, { url = "@/tricks/index.md", name = "Tricks" },
]}, ] },
{ url = "https://daudix.one/coffee/", name = "Coffee" }, { url = "https://daudix.one/coffee/", name = "Coffee" },
] ]

View File

@ -1,10 +1,3 @@
// Layout Debugging
// *,
// *::before,
// *::after {
// outline: solid 0.0625rem var(--primary-color);
// }
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -78,6 +71,7 @@ body {
} }
@media (prefers-reduced-motion) { @media (prefers-reduced-motion) {
*, *,
*::before, *::before,
*::after { *::after {

View File

@ -7,13 +7,20 @@
{{ section.content | safe }} {{ section.content | safe }}
<small> <p>
<a href="{{ get_url(path='tags', lang=lang) }}"> {%- if config.taxonomies | length > 0 -%}
{{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }} <small>
</a> <a href="{{ get_url(path='tags', lang=lang) }}">
<br /> {{ 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) }} ↓ </a>
</small> </small>
<br />
{%- endif %}
<small>
{{ macros_translate::translate(key="newest_to_oldest", default="From newest to oldest", language_strings=language_strings) }} ↓
</small>
</p>
{% include "partials/articles.html" %} {% include "partials/articles.html" %}
{% endblock content %} {% endblock content %}

View File

@ -67,6 +67,14 @@
} }
} }
{%- endif %} {%- endif %}
{%- if config.extra.debug_layout -%}
*,
*::before,
*::after {
outline: solid 1px var(--primary-color);
}
{%- endif -%}
</style> </style>
{%- set stylesheets = [ "style.css" ] %} {%- set stylesheets = [ "style.css" ] %}