Skip to content

Instantly share code, notes, and snippets.

@Daniel15
Created May 19, 2024 00:06
Show Gist options
  • Save Daniel15/69e39709139b6c9cc88d3794873ed1b6 to your computer and use it in GitHub Desktop.
Save Daniel15/69e39709139b6c9cc88d3794873ed1b6 to your computer and use it in GitHub Desktop.
--- C:\temp\index.hbs.orig Sat May 18 17:04:00 2024
+++ C:\src\conduit\theme\index.hbs Sat May 18 17:04:34 2024
@@ -47,6 +47,8 @@
{{#each additional_css}}
<link rel="stylesheet" href="{{ ../path_to_root }}{{ this }}">
{{/each}}
+ <link href="https://fonts.googleapis.com/css?family=Alfa+Slab+One&display=swap" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600&display=swap" rel="stylesheet">
{{#if mathjax_support}}
<!-- MathJax -->
@@ -54,6 +56,22 @@
{{/if}}
</head>
<body class="sidebar-visible no-js">
+ <!-- Conduit: Header -->
+ <header class="main-header">
+ <a href="https://conduit.rs/">
+ <div class="logo">
+ <img src="https://conduit.rs/conduit.svg" alt="logo">
+ Conduit
+ </div>
+ </a>
+ <nav>
+ <a class="nav-item subtitle-text" href="https://conduit.rs/issues/">Issues</a>
+ <a class="nav-item subtitle-text" href="https://conduit.rs/changelog/">Changelog</a>
+ <a class="nav-item subtitle-text" href="https://docs.conduit.rs">Documentation</a>
+ <a class="nav-item subtitle-text" href="https://gitlab.com/famedly/conduit">Source Code</a>
+ </nav>
+ </header>
+ <!-- End header -->
<div id="body-container">
<!-- Provide site root to javascript -->
<script>
@@ -79,9 +97,7 @@
<!-- Set the theme before any content is loaded, prevents flash -->
<script>
- var theme;
- try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
- if (theme === null || theme === undefined) { theme = default_theme; }
+ var theme = default_theme;
var html = document.querySelector('html');
html.classList.remove('{{ default_theme }}')
html.classList.add(theme);
@@ -95,14 +111,8 @@
<!-- Hide / unhide sidebar before it is displayed -->
<script>
var body = document.querySelector('body');
- var sidebar = null;
+ var sidebar = 'visible';
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
- if (document.body.clientWidth >= 1080) {
- try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
- sidebar = sidebar || 'visible';
- } else {
- sidebar = 'hidden';
- }
sidebar_toggle.checked = sidebar === 'visible';
body.classList.remove('sidebar-visible');
body.classList.add("sidebar-" + sidebar);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment