Move hx attributes up, boost page/post contents
This commit is contained in:
+8
-15
@@ -13,21 +13,18 @@
|
||||
</title>
|
||||
{% page_head -%}
|
||||
</head>
|
||||
<body>
|
||||
<body hx-indicator:inherited=#loadOverlay hx-target:inherited=#content
|
||||
hx-swap:inherited="innerHTML show:top showTarget:#top">
|
||||
<header class=site-header id=top>
|
||||
<div class=header-logo>
|
||||
<a href="{{ "" | relative_link }}" hx-boost=true hx-target="#content"
|
||||
hx-swap="innerHTML show:top showTarget:#top" hx-indicator="#loadOverlay">
|
||||
<a href="{{ "" | relative_link }}" hx-boost=true>
|
||||
<img src="{{ "img/bitbadger.png" | theme_asset }}"
|
||||
alt="A cartoon badger looking at a computer screen, with his paw on a mouse"
|
||||
title="Bit Badger Solutions">
|
||||
</a>
|
||||
</div>
|
||||
<div class=header-title>
|
||||
<a href="{{ "" | relative_link }}" hx-boost=true hx-target="#content"
|
||||
hx-swap="innerHTML show:top showTarget:#top" hx-indicator="#loadOverlay">
|
||||
The Bit Badger Blog
|
||||
</a>
|
||||
<a href="{{ "" | relative_link }}" hx-boost=true>The Bit Badger Blog</a>
|
||||
</div>
|
||||
<div class="header-spacer"> </div>
|
||||
<div class="header-social">
|
||||
@@ -42,23 +39,19 @@
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
<div class=content-wrapper hx-boost=true hx-target="#content" hx-swap="innerHTML show:top showTarget:#top"
|
||||
hx-indicator="#loadOverlay">
|
||||
<div class=load-overlay id=loadOverlay>
|
||||
<h1>Loading…</h1>
|
||||
</div>
|
||||
<div class=content-wrapper>
|
||||
<div class=load-overlay id=loadOverlay><h1>Loading…</h1></div>
|
||||
<main class=content id=content role=main>
|
||||
{{ content }}
|
||||
</main>
|
||||
<aside class=blog-sidebar>
|
||||
<div>
|
||||
<div class=sidebar-head>Linux Resources</div>
|
||||
<ul><li><a href="{{ "linux/" | relative_link }}">Browse Resources</a></li></ul>
|
||||
<ul><li><a href="{{ "linux/" | relative_link }}" hx-boost=true>Browse Resources</a></li></ul>
|
||||
</div>
|
||||
<div>
|
||||
<div class=sidebar-head>Categories</div>
|
||||
<ul class=cat-list hx-boost:inherited=true hx-target:inherited="#content"
|
||||
hx-swap:inherited="innerHTML show:top showTarget:#top" hx-indicator:inherited="#loadOverlay">
|
||||
<ul class=cat-list hx-boost:inherited=true>
|
||||
{% for cat in categories -%}
|
||||
{%- assign indent = cat.parent_names | size -%}
|
||||
<li class=cat-list-item{% if indent > 0 %} style="padding-left:{{ indent }}rem;"{% endif %}>
|
||||
|
||||
Reference in New Issue
Block a user