Remove Table of Contents conditionals

This commit is contained in:
Helen Chong 2024-04-13 02:43:04 +08:00
parent c75815db29
commit cd68f5fb5f
1 changed files with 3 additions and 11 deletions

View File

@ -20,9 +20,6 @@
{# CSS #}
<link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}">
{% if toc %}
<link rel="stylesheet" href="{{'/assets/css/toc.css' | url | safe}}">
{% endif %}
{% if sitemap %}
<link rel="stylesheet" href="{{'/assets/css/sitemap.css' | url | safe}}">
{% endif %}
@ -36,9 +33,6 @@
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest">
{# JavaScript #}
{% if toc %} <script src="/assets/js/toc.js" defer></script> {% endif %}
<title>{{ title }} | Leilukin's Hub</title>
</head>
<body>
@ -49,11 +43,9 @@
<navbar></navbar>
{% endrenderTemplate %}
<main>
{% if toc %}
<aside class="left-sidebar">
{{ content | toc | safe }}
</aside>
{% endif %}
<!-- <aside class="left-sidebar">
Left sidebar content here
</aside> -->
{{ content | safe }}
<!-- <aside class="right-sidebar">
Right sidebar content here