Revert "remove archive and templates"

This reverts commit 67bdf28216.
This commit is contained in:
timurgordon
2024-03-06 16:24:35 -05:00
parent 10169d27fc
commit db0b0ed39f
514 changed files with 12779 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{% set url = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"')
| trim_end_matches(pat='"') %}
{% if 'https' in url %}
{% if url is not containing("threefold") %}
{% if url is not containing("localhost") %}
<button onclick="window.open('{{url}}', '_blank');"
class="leading-6 border-transparent flex flex-col border-2 w-full items-start rounded transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2 text-left">
{{ body | trim_start_matches(pat="<p>") | safe}}
</button>
{% endif %}
{% endif %}
{% else %}
<button onclick="window.location='{{get_url(path=url)}}'"
class="leading-6 border-transparent flex flex-col border-2 w-full items-start rounded transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2 text-left">
<a href="{{get_url(path=url)}}"> {{ body | trim_start_matches(pat="<p>") | striptags | safe}}</a>
</button>
{% endif %}