Skip to content

Commit

Permalink
template cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jun 19, 2024
1 parent 46f555b commit e643eca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 60 deletions.
34 changes: 1 addition & 33 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<section class="section container-fluid mt-n3 pb-6">
<div class="row justify-content-center">
<div class="col-lg-12 text-center">
<h1 class="mt-0">{{ section.title | default(value="Modern Documentation Theme") }}</h1>
<h1 class="mt-0">{{ section.title }}</h1>
</div>
<div class="col-lg-9 col-xl-8 text-center">
<p class="lead">{{ section.extra.lead | default(value="Please start setting config.toml and adding your
Expand All @@ -44,44 +44,12 @@ <h1 class="mt-0">{{ section.title | default(value="Modern Documentation Theme")
<section class="section section-sm">
<div class="container">
<div class="row justify-content-center text-center">
{% if section.extra.list %}
{% for val in section.extra.list %}
<div class="col-lg-5">
<h2 class="h4">{{ val.title }}</h2>
<p>{{ val.content | safe }}</p>
</div>
{% endfor %}
{% else %}
<div class="col-lg-5">
<h2 class="h4">Security aware</h2>
<p>Get A+ scores on <a href="https://observatory.mozilla.org/analyze/doks.netlify.app">Mozilla Observatory</a>
out of the box. Easily change the default Security Headers to suit your needs.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Fast by default ⚡️</h2>
<p>Get 100 scores on <a
href="https://googlechrome.github.io/lighthouse/viewer/?gist=7731347bb8ce999eff7428a8e763b637">Google
Lighthouse</a> by default. Doks removes unused css, prefetches links, and lazy loads images.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">SEO-ready</h2>
<p>Use sensible defaults for structured data, open graph, and Twitter cards. Or easily change the SEO settings
to your liking.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Full text search</h2>
<p>Search your Doks site with FlexSearch. Easily customize index settings and search options to your liking.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Page layouts</h2>
<p>Build pages with a landing page, blog, or documentation layout. Add custom sections and components to suit
your needs.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Dark mode</h2>
<p>Switch to a low-light UI with the click of a button. Change colors with variables to match your branding.</p>
</div>
{% endif %}
</div>
</div>
</section>
Expand Down
8 changes: 1 addition & 7 deletions templates/macros/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@


{% macro favicons() %}
<meta name="theme-color" content="{{ config.extra.theme_color | default(value="#fff") }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ get_url(path="apple-touch-icon.png") | safe }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ get_url(path="favicon-32x32.png") | safe }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ get_url(path="favicon-16x16.png") | safe }}">
{% if not config.extra.is_netlify %}
<link rel="manifest" href="{{ get_url(path="site.webmanifest") | safe }}" crossorigin>
{% endif %}
<meta name="theme-color" content="{{ config.extra.theme_color | default(value="#f00") }}">
{% endmacro %}


Expand Down
21 changes: 1 addition & 20 deletions templates/macros/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,7 @@
<input class="menu-btn order-0" type="checkbox" id="menu-btn">
<label class="menu-icon d-md-none" for="menu-btn"><span class="navicon"></span></label>
<a class="navbar-brand order-1 order-md-0 me-auto" href="{{ config.base_url | safe }}">{{ config.title }}</a>
<button id="mode" class="btn btn-link order-2 order-md-4" type="button" aria-label="Toggle mode">
<span class="toggle-dark"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-moon">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg></span>
<span class="toggle-light"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="feather feather-sun">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg></span>
</button>
<div id="mode" class="order-2 order-md-4"></div>
<ul class="navbar-nav fork-me order-3 order-md-5">
<li class="nav-item">
<a class="nav-link" href="https://github.com/vleue/build-your-own"><svg
Expand Down

0 comments on commit e643eca

Please sign in to comment.