Add changes

This commit is contained in:
Allen
2024-09-15 22:28:22 -05:00
parent 819953ec87
commit d56876a142
7 changed files with 57 additions and 18 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
/public/

View File

@ -14,4 +14,4 @@ highlight_code = false
[extra] [extra]
# Put all your custom variables here # Put all your custom variables here
name = { first = "john", last = "doe" } #name = { first = "Allen", last = "Wolf" }

View File

@ -289,3 +289,17 @@ body::-webkit-scrollbar {
background-color: var(--light-purple); background-color: var(--light-purple);
color: white; color: white;
} }
#roles a {
color: var(--light-purple);
}
.card a {
color: var(--light-purple);
}
.white_filter {
-webkit-filter: brightness(0) invert(1);
filter: brightness(0) invert(1);
transition: filter 0.3s ease;
}

View File

@ -20,8 +20,12 @@
<body> <body>
{% block content %}{% endblock -%} {% 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="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="/js/main.js"></script>
<script> <script>
particlesJS.load('particles', '{{ config.base_url | safe }}/particles.json', null); particlesJS.load('particles', '{{ config.base_url | safe }}/particles.json', null);
</script> </script>

View File

@ -1,12 +1,34 @@
{{ section.content | safe }} {{ section.content | safe }}
<div class="columns"> <div class="columns">
{%- for page in section.pages %} {%- for page in section.pages %}
<div> {% 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> <h2>{{ page.title }}</h2>
{# FontAwesome Icons #}
{% for icon in page.extra.icons | default(value=[]) -%} {% for icon in page.extra.icons | default(value=[]) -%}
<i class="{{ icon }} fa-3x"></i> <i class="{{ icon }} fa-4x" style="font-size: 50px; margin: auto;"></i>
{%- endfor %} {%- 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 }} {{ page.content | safe }}
</div> </div>
{%- if link != "" %}
</a>
{%- endif %}
{%- endfor %} {%- endfor %}
</div> </div>

View File

@ -35,7 +35,7 @@
<div id="roles"> <div id="roles">
<p> <p>
{%- for role in section.extra.roles %} {%- for role in section.extra.roles %}
<span>{{ role }}</span><br> <span>{{ role | safe }}</span><br>
{%- endfor %} {%- endfor %}
</p> </p>
</div> </div>
@ -45,7 +45,7 @@
<div id="links"> <div id="links">
<p> <p>
{%- for link in config.extra.links %} {%- 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 %} {%- endfor %}
</p> </p>
</div> </div>

View File

@ -12,9 +12,9 @@ demo = "https://cyril-marpaud.gitlab.io"
# be merged with user data, some kind of prefix or nesting is preferable # be merged with user data, some kind of prefix or nesting is preferable
# Use snake_casing to be consistent with the rest of Zola # Use snake_casing to be consistent with the rest of Zola
[extra] [extra]
name = { first = "John", last = "Doe" } #name = { first = "Allen", last = "Wolf" }
# The theme author info: you! # The theme author info: you!
[author] [author]
name = "Cyril Marpaud" name = "Allen Wolf"
homepage = "https://cyril-marpaud.gitlab.io" homepage = "https://aaw3.dev"