I think I'm almost at a functional ui if I do the docker compose now but it's annoying

This commit is contained in:
Pagwin 2023-09-13 17:06:00 -04:00
parent 4aadacac1e
commit 149ce0df22
No known key found for this signature in database
GPG key ID: F5FB283DD4B1A998
4 changed files with 13 additions and 0 deletions

View file

@ -29,3 +29,8 @@ theme = "liquorice"
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[security]
[security.funcs]
# first 2 vars are things hugo has built in and I'm keeping to avoid breakage
getenv = ['^HUGO_', '^CI$', "COMMENTS_BACKEND"]

View file

@ -37,6 +37,7 @@
</div>
{{ partial "author.html" .}}
{{ partial "comments.html" . }}
<div class="row li-pagination">
<div class="eight columns">
<div class="li-pagination-previous">

View file

@ -0,0 +1,6 @@
<noscript>
you need to enable javascript to view comments(or be a wizard)
</noscript>
{{ cond (not (eq (os.Getenv "COMMENTS_BACKEND") "")) (safeHTML (printf "<div hx-get='/comments/%s' hx-target='this' hx-trigger='load' hx-swap='outerHTML'></div>" .File.Path)) ""}}

View file

@ -10,6 +10,7 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/liquorice.css" />
{{ cond (eq .Page.Kind "page") (safeHTML (printf "<link rel='stylesheet' href='%s/css/single.css'>" .Site.BaseURL)) "" }}
<script src="https://unpkg.com/htmx.org@1.9.5" integrity="sha384-xcuj3WpfgjlKF+FXhSQFQ0ZNr39ln+hwjN3npfM9VBnUskLolQAcN80McRIVOPuO" crossorigin="anonymous"></script>
<script src="https://unpkg.com/htmx.org/dist/ext/json-enc.js"></script>
<link rel="icon" href="{{ .Site.BaseURL }}/img/icon.png" />
<meta property="og:title" content="{{ .Title }}"/>
<meta property="og:type" content="website"/>