Allow statements on regular pages (fixes #34)

This commit is contained in:
daudix
2024-07-19 21:31:56 +03:00
parent f72225103f
commit f1ca685eaa
4 changed files with 35 additions and 42 deletions

View File

@ -73,7 +73,7 @@ pre table td:nth-of-type(1) {
| Pinke Pie | Fun pone | Party Horn! | | Pinke Pie | Fun pone | Party Horn! |
| Twilight | Decent pone | Neeerd | | Twilight | Decent pone | Neeerd |
| Rainbow Dash | Annoying pone | Looks badass | | Rainbow Dash | Annoying pone | Looks badass |
| Rarity | Mixed pone | Sometimes nice | | Rarity | Fancy pone | Sometimes nice |
- Item foo - Item foo
- Item bar - Item bar
@ -386,7 +386,7 @@ Blah blah <q>Inline Quote</q> hmm.
## Grammar Mistakes ## Grammar Mistakes
```html ```html
<u>Trying to replicate grammar mistakes</u> <u>Gmarrar mitsakes</u>
``` ```
<u>Yeet</u> the <u>sus</u> drip while <u>vibing</u> with the <u>TikTok</u> <u>fam</u> on a cap-free boomerang. <u>Yeet</u> the <u>sus</u> drip while <u>vibing</u> with the <u>TikTok</u> <u>fam</u> on a cap-free boomerang.
@ -408,4 +408,4 @@ Blah blah <q>Inline Quote</q> hmm.
</div> </div>
``` ```
> Look at the end of this page xD Look bellow this text XD

View File

@ -46,35 +46,7 @@
{%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%}
{%- if page.extra.archive -%} {%- include "partials/statements.html" -%}
<div class="statement-container archive">
<strong class="big">
<i class="icon"></i>
{{- macros_translate::translate(key="archived", default="Archived", language_strings=language_strings) -}}
</strong>
{{ page.extra.archive | markdown | safe }}
</div>
{%- endif -%}
{%- if page.extra.trigger -%}
<div class="statement-container trigger">
<strong class="big">
<i class="icon"></i>
{{- macros_translate::translate(key="trigger_warning", default="Trigger Warning", language_strings=language_strings) -}}
</strong>
{{ page.extra.trigger | markdown | safe }}
</div>
{%- endif -%}
{%- if page.extra.disclaimer -%}
<div class="statement-container disclaimer">
<strong class="big">
<i class="icon"></i>
{{-macros_translate::translate(key="disclaimer", default="Disclaimer", language_strings=language_strings) -}}
</strong>
{{ page.extra.disclaimer | markdown | safe }}
</div>
{%- endif -%}
{%- if page.extra.toc -%} {%- if page.extra.toc -%}
<h2>{{ macros_translate::translate(key="table_of_contents", default="Table of Contents", language_strings=language_strings) }}</h2> <h2>{{ macros_translate::translate(key="table_of_contents", default="Table of Contents", language_strings=language_strings) }}</h2>
@ -100,7 +72,7 @@
</article> </article>
{%- if page.extra.comments.id -%} {%- if page.extra.comments.id -%}
{% include "partials/comments.html" ignore missing %} {% include "partials/comments.html" %}
{%- endif -%} {%- endif -%}
{%- if page.lower or page.higher -%} {%- if page.lower or page.higher -%}

View File

@ -1,14 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
{%- if page.extra.archive %} {%- include "partials/statements.html" -%}
<div class="statement-container archive">
<strong class="big">
<i class="icon"></i>
{{- macros_translate::translate(key="archived", default="Archived", language_strings=language_strings) -}}
</strong>
{{ page.extra.archive | markdown | safe }}
</div>
{%- endif %}
{{ page.content | safe }} {{ page.content | safe }}
{% endblock content %} {% endblock content %}

View File

@ -0,0 +1,29 @@
{%- if page.extra.archive -%}
<div class="statement-container archive">
<strong class="big">
<i class="icon"></i>
{{- macros_translate::translate(key="archived", default="Archived", language_strings=language_strings) -}}
</strong>
{{ page.extra.archive | markdown | safe }}
</div>
{%- endif -%}
{%- if page.extra.trigger -%}
<div class="statement-container trigger">
<strong class="big">
<i class="icon"></i>
{{- macros_translate::translate(key="trigger_warning", default="Trigger Warning", language_strings=language_strings) -}}
</strong>
{{ page.extra.trigger | markdown | safe }}
</div>
{%- endif -%}
{%- if page.extra.disclaimer -%}
<div class="statement-container disclaimer">
<strong class="big">
<i class="icon"></i>
{{-macros_translate::translate(key="disclaimer", default="Disclaimer", language_strings=language_strings) -}}
</strong>
{{ page.extra.disclaimer | markdown | safe }}
</div>
{%- endif -%}