From 14bcf499ed4c05f54a1ee1816dd3c6bf16cab2c1 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 30 Oct 2022 14:04:27 +0530 Subject: [PATCH] feat: updates section --- config.toml | 4 ++- sass/main.scss | 14 ++++++++++- templates/updates/index.html | 48 ++++++++++++++++++++++++++++++++++++ templates/updates/post.html | 34 +++++++++++++++++++++++++ 4 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 templates/updates/index.html create mode 100644 templates/updates/post.html diff --git a/config.toml b/config.toml index c0fa40c..94d9bc5 100644 --- a/config.toml +++ b/config.toml @@ -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" }, ] diff --git a/sass/main.scss b/sass/main.scss index 22c6c25..c6bfbd6 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -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; +} diff --git a/templates/updates/index.html b/templates/updates/index.html new file mode 100644 index 0000000..68e2487 --- /dev/null +++ b/templates/updates/index.html @@ -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" %} + + + + {% include "head.html" %} + + +
+ {% include "nav.html" %} + +
+
+

+ {{ section.title }} + + RSS feed icon + +

+ +
+
+ {% include "footer.html" %} +
+ + + diff --git a/templates/updates/post.html b/templates/updates/post.html new file mode 100644 index 0000000..85d1e44 --- /dev/null +++ b/templates/updates/post.html @@ -0,0 +1,34 @@ +{% set title = "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" %} + + + + {% include "head.html" %} + + +
+ {% include "nav.html" %} + +
+ {% block content %} +
+

{{ page.title }}

+ Gitea Open Letter logo +
{{ page.content | safe }}
+
+ {% endblock content %} +
+
+ {% include "footer.html" %} + + +