move prose pages to the top level #63
23
config.toml
|
@ -26,7 +26,7 @@ taxonomies = [
|
|||
# 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
|
||||
# content for `default_language`.
|
||||
build_search_index = true
|
||||
build_search_index = false
|
||||
|
||||
[search]
|
||||
# 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"
|
||||
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
|
||||
[extra.footer]
|
||||
info = 'Powered by <a href="https://www.getzola.org/">Zola</a>, and <a href="https://github.com/aaranxu/adidoks">AdiDoks</a>'
|
||||
|
||||
[[extra.footer.nav]]
|
||||
name = "Privacy"
|
||||
name = "Privacy Policy"
|
||||
url = "/privacy-policy/"
|
||||
weight = 10
|
||||
|
||||
[[extra.footer.nav]]
|
||||
name = "The Vision"
|
||||
url = "/docs/thevision"
|
||||
weight = 20
|
||||
|
|
|
@ -12,15 +12,33 @@ repo_url = "https://git.clan.lol/clan/"
|
|||
|
||||
# Menu items
|
||||
[[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"
|
||||
url = "/docs/thevision"
|
||||
url = "/docs"
|
||||
weight = 10
|
||||
|
||||
[[extra.menu.main]]
|
||||
name = "Contributing"
|
||||
section = "contributing"
|
||||
url = "/contributing"
|
||||
weight = 10
|
||||
|
||||
[[extra.menu.main]]
|
||||
name = "Blog"
|
||||
section = "blog"
|
||||
url = "/blog/"
|
||||
url = "/blog"
|
||||
weight = 20
|
||||
|
||||
[[extra.list]]
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
+++
|
||||
title = "Technical Overview"
|
||||
title = "Architecture"
|
||||
description = "Overview of cLAN's architecture, components and security"
|
||||
date = 2021-05-01T18:10:00+00:00
|
||||
updated = 2021-07-13T18:10:00+00:00
|
||||
draft = false
|
||||
weight = 410
|
||||
sort_by = "weight"
|
||||
template = "docs/page.html"
|
||||
template = "section.html"
|
||||
|
||||
[extra]
|
||||
lead = "Overview of cLAN's architecture, components and security"
|
||||
toc = true
|
||||
top = false
|
||||
section = "architecture"
|
||||
+++
|
||||
|
||||
|
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 174 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
21
content/contributing/_index.md
Normal 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
|
|
@ -1,6 +1,6 @@
|
|||
+++
|
||||
title = "Docs"
|
||||
description = "The documents of the AdiDoks theme."
|
||||
title = "Documentation"
|
||||
description = "cLAN Documentation"
|
||||
date = 2025-05-01T08:00:00+00:00
|
||||
updated = 2021-05-01T08:00:00+00:00
|
||||
sort_by = "weight"
|
||||
|
|
|
@ -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
|
||||
+++
|
|
@ -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)
|
|
@ -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
|
||||
+++
|
|
@ -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>
|
|
@ -9,7 +9,7 @@ draft = false
|
|||
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
|
||||
|
||||
|
@ -22,6 +22,4 @@ __TLDR__: We do not use cookies and we do not collect any personal data.
|
|||
|
||||
## Contact us
|
||||
|
||||
[Contact us](mailto:admin@clan.lol) if you have any questions.
|
||||
|
||||
Effective Date: _4th July 2023_
|
||||
[Contact us on Matrix](https://matrix.to/#/#clan:lassul.us) if you have any questions.
|
||||
|
|
|
@ -6,8 +6,10 @@ updated = 2021-05-01T19:30:00+00:00
|
|||
draft = false
|
||||
weight = 30
|
||||
sort_by = "weight"
|
||||
paginator.next = "docs/overview/index.md"
|
||||
template = "docs/page.html"
|
||||
template = "section.html"
|
||||
|
||||
[extra]
|
||||
section = "vision"
|
||||
+++
|
||||
|
||||
|
||||
|
@ -38,5 +40,3 @@ The core idea is to ensure service decentralization without a single point of fa
|
|||
### Administrative Control
|
||||
|
||||
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.
|
|
@ -1,17 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block seo %}
|
||||
{{ super() }}
|
||||
{{ super() }}
|
||||
{% set title = "404 Page not found" %}
|
||||
|
||||
|
||||
{% if config.title %}
|
||||
{% set title_addition = title_separator ~ config.title %}
|
||||
{% else %}
|
||||
{% set title_addition = "" %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% set description = config.description %}
|
||||
|
||||
|
||||
{{ macros_head::seo(title=title, title_addition=title_addition, description=description, is_404=true) }}
|
||||
{% endblock seo %}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% block seo %}
|
||||
{% set author_name_in_url = term.permalink | trim_end_matches(pat="/") | split(pat="/") | last %}
|
||||
{% set section = get_section(path="authors/_index.md") %}
|
||||
|
||||
|
||||
{% if section.extra.author_pages[author_name_in_url] %}
|
||||
{% set_global author_page = get_page(path=section.extra.author_pages[author_name_in_url])%}
|
||||
{% endif %}
|
||||
|
@ -12,26 +12,26 @@
|
|||
{% else %}
|
||||
{% set_global title = term.name %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% set title_addition = "" %}
|
||||
{% if config.extra.title_separator %}
|
||||
{% set title_separator = " " ~ config.extra.title_separator ~ " " %}
|
||||
{% else %}
|
||||
{% set title_separator = " | " %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if config.title %}
|
||||
{% set title_addition = title_separator ~ config.title %}
|
||||
{% else %}
|
||||
{% set title_addition = "" %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if author_page and author_page.description %}
|
||||
{% set description = author_page.description %}
|
||||
{% else %}
|
||||
{% set description = config.description %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{{ macros_head::seo(title=title, title_addition=title_addition, description=description) }}
|
||||
{% endblock seo %}
|
||||
|
||||
|
|
|
@ -49,6 +49,6 @@
|
|||
{{ macros_footer::footer() }}
|
||||
{% endblock footer %}
|
||||
|
||||
{{ macros_js::javascript() }}
|
||||
{{ macros_js::javascript() }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{% block header %}
|
||||
{# 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)}}
|
||||
{% endblock header %}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% else %}
|
||||
{% set title = "" %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if config.extra.title_addition and title %}
|
||||
{% set title_addition = title_separator ~ config.extra.title_addition %}
|
||||
{% elif config.extra.title_addition %}
|
||||
|
@ -16,9 +16,9 @@
|
|||
{% else %}
|
||||
{% set title_addition = "" %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% set description = config.description %}
|
||||
|
||||
|
||||
{{ macros_head::seo(title=title, title_addition=title_addition, description=description, is_home=true) }}
|
||||
{% endblock seo %}
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
|||
<div class="col-lg-5">
|
||||
<h2 class="h4">Security aware</h2>
|
||||
<p>Get A+ scores on <a href="https://observatory.mozilla.org/analyze/doks.netlify.app">Mozilla Observatory</a> out of the box. Easily change the default Security Headers to suit your needs.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<h2 class="h4">Fast by default ⚡️</h2>
|
||||
<p>Get 100 scores on <a href="https://googlechrome.github.io/lighthouse/viewer/?gist=7731347bb8ce999eff7428a8e763b637">Google Lighthouse</a> by default. Doks removes unused css, prefetches links, and lazy loads images.</p>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% if index.pages %}
|
||||
<h3>{{ index.title }}</h3>
|
||||
<ul class="list-unstyled">
|
||||
{% for page in index.pages %}
|
||||
{% for page in index.pages %}
|
||||
<li><a class="docs-link{% if current_url == page.permalink %} active{% endif %}" href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -17,7 +17,7 @@
|
|||
{% if subsection.pages %}
|
||||
<h3>{{ subsection.title }}</h3>
|
||||
<ul class="list-unstyled">
|
||||
{% for page in subsection.pages %}
|
||||
{% for page in subsection.pages %}
|
||||
<li><a class="docs-link{% if current_url == page.permalink %} active{% endif %}" href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -51,12 +51,6 @@
|
|||
<a class="nav-link" href="{{ get_url(path=val.url, trailing_slash=true) | safe }}">{{ val.name }}</a>
|
||||
</li>
|
||||
{% 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 %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ get_url(path="docs", trailing_slash=true) | safe }}">Docs</a>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
{% else %}
|
||||
{% set title = config.title %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if page.description %}
|
||||
{% set description = page.description %}
|
||||
{% else %}
|
||||
|
@ -26,10 +26,10 @@
|
|||
{% else %}
|
||||
{% set page_section = "" %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{{ macros_head::seo(title=title, title_addition=title_addition, description=description, type="article", is_page=true, created_time=created_time, updated_time=updated_time, page_section=page_section) }}
|
||||
{% endblock seo %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
{% if section.extra.class %}
|
||||
{% set page_class = page.extra.class %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% block seo %}
|
||||
{{ super() }}
|
||||
{% set title_addition = "" %}
|
||||
|
||||
|
||||
{% if section.title and config.title %}
|
||||
{% set title = section.title %}
|
||||
{% set title_addition = title_separator ~ config.title %}
|
||||
|
@ -14,13 +14,13 @@
|
|||
{% else %}
|
||||
{% set title = config.title %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if section.description %}
|
||||
{% set description = section.description %}
|
||||
{% else %}
|
||||
{% set description = config.description %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{{ macros_head::seo(title=title, title_addition=title_addition, description=description) }}
|
||||
{% endblock seo %}
|
||||
|
||||
|
|