Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Frick authored and Evan Frick committed Aug 31, 2024
1 parent 6fb6e57 commit 22ad485
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title | escape }}</title>
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/custom.scss' | relative_url }}">
<style>
body {
font-family: 'Courier New', Courier, monospace;
Expand All @@ -14,12 +14,17 @@
<body>
<header>
<nav>
<ul>
{% for heading in site.data.toc %}
<li><a href="#{{ heading.id }}">{{ heading.content }}</a></li>
{% endfor %}
</ul>
</nav>
<ul>
{% for section in site.pages %}
{% if section.url == page.url %}
{% assign toc = section.content | extract_titles: "h2" %}
{% for item in toc %}
<li><a href="#{{ item.id }}">{{ item.text }}</a></li>
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</nav>
</header>
<main>
{{ content }}
Expand Down

0 comments on commit 22ad485

Please sign in to comment.