diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-02-23 09:48:47 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-02-23 09:48:47 +0100 |
commit | 8e3fee33afed8cb6a0945288f4773363a4d68912 (patch) | |
tree | 2dad2a0965eb44f68fef9ad08dc79d1cd25494ae /docs/index.md | |
parent | Merge pull request #31445 from keszybz/slow-tests (diff) | |
download | systemd-8e3fee33afed8cb6a0945288f4773363a4d68912.tar.xz systemd-8e3fee33afed8cb6a0945288f4773363a4d68912.zip |
Revert "docs: use collections to structure the data"
This reverts commit 5e8ff010a1436d33bbf3c108335af6e0b4ff7a2a.
This broke all the URLs, we can't have that. (And actually, we probably don't
_want_ to make the change either. It's nicer to have all the pages in one
directory, so one doesn't have to figure out to which collection the page
belongs.)
Diffstat (limited to 'docs/index.md')
-rw-r--r-- | docs/index.md | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/docs/index.md b/docs/index.md index cd3916ca32..3c05c93550 100644 --- a/docs/index.md +++ b/docs/index.md @@ -12,27 +12,17 @@ systemd provides aggressive parallelization capabilities, uses socket and D-Bus Other parts include a logging daemon, utilities to control basic system configuration like the hostname, date, locale, maintain a list of logged-in users and running containers and virtual machines, system accounts, runtime directories and settings, and daemons to manage simple network configuration, network time synchronization, log forwarding, and name resolution. --- -## Project -{% for page in site.data.project %} -* [{{ page.title }}]({{ page.url | relative_url }}){% endfor %} - -<!-- Collections --> -{% for c in site.collections %} -<!-- hide autegenerated posts collection --> -{% if c.label != "posts" %} -## {{ c.title }} -{% for item in site[c.label] %} -* [{{ item.title }}]({{ item.url | relative_url }}){% endfor %} -{% endif %} -{% endfor %} -<!-- external pages --> -{% assign external_pages = site.data.extra_pages | group_by:"category" %} +{% assign by_category = site.pages | group_by:"category" %} +{% assign extra_pages = site.data.extra_pages | group_by:"category" %} +{% assign merged = by_category | concat: extra_pages | sort:"name" %} -{% for category in external_pages %} -## {{ category.name }} -{% assign sorted = category.items | sort:"title" %}{% for page in sorted %} +{% for pair in merged %} + {% if pair.name != "" %} +## {{ pair.name }} +{% assign sorted = pair.items | sort:"title" %}{% for page in sorted %} * [{{ page.title }}]({{ page.url | relative_url }}){% endfor %} + {% endif %} {% endfor %} ## See also |