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

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 }}
<p>
{%- if config.taxonomies | length > 0 -%}
<small> <small>
<a href="{{ get_url(path='tags', lang=lang) }}"> <a href="{{ get_url(path='tags', lang=lang) }}">
{{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }} {{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }}
</a> </a>
</small>
<br /> <br />
{%- endif %}
<small>
{{ macros_translate::translate(key="newest_to_oldest", default="From newest to oldest", language_strings=language_strings) }} ↓ {{ macros_translate::translate(key="newest_to_oldest", default="From newest to oldest", language_strings=language_strings) }} ↓
</small> </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" ] %}