mirror of
https://github.com/Pagwin-Fedora/website.git
synced 2025-07-17 22:45:42 +00:00
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:
parent
4aadacac1e
commit
149ce0df22
4 changed files with 13 additions and 0 deletions
|
@ -29,3 +29,8 @@ theme = "liquorice"
|
||||||
[markup.goldmark]
|
[markup.goldmark]
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
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"]
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "author.html" .}}
|
{{ partial "author.html" .}}
|
||||||
|
{{ partial "comments.html" . }}
|
||||||
<div class="row li-pagination">
|
<div class="row li-pagination">
|
||||||
<div class="eight columns">
|
<div class="eight columns">
|
||||||
<div class="li-pagination-previous">
|
<div class="li-pagination-previous">
|
||||||
|
|
6
layouts/partials/comments.html
Normal file
6
layouts/partials/comments.html
Normal 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)) ""}}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/liquorice.css" />
|
<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)) "" }}
|
{{ 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@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" />
|
<link rel="icon" href="{{ .Site.BaseURL }}/img/icon.png" />
|
||||||
<meta property="og:title" content="{{ .Title }}"/>
|
<meta property="og:title" content="{{ .Title }}"/>
|
||||||
<meta property="og:type" content="website"/>
|
<meta property="og:type" content="website"/>
|
||||||
|
|
Loading…
Reference in a new issue