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.
# 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

View File

@ -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 {

View File

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

View File

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