1

change donation banner

This commit is contained in:
Evan Pratten 2024-01-07 12:37:54 -05:00
parent 9d5cd6cf2f
commit b9e0290951

View File

@ -1,10 +1,10 @@
{# Some common data #} {# Some common data #}
{%if page.path or section.path %} {%if page.path or section.path %}
{% set title = page.title | default(value=section.title) %} {% set title = page.title | default(value=section.title) %}
{% set path = page.path | default(value=section.path) %} {% set path = page.path | default(value=section.path) %}
{% set content = page.content | default(value=section.content) %} {% set content = page.content | default(value=section.content) %}
{% set extra = page.extra | default(value=section.extra) %} {% set extra = page.extra | default(value=section.extra) %}
{% set is_blog_post = path != "/blog/" and path is starting_with("/blog/") %} {% set is_blog_post = path != "/blog/" and path is starting_with("/blog/") %}
{% else %} {% else %}
{# If here, we are on the 404 page #} {# If here, we are on the 404 page #}
{% set title = "NOT FOUND" %} {% set title = "NOT FOUND" %}
@ -18,7 +18,7 @@
<head> <head>
{% block head %} {% block head %}
<!--noformat--> <!--noformat-->
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{title}} | {{config.title}}</title> <title>{{title}} | {{config.title}}</title>
@ -146,7 +146,11 @@
<footer> <footer>
{% if is_blog_post %} {% if is_blog_post %}
<br> <br>
<p id="sponsor-notice">Consider <a href="https://ewp.fyi/sponsor">sponsoring my work</a>!</p> <p id="sponsor-notice">
Consider making
<a href="https://ewp.fyi/donate" style="text-decoration:underline;" target="_blank">a small donation</a>
to support my work!
</p>
{% endif %} {% endif %}
<br> <br>
<hr> <hr>