Adding table of contents to docs pages

This commit is contained in:
Zachary Klosko 2020-06-05 23:07:38 -04:00
parent 68fd06f408
commit 57eb5d9c5b
32 changed files with 229 additions and 304 deletions

View file

@ -85,13 +85,13 @@ layout: default
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading text-white"> {{ page.title }} </h2>
<hr class="light my-4">
<p class="text-faded mb-4">
{{ page.blurb }}
</p>
</div>
</div>
</div>
</section>
<div class="toc">
{% toc %}
</div>
<!-- This is the main content of the page getting pulled from the MDs -->
<div class="content">
{{ content }}

View file

@ -1,51 +0,0 @@
---
layout: default
---
<html>
<head>
<style>
section{padding:2rem 0}
</style>
</head>
<body>
<section class="bg-dark">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading text-white"> {{ page.title }} </h2>
<hr class="light my-4">
<p class="text-faded mb-4">
{{ page.blurb }}
<br><small>by {{ page.author }} on {{ page.date }}</small>
</p>
</div>
</div>
</div>
</section>
{{ content }}
<!-- Work in progress... aiming to create list of blog posts -->
<section class="bg-dark">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading text-white"> Other Posts </h2>
<hr class="light my-4">
<p class="text-faded mb-4">
<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</p>
</div>
</div>
</div>
</section>
</body>
</html>

View file

@ -264,7 +264,7 @@
<div class="container">
<div class="row">
<div class="col-lg-10 mx-auto text-center">
<h2 class="section-heading">Get started with LibreTime today.</h2>
<h2 class="section-heading">Get started with LibreTime today</h2>
<hr class="my-4">
<p class="mb-5" style="text-align: center;">
Requires: 1 Ghz processor, 2 GB RAM, wired ethernet connection with static IP address, and you. What are you waiting for?