transfer depuis gogs

This commit is contained in:
2025-05-08 11:58:35 +02:00
commit e71ace994c
1209 changed files with 172996 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{# Default output if no theme #}
<h3 style="color:red">ERROR: <code>{{ page.template() ~'.'~ page.templateFormat() ~".twig" }}</code> template not found for page: <code>{{ page.route() }}</code></h3>
<h1>{{ page.title() }}</h1>
{{ page.content()|raw }}

View File

@@ -0,0 +1 @@
{# Default external template #}

View File

@@ -0,0 +1,4 @@
{% set item = collection ?? object %}
{% set type = collection ? 'collection' : 'object' %}
ERROR: Layout '{{ layout }}' for flex {{ type }} '{{ item.flexType() }}' was not found.

View File

@@ -0,0 +1,5 @@
<h1>{{ directory.getTitle() }} <small>debug dump</small></h1>
{% for object in collection %}
{% render object layout: layout %}
{% endfor %}

View File

@@ -0,0 +1,4 @@
<section>
<h2>{{ object.key }}</h2>
<pre>{{ object.jsonSerialize()|yaml_encode }}</pre>
</section>

View File

@@ -0,0 +1,4 @@
{# Default output if no theme #}
<h3 style="color:red">ERROR: <code>{{ page.template() ~'.'~ page.templateFormat() ~".twig" }}</code> template not found for page: <code>{{ page.route() }}</code></h3>
<h1>{{ page.title() }}</h1>
{{ page.content()|raw }}

View File

@@ -0,0 +1,14 @@
{% set status_mapping = {'info':'green', 'error': 'red', 'warning': 'yellow'} %}
{% if grav.messages.all %}
<div id="messages">
{% for message in grav.messages.fetch %}
{% set scope = message.scope|e %}
{% set color = status_mapping[scope] %}
<div class="notices {{ scope }} {{ color }}"><p>{{ message.message|raw }}</p></div>
{% endfor %}
</div>
{% endif %}

View File

@@ -0,0 +1,3 @@
{% for meta in page.metadata %}
<meta {% if meta.name %}name="{{ meta.name|e }}" {% endif %}{% if meta.http_equiv %}http-equiv="{{ meta.http_equiv|e }}" {% endif %}{% if meta.charset %}charset="{{ meta.charset|e }}" {% endif %}{% if meta.property %}property="{{ meta.property|e }}" {% endif %}{% if meta.content %}content="{{ meta.content|raw }}" {% endif %}/>
{% endfor %}