Skip to content
Snippets Groups Projects
Commit ed74a33f authored by Philipp Schneider's avatar Philipp Schneider
Browse files

Add table of content

parent b2993122
No related branches found
No related tags found
No related merge requests found
Pipeline #71690 passed
...@@ -38,6 +38,9 @@ theme: minima ...@@ -38,6 +38,9 @@ theme: minima
plugins: plugins:
- jekyll-feed - jekyll-feed
kramdown:
toc_levels: 2..3 # Generates ToC for H2 and H3 headers
# Exclude from processing. # Exclude from processing.
# The following items will not be processed, by default. # The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to # Any item listed under the `exclude:` key here will be automatically added to
......
...@@ -7,6 +7,27 @@ ...@@ -7,6 +7,27 @@
{% include header.html %} {% include header.html %}
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
<head>
{% include head.html %}
</head>
<body>
<div class="page-content">
<div class="wrapper">
<aside class="toc-sidebar">
<nav id="toc"></nav>
</aside>
<main class="post-content">
{{ content }}
</main>
</div>
</div>
{% include footer.html %}
<script src="{{ "/assets/js/toc.js" | relative_url }}"></script>
</body>
</html>
<div class="page-content"> <div class="page-content">
<div class="wrapper"> <div class="wrapper">
{{ content }} {{ content }}
......
...@@ -51,3 +51,39 @@ $on-laptop: 800px; ...@@ -51,3 +51,39 @@ $on-laptop: 800px;
"layout", "layout",
"syntax-highlighting" "syntax-highlighting"
; ;
.toc-sidebar {
position: fixed;
left: 20px; /* Change to right: 20px; for right-side */
top: 100px;
width: 250px;
max-height: 80vh;
overflow-y: auto;
background: #f8f9fa;
padding: 15px;
border-radius: 5px;
font-size: 14px;
}
.toc-sidebar nav {
position: relative;
}
.toc-sidebar ul {
list-style-type: none;
padding-left: 0;
}
.toc-sidebar li {
margin-bottom: 5px;
}
.toc-sidebar a {
text-decoration: none;
color: #007bff;
}
.toc-sidebar a:hover {
text-decoration: underline;
}
\ No newline at end of file
...@@ -6,6 +6,9 @@ permalink: / ...@@ -6,6 +6,9 @@ permalink: /
# Programmieren für Historiker:innen II – Geistliche Karrieren im Alten Reich mit Linked Open Data erforschen (Python-Aufbaukurs) # Programmieren für Historiker:innen II – Geistliche Karrieren im Alten Reich mit Linked Open Data erforschen (Python-Aufbaukurs)
* Table of Contents
{:toc}
## Allgemeine Informationen ## Allgemeine Informationen
### Kontakt der Ansprechperson ### Kontakt der Ansprechperson
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment