Only show sponsor banner on posts
This commit is contained in:
parent
c3ecc51b6e
commit
61d596e696
@ -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 = "" %}
|
||||
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user