feat: publish closing remarks

NOTE: this setup will break if the title/level 1 heading changes
This commit is contained in:
Aravinth Manivannan 2022-10-30 21:49:42 +05:30
parent e89df7ac66
commit 21e1b822bf
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 33 additions and 6 deletions

View file

@ -31,6 +31,8 @@ init() {
cat README.md | tail -n +5 >> $file
}
prep_status() {
mkdir content/updates
@ -49,5 +51,18 @@ prep_status() {
python ./scripts/gen.py
}
prep_closing() {
closing="content/closing.md"
touch $closing
echo "+++" > $closing
echo 'title = "Gitea Ltd confirms its takeover of the Gitea project"' >> $closing
echo "+++" >> $closing
echo "" >> $closing
cat closing.md >> $closing
}
init
prep_status
prep_closing

View file

@ -20,7 +20,7 @@ conflicts of interest and restore Community Trust." %} {% set headline =
</nav>
</header>
<main id="main" tabindex="-1">
{% block content %} {% for page in section.pages %}
{% block content %}
<article class="post">
<img
class="header-img"
@ -29,19 +29,31 @@ conflicts of interest and restore Community Trust." %} {% set headline =
src="/logo.png"
alt="Gitea Open Letter logo"
/>
{% for page in section.pages %}
<p class="banner--highlight">
{% if page.title == "Gitea Ltd confirms its takeover of the Gitea project" %}
<div class="content">{{ page.content | safe }}</div>
{% endif %}
</p>
{% if page.title == "Gitea Open Letter" %}
<p class="banner">
Click
<a
href="{{ get_url(path='updates/atom.xml', trailing_slash=false) }}"
><button class="banner__btn">here</button>
</a
>
</a>
to subscribe for daily updates!
</p>
<br />
<hr />
<br />
<div class="content">{{ page.content | safe }}</div>
{% endif %} {% endfor %}
</article>
{% endfor %} {% endblock content %}
{% endblock content %}
</main>
</div>