1

Only show sponsor banner on posts

This commit is contained in:
Evan Pratten 2023-07-07 18:48:07 -04:00
parent c3ecc51b6e
commit 61d596e696
3 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
{% set title = "NO TITLE SET" %}
{% set description = "" %}
{% set is_article = false %}
{% set is_post = false %}
{% set feature_flags = [] %}
{% set redirect_target = "" %}
{% set announcement = "" %}

View File

@ -5,7 +5,7 @@
<div class="footer container">
{% if is_article %}
{% if is_post %}
<br>
<p id="sponsor-notice">Consider <a href="https://ewp.fyi/sponsor">sponsoring my work</a>!</p>
{% endif %}

View File

@ -27,6 +27,9 @@
{% set title = page.title %}
{% set description = page.description %}
{% set is_article = true %}
{% if page.date %}
{% set is_post = true %}
{% endif %}
{% if page.extra.uses %}
{% set feature_flags = page.extra.uses %}
{% endif %}