Add editorconfig and re-format navigation.html
This commit is contained in:
25
.editorconfig
Normal file
25
.editorconfig
Normal file
@@ -0,0 +1,25 @@
|
||||
# EditorConfig is awesome: https://editorconfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
insert_final_newline = false
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# JSON Files
|
||||
[*.{json}]
|
||||
indent_size = 2
|
||||
|
||||
# Markdown Files
|
||||
[*.{md,mdx}]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
# Web Files
|
||||
[*.{html,js,css}]
|
||||
indent_size = 2
|
@@ -1,58 +1,38 @@
|
||||
<!doctype html>
|
||||
<header role="banner" class="site-head">
|
||||
<nav class="navbar my-nav navbar-expand-md fixed-top">
|
||||
<div class="container-fluid">
|
||||
<!-- Brand -->
|
||||
<a class="navbar-brand" href="/">
|
||||
<img
|
||||
src="/assets/branding/logo.png"
|
||||
alt="Icon"
|
||||
width="30px"
|
||||
height="30px"
|
||||
class="d-inline-block align-top"
|
||||
/>
|
||||
<img
|
||||
src="/assets/branding/name.png"
|
||||
alt="Name"
|
||||
height="30px"
|
||||
class="d-inline-block align-center"
|
||||
/>
|
||||
</a>
|
||||
|
||||
<!-- Toggler/collapsible Button -->
|
||||
<button class="navbar-toggler"
|
||||
type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#collapsibleNavbar"
|
||||
aria-controls="collapsibleNavbar"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<!-- Navbar links -->
|
||||
<div class="collapse navbar-collapse" id="collapsibleNavbar">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||
{% for item in navigation.items %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ item.url }}"><b>{{ item.text }}</b></a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Dark Mode Toggle -->
|
||||
<!-- Reference: https://github.com/coliff/dark-mode-switch -->
|
||||
<div class="form-check form-switch">
|
||||
<input type="checkbox" class="form-check-input" id="darkSwitch" />
|
||||
<label
|
||||
class="form-check-label"
|
||||
for="darkSwitch"
|
||||
id="darkSwitchLabel"
|
||||
>Dark Mode</label
|
||||
>
|
||||
</div>
|
||||
<script src="/scripts/dark-mode-switch.min.js"></script>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<nav class="navbar my-nav navbar-expand-md fixed-top">
|
||||
<div class="container-fluid">
|
||||
<!-- Brand -->
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="/assets/branding/logo.png" alt="Icon" width="30px" height="30px"
|
||||
class="d-inline-block align-top" />
|
||||
<img src="/assets/branding/name.png" alt="Name" height="30px" class="d-inline-block align-center" />
|
||||
</a>
|
||||
|
||||
<!-- Toggler/collapsible Button -->
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar"
|
||||
aria-controls="collapsibleNavbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<!-- Navbar links -->
|
||||
<div class="collapse navbar-collapse" id="collapsibleNavbar">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||
{% for item in navigation.items %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ item.url }}"><b>{{ item.text }}</b></a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Dark Mode Toggle -->
|
||||
<!-- Reference: https://github.com/coliff/dark-mode-switch -->
|
||||
<div class="form-check form-switch">
|
||||
<input type="checkbox" class="form-check-input" id="darkSwitch" />
|
||||
<label class="form-check-label" for="darkSwitch" id="darkSwitchLabel">Dark Mode</label>
|
||||
</div>
|
||||
<script src="/scripts/dark-mode-switch.min.js"></script>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
Reference in New Issue
Block a user