Improve automatic section generation
This commit is contained in:
parent
0233748d7e
commit
4b0e2d43fe
|
@ -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>
|
||||
|
|
18
index.md
18
index.md
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue