Add optional table of contents

This commit is contained in:
Ethan Yoo 2024-04-14 12:08:25 -04:00
parent c44efc6cab
commit 497278af97
Signed by: ethan
GPG Key ID: 70596474C5D20F85
2 changed files with 9 additions and 4 deletions

View File

@ -3,9 +3,10 @@ title: Resources
date: 2024-04-14 date: 2024-04-14
layout: permalink layout: permalink
description: "Browse the resources I use and recommend, including articles and free software." description: "Browse the resources I use and recommend, including articles and free software."
toc: true
--- ---
## Educational resources and open licenses ## Educational resources and open licenses {#OER}
[Creative Commons](https://creativecommons.org/) [Creative Commons](https://creativecommons.org/)
@ -15,7 +16,7 @@ description: "Browse the resources I use and recommend, including articles and f
[Saylor Academy: College Success](https://learn.saylor.org/course/view.php?id=700) [Saylor Academy: College Success](https://learn.saylor.org/course/view.php?id=700)
## Recommended reading ## Recommended reading {#reading}
[About Feeds: What is a feed?](https://aboutfeeds.com/) [About Feeds: What is a feed?](https://aboutfeeds.com/)
@ -40,7 +41,7 @@ Lydia X. Z. Brown on Autistic Hoya
[Use plaintext email.](https://useplaintext.email/) [Use plaintext email.](https://useplaintext.email/)
## Recommended software ## Recommended software {#software}
I rely on [free software](https://en.wikipedia.org/wiki/Free_software) every day. Described below are the services and tools I use most often. I rely on [free software](https://en.wikipedia.org/wiki/Free_software) every day. Described below are the services and tools I use most often.
@ -120,7 +121,7 @@ Licensing: GNU Affero General Public License v3.0\
Please feel free to contact me for further alternatives or public instances of self-hostable services! Please feel free to contact me for further alternatives or public instances of self-hostable services!
## For more content ## For more content {#other}
[Read why, as of November 2, 2020,](/cloudflare/) I host this website on [NearlyFreeSpeech.NET.](https://www.nearlyfreespeech.net/) [Read why, as of November 2, 2020,](/cloudflare/) I host this website on [NearlyFreeSpeech.NET.](https://www.nearlyfreespeech.net/)

View File

@ -3,6 +3,10 @@
<article> <article>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<div> <div>
{{ if .Params.toc }}
<h2>Contents</h2>
<aside>{{ .TableOfContents }}</aside>
{{ end }}
{{ .Content }} {{ .Content }}
</div> </div>
</article> </article>