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