move prose pages to the top level #63

Merged
hsjobeki merged 11 commits from fricklerhandwerk/clan-homepage:cleanup-templates into main 2024-04-15 18:16:58 +00:00
31 changed files with 78 additions and 146 deletions

View File

@ -26,7 +26,7 @@ taxonomies = [
# 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
# When set to "true", a search index is built from the pages and section # When set to "true", a search index is built from the pages and section
# content for `default_language`. # content for `default_language`.
build_search_index = true build_search_index = false
[search] [search]
# Whether to include the title of the page/section in the index # Whether to include the title of the page/section in the index
@ -103,30 +103,11 @@ url = "https://git.clan.lol/clan/clan-core"
post = "v0.1.0" post = "v0.1.0"
weight = 20 weight = 20
# Menu items
[[extra.menu.main]]
name = "Docs"
section = "docs"
url = "/docs/getting-started/introduction/"
weight = 10
[[extra.menu.main]]
name = "Blog"
section = "blog"
url = "/blog/"
weight = 20
# Footer contents # Footer contents
[extra.footer] [extra.footer]
info = 'Powered by <a href="https://www.getzola.org/">Zola</a>, and <a href="https://github.com/aaranxu/adidoks">AdiDoks</a>' info = 'Powered by <a href="https://www.getzola.org/">Zola</a>, and <a href="https://github.com/aaranxu/adidoks">AdiDoks</a>'
[[extra.footer.nav]] [[extra.footer.nav]]
name = "Privacy" name = "Privacy Policy"
url = "/privacy-policy/" url = "/privacy-policy/"
weight = 10 weight = 10
[[extra.footer.nav]]
name = "The Vision"
url = "/docs/thevision"
weight = 20

View File

@ -12,15 +12,33 @@ repo_url = "https://git.clan.lol/clan/"
# Menu items # Menu items
[[extra.menu.main]] [[extra.menu.main]]
name = "Docs" name = "Vision"
section = "vision"
url = "/vision"
weight = 10
[[extra.menu.main]]
name = "Architecture"
section = "srchitecture"
url = "/architecture"
weight = 10
[[extra.menu.main]]
name = "Documentation"
section = "docs" section = "docs"
url = "/docs/thevision" url = "/docs"
weight = 10
[[extra.menu.main]]
name = "Contributing"
section = "contributing"
url = "/contributing"
weight = 10 weight = 10
[[extra.menu.main]] [[extra.menu.main]]
name = "Blog" name = "Blog"
section = "blog" section = "blog"
url = "/blog/" url = "/blog"
weight = 20 weight = 20
[[extra.list]] [[extra.list]]

View File

@ -1,17 +1,17 @@
+++ +++
title = "Technical Overview" title = "Architecture"
description = "Overview of cLAN's architecture, components and security" description = "Overview of cLAN's architecture, components and security"
date = 2021-05-01T18:10:00+00:00 date = 2021-05-01T18:10:00+00:00
updated = 2021-07-13T18:10:00+00:00 updated = 2021-07-13T18:10:00+00:00
draft = false draft = false
weight = 410 weight = 410
sort_by = "weight" sort_by = "weight"
template = "docs/page.html" template = "section.html"
[extra] [extra]
lead = "Overview of cLAN's architecture, components and security" lead = "Overview of cLAN's architecture, components and security"
toc = true toc = true
top = false section = "architecture"
+++ +++

View File

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,21 @@
+++
title = "Contributing"
description = "Contribute to cLAN, improve documentation, or submit to showcase."
date = 2025-05-01T18:00:00+00:00
updated = 2021-05-01T18:00:00+00:00
template = "section.html"
sort_by = "weight"
weight = 18
section = "contributing"
+++
👉 Explore the source code at [git.clan.lol/clan](https://git.clan.lol/clan)
👉 [Browse issues](https://git.clan.lol/clan/clan-core/issues)
👉 [Create a new issue](https://git.clan.lol/clan/clan-core/issues/new)
👉 Source code for this site: [git.clan.lol/clan/clan-homepage](https://git.clan.lol/clan/clan-homepage/src/branch/main/content/docs)
👉 Join [cLAN on Matrix](https://matrix.to/#/#clan:lassul.us) to contact maintainers

View File

@ -1,6 +1,6 @@
+++ +++
title = "Docs" title = "Documentation"
description = "The documents of the AdiDoks theme." description = "cLAN Documentation"
date = 2025-05-01T08:00:00+00:00 date = 2025-05-01T08:00:00+00:00
updated = 2021-05-01T08:00:00+00:00 updated = 2021-05-01T08:00:00+00:00
sort_by = "weight" sort_by = "weight"

View File

@ -1,10 +0,0 @@
+++
title = "Contributing"
description = "Find out how to contribute to cLAN."
date = 2025-05-01T18:00:00+00:00
updated = 2021-05-01T18:00:00+00:00
template = "docs/section.html"
sort_by = "weight"
weight = 18
draft = false
+++

View File

@ -1,28 +0,0 @@
+++
title = "How to Contribute"
description = "Contribute to cLAN, improve documentation, or submit to showcase."
date = 2021-05-01T18:10:00+00:00
updated = 2021-05-01T18:10:00+00:00
draft = false
weight = 410
sort_by = "weight"
template = "docs/page.html"
[extra]
lead = "Contribute to cLAN, improve documentation, or submit to showcase."
toc = true
top = false
+++
## Contribute to the code
👉 Explore our repos at [git.clan.lol/clan](https://git.clan.lol/clan)
👉 [Browse issues](https://git.clan.lol/clan/clan-core/issues)
👉 [Create a new issue](https://git.clan.lol/clan/clan-core/issues/new)
## Improve documentation
👉 The source code for this site lives in [git.clan.lol/clan/clan-homepage](https://git.clan.lol/clan/clan-homepage/src/branch/main/content/docs)

View File

@ -1,10 +0,0 @@
+++
title = "Help"
description = "Get help on AdiDoks."
date = 2025-05-01T19:00:00+00:00
updated = 2021-05-01T19:00:00+00:00
template = "docs/section.html"
sort_by = "weight"
weight = 19
draft = false
+++

View File

@ -1,32 +0,0 @@
+++
title = "FAQ"
description = "Answers to frequently asked questions."
date = 2021-05-01T19:30:00+00:00
updated = 2021-05-01T19:30:00+00:00
draft = false
weight = 30
sort_by = "weight"
template = "docs/page.html"
[extra]
lead = "Answers to frequently asked questions."
toc = true
top = false
+++
## Keyboard shortcuts for search?
- focus: `/`
- select: `↓` and `↑`
- open: `Enter`
- close: `Esc`
## Other documentation?
- [https://nixos.org](https://nixos.org/)
## Contact the creator?
Send an E-mail:
- <admins@clan.lol>

View File

@ -9,7 +9,7 @@ draft = false
class = "page single" class = "page single"
+++ +++
__TLDR__: We do not use cookies and we do not collect any personal data. __TL;DR__: We do not use cookies and we do not collect any personal data.
## Website visitors ## Website visitors
@ -22,6 +22,4 @@ __TLDR__: We do not use cookies and we do not collect any personal data.
## Contact us ## Contact us
[Contact us](mailto:admin@clan.lol) if you have any questions. [Contact us on Matrix](https://matrix.to/#/#clan:lassul.us) if you have any questions.
Effective Date: _4th July 2023_

View File

@ -6,8 +6,10 @@ updated = 2021-05-01T19:30:00+00:00
draft = false draft = false
weight = 30 weight = 30
sort_by = "weight" sort_by = "weight"
paginator.next = "docs/overview/index.md" template = "section.html"
template = "docs/page.html"
[extra]
section = "vision"
+++ +++
@ -38,5 +40,3 @@ The core idea is to ensure service decentralization without a single point of fa
### Administrative Control ### Administrative Control
Within a cLAN, administrators define the configuration file and have control over who becomes part of the network. Within a cLAN, administrators define the configuration file and have control over who becomes part of the network.
Go to [Technical Overview](@/docs/overview/index.md) to see more indepth details of our work.

View File

@ -6,7 +6,7 @@
{% block header %} {% block header %}
{# This value is matched by the config.extra.menu.main~url #} {# This value is matched by the config.extra.menu.main~url #}
{% set current_section = "docs" %} {% set current_section = page.extra.section %}
{{ macros_header::header(current_section=current_section)}} {{ macros_header::header(current_section=current_section)}}
{% endblock header %} {% endblock header %}

View File

@ -51,12 +51,6 @@
<a class="nav-link" href="{{ get_url(path=val.url, trailing_slash=true) | safe }}">{{ val.name }}</a> <a class="nav-link" href="{{ get_url(path=val.url, trailing_slash=true) | safe }}">{{ val.name }}</a>
</li> </li>
{% endfor %} {% endfor %}
{% elif config.extra.menu.main %}
{% for val in config.extra.menu.main %}
<li class="nav-item{% if current_section == val.section %} {{ current_section }} active{% endif %}">
<a class="nav-link" href="{{ get_url(path=val.url, trailing_slash=true) | safe }}">{{ val.name }}</a>
</li>
{% endfor %}
{% else %} {% else %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{{ get_url(path="docs", trailing_slash=true) | safe }}">Docs</a> <a class="nav-link" href="{{ get_url(path="docs", trailing_slash=true) | safe }}">Docs</a>