diff --git a/CHANGELOG.md b/CHANGELOG.md index b9b36c8..4d31079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add `classic-article-list` mod for returning the classic article list style. +- Add `config.extra.debug_no_styles` config variable for debugging. - Add `config.extra.show_backlinks` config variable for showing the backlinks button for linked articles in the article's quick actions. - Add `fediverse:creator` meta tag. - Add `title` class for use on ``. diff --git a/config.toml b/config.toml index 6fa2e6a..de46b97 100644 --- a/config.toml +++ b/config.toml @@ -175,6 +175,8 @@ csp = [ ] # Display outlines around all elements for debugging purposes # debug_layout = true +# Don't load any styles for debugging purposes +# debug_no_styles = true [extra.nav] # Whether to show the Atom/RSS feed button in the nav diff --git a/templates/partials/head.html b/templates/partials/head.html index 259d593..f158152 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -54,16 +54,18 @@ {%- set styles = styles | concat(with=section.extra.styles) %} {%- endif %} - {%- for style in styles %} - - {%- endfor %} + {%- if not config.extra.debug_no_styles %} + {%- for style in styles %} + + {%- endfor %} - {%- if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %} - {%- if config.markdown.highlight_themes_css | length > 0 %} - - - {%- else %} - + {%- if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %} + {%- if config.markdown.highlight_themes_css | length > 0 %} + + + {%- else %} + + {%- endif %} {%- endif %} {%- endif %}