Add changes
This commit is contained in:
@ -20,8 +20,12 @@
|
||||
|
||||
<body>
|
||||
{% block content %}{% endblock -%}
|
||||
<!-- credits -->
|
||||
<div class="card">Hayflow Theme by Cyril Marpaud, licensed under <a href="https://gitlab.com/cyril-marpaud/hayflow/-/blob/main/LICENSE">CC BY-SA 4.0</a></div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
|
||||
<script>
|
||||
particlesJS.load('particles', '{{ config.base_url | safe }}/particles.json', null);
|
||||
</script>
|
||||
|
@ -1,12 +1,34 @@
|
||||
{{ section.content | safe }}
|
||||
<div class="columns">
|
||||
{%- for page in section.pages %}
|
||||
<div>
|
||||
<h2>{{ page.title }}</h2>
|
||||
{% for icon in page.extra.icons | default(value=[]) -%}
|
||||
<i class="{{ icon }} fa-3x"></i>
|
||||
{%- endfor %}
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
{%- endfor %}
|
||||
</div>
|
||||
<div class="columns">
|
||||
{%- for page in section.pages %}
|
||||
{% set link = page.extra.link | default(value="") %}
|
||||
{%- if link != "" %}
|
||||
<a href="{{ link }}" style="text-decoration: none; color: inherit;">
|
||||
<div style="cursor: pointer; text-align: center;">
|
||||
{%- else %}
|
||||
<div style="text-align: center;">
|
||||
{%- endif %}
|
||||
<h2>{{ page.title }}</h2>
|
||||
|
||||
{# FontAwesome Icons #}
|
||||
{% for icon in page.extra.icons | default(value=[]) -%}
|
||||
<i class="{{ icon }} fa-4x" style="font-size: 50px; margin: auto;"></i>
|
||||
{%- endfor %}
|
||||
|
||||
{# Image Icons #}
|
||||
{% set img = page.extra.img | default(value="") %}
|
||||
{% set img_class = page.extra.img_class | default(value="") %}
|
||||
{% if img != "" %}
|
||||
{% set width = page.extra.img_width | default(value="50") %}
|
||||
{% set height = page.extra.img_height | default(value="50") %}
|
||||
<img src="/images/{{ img }}" width={{ width }} height={{ height }} alt="{{ page.title }}"
|
||||
style="margin: auto;" class={{ img_class }}>
|
||||
{% endif %}
|
||||
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
{%- if link != "" %}
|
||||
</a>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</div>
|
||||
|
@ -35,7 +35,7 @@
|
||||
<div id="roles">
|
||||
<p>
|
||||
{%- for role in section.extra.roles %}
|
||||
<span>{{ role }}</span><br>
|
||||
<span>{{ role | safe }}</span><br>
|
||||
{%- endfor %}
|
||||
</p>
|
||||
</div>
|
||||
@ -45,7 +45,7 @@
|
||||
<div id="links">
|
||||
<p>
|
||||
{%- for link in config.extra.links %}
|
||||
<a aria-label="external link" href="{{ link.url }}"><i class="{{ link.icon }} fa-2x"></i></a>
|
||||
<a aria-label="external link" href="{{ link.url }}" id="{{ link.id }}"><i class="{{ link.icon }} fa-2x"></i></a>
|
||||
{%- endfor %}
|
||||
</p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user