Improve automatic section generation

This commit is contained in:
Emi Simpson 2021-10-12 22:52:39 -04:00
parent 0233748d7e
commit 4b0e2d43fe
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: A12F2C2FFDC3D847
2 changed files with 11 additions and 16 deletions

View File

@ -11,8 +11,13 @@
<h1>{{ site.title }}</h1>
<p>{{ site.description }}</p>
</header>
<main style="--section-count: {{page.data.section_count}}">
{{ page.content }}
{% assign sections=page.content | split: "<p>. . .</p>" %}
<main style="--section-count: {{sections | size}}">
{% for section in sections %}
<section style="--section-number: {{ forloop.index }}">
{{ section }}
</section>
{% endfor %}
</main>
</body>
</html>

View File

@ -1,10 +1,6 @@
---
layout: landing.liquid
data:
section_count: 5
---
<section>
## Who are you???
I'm Emi, a student at [REDACTED] who loves niche communities and the software
@ -39,8 +35,7 @@ about:
* Why software A is better than software B
* Something I don't understand but that you don't care to explain
</section>
<section>
. . .
## Do you have any public projects?
@ -53,8 +48,7 @@ do pull requests.
[My GitHub](https://github.com/Alch-Emi)
</section>
<section>
. . .
## Something you made is difficult for me to use
@ -65,8 +59,7 @@ inaccessible to you, I will make it my top priority to make sure that it works
for you. Same goes if anyone, deliberately or not, uses my software to make
you uncomfortable or otherwise hurt you.
</section>
<section>
. . .
## Something you made is difficult for me to use because you used a license I don't like
@ -90,11 +83,8 @@ a different license.
If you have other concerns about this license, please first consult
the [Hippocratic License FAQ](https://firstdonoharm.dev/)
</section>
<section>
. . .
## I really like security. Do you have a GPG key?
[I mean like if you really want.](.well-known/openpgpkey/hu/xjgaxcou5ojpf3otjssi8k8mc6eswjib)
</section>