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 cat README.md | tail -n +5 >> $file
} }
prep_status() { prep_status() {
mkdir content/updates mkdir content/updates
@ -49,5 +51,18 @@ prep_status() {
python ./scripts/gen.py 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 init
prep_status prep_status
prep_closing

View File

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