feat: updates section
This commit is contained in:
parent
707a9322aa
commit
14bcf499ed
4 changed files with 98 additions and 2 deletions
|
@ -5,6 +5,7 @@ compile_sass = true
|
|||
|
||||
# Whether to build a search index to be used later on by a JavaScript library
|
||||
build_search_index = true
|
||||
generate_feed = true
|
||||
|
||||
[markdown]
|
||||
# Whether to do syntax highlighting
|
||||
|
@ -13,5 +14,6 @@ highlight_code = true
|
|||
|
||||
[extra]
|
||||
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" },
|
||||
]
|
||||
|
|
|
@ -381,6 +381,9 @@ footer {
|
|||
border-top: thin solid #f1f1f1;
|
||||
margin-top: 3em;
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
ul.language-select {
|
||||
|
@ -488,7 +491,7 @@ ul.language-select > li {
|
|||
display: inline;
|
||||
}
|
||||
|
||||
.nav__link {
|
||||
.nav__link:last-child {
|
||||
text-decoration: underline;
|
||||
text-decoration-color: red;
|
||||
text-decoration-thickness: 3px;
|
||||
|
@ -502,3 +505,12 @@ ul.language-select > li {
|
|||
color: #a31d1d;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
.blog__list {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.blog__post-item{
|
||||
list-style: none;
|
||||
background-attachment: yellow;
|
||||
}
|
||||
|
|
48
templates/updates/index.html
Normal file
48
templates/updates/index.html
Normal 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>
|
34
templates/updates/post.html
Normal file
34
templates/updates/post.html
Normal 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>
|
Loading…
Reference in a new issue