feat: updates section

This commit is contained in:
Aravinth Manivannan 2022-10-30 14:04:27 +05:30
parent 707a9322aa
commit 14bcf499ed
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
4 changed files with 98 additions and 2 deletions

View file

@ -5,6 +5,7 @@ compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library # Whether to build a search index to be used later on by a JavaScript library
build_search_index = true build_search_index = true
generate_feed = true
[markdown] [markdown]
# Whether to do syntax highlighting # Whether to do syntax highlighting
@ -13,5 +14,6 @@ highlight_code = true
[extra] [extra]
anpu_menu_links = [ anpu_menu_links = [
{ url= "https://codeberg.org/SocialCoding/gitea-open-letter/src/branch/main/README.md", name = "Sign this letter" } { url= "/updates", name = "Updates" },
{ url= "https://codeberg.org/SocialCoding/gitea-open-letter/src/branch/main/README.md", name = "Sign this letter" },
] ]

View file

@ -381,6 +381,9 @@ footer {
border-top: thin solid #f1f1f1; border-top: thin solid #f1f1f1;
margin-top: 3em; margin-top: 3em;
font-size: 16px; font-size: 16px;
display: flex;
flex-direction: column;
align-items: center;
} }
ul.language-select { ul.language-select {
@ -488,7 +491,7 @@ ul.language-select > li {
display: inline; display: inline;
} }
.nav__link { .nav__link:last-child {
text-decoration: underline; text-decoration: underline;
text-decoration-color: red; text-decoration-color: red;
text-decoration-thickness: 3px; text-decoration-thickness: 3px;
@ -502,3 +505,12 @@ ul.language-select > li {
color: #a31d1d; color: #a31d1d;
border-bottom: none !important; border-bottom: none !important;
} }
.blog__list {
padding: 0;
}
.blog__post-item{
list-style: none;
background-attachment: yellow;
}

View file

@ -0,0 +1,48 @@
{% set title = "Updates | Open Letter to Gitea" %} {% set description = "The
Gitea Community is asking Gitea Owners to correct conflicts of interest and
restore Community Trust." %} {% set headline = "Restoring Trust in the Gitea
Project" %}
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body>
<div class="container">
{% include "nav.html" %}
<main id="main" tabindex="-1">
<div class="blog__container">
<h2 class="blog__title">
{{ section.title }}
<a
href="/updates/atom.xml"
target="_blank"
rel="noopener"
title="RSS"
>
<img
src="{{ get_url(path='/rss.svg', cachebust=true) }}"
alt="RSS feed icon"
/>
</a>
</h2>
<ul class="blog__list">
{% for page in section.pages %}
<li class="blog__post-item">
<a href="{{ page.permalink | safe }}" class="blog__post-link">
<h3 class="blog__post-title">{{ page.title }}</h3>
<p class="blog__post-description">
{{ page.content | safe }}
</p></a
>
</li>
{% endfor %}
</ul>
</div>
</main>
{% include "footer.html" %}
</div>
</body>
<!-- realaravinth: theme stolen from https://github.com/zbrox/anpu-zola-theme (MIT) -->
</html>

View file

@ -0,0 +1,34 @@
{% set title = "Open Letter to Gitea" %}
<!-- TODO set description and headline!!! -->
{% set description = "The Gitea Community is asking Gitea Owners to correct
conflicts of interest and restore Community Trust." %} {% set headline =
"Restoring Trust in the Gitea Project" %}
<!DOCTYPE html>
<html lang="{% if lang %}{{ lang }}{% else %}en{% endif %}">
{% include "head.html" %}
<body>
<div class="container">
{% include "nav.html" %}
<main id="main" tabindex="-1">
{% block content %}
<article class="post">
<h2 class="page__group-title">{{ page.title }}</h2>
<img
class="header-img"
height="300px"
width="300px"
src="/logo.png"
alt="Gitea Open Letter logo"
/>
<div class="content">{{ page.content | safe }}</div>
</article>
{% endblock content %}
</main>
</div>
{% include "footer.html" %}
</body>
<!-- realaravinth: theme stolen from https://github.com/zbrox/anpu-zola-theme (MIT) -->
</html>