mirror of
https://github.com/BBaoVanC/bbaovanc.com.git
synced 2025-10-03 14:45:16 -05:00
Consolidate template/style code into bobatheme
Keep this repo clean by only having it contain actual content.
This commit is contained in:
@@ -1,121 +0,0 @@
|
|||||||
/* Isso styling */
|
|
||||||
h4.isso-thread-heading {
|
|
||||||
color: var(--text-0);
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-comment:not(:first-of-type),
|
|
||||||
.isso-follow-up .isso-comment {
|
|
||||||
border-color: var(--background-3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-author,
|
|
||||||
.isso-page-author-suffix,
|
|
||||||
.isso-comment-footer,
|
|
||||||
.isso-comment-footer .isso-votes {
|
|
||||||
color: var(--text-gray-0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-comment-header .isso-spacer,
|
|
||||||
.isso-spacer:hover,
|
|
||||||
.isso-permalink,
|
|
||||||
.isso-permalink:hover {
|
|
||||||
color: var(--text-gray-1) !important;
|
|
||||||
}
|
|
||||||
a.isso-author:hover,
|
|
||||||
.isso-permalink:hover {
|
|
||||||
text-decoration: underline !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-comment.isso-is-page-author > .isso-text-wrapper {
|
|
||||||
background-color: var(--background-accent-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-feedlink:hover,
|
|
||||||
.isso-reply {
|
|
||||||
color: var(--link-0) !important;
|
|
||||||
text-shadow: unset !important;
|
|
||||||
}
|
|
||||||
.isso-reply:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-text pre,
|
|
||||||
.isso-text :not(pre) > code {
|
|
||||||
background-color: var(--background-2);
|
|
||||||
border: none;
|
|
||||||
padding: 2px 4px;
|
|
||||||
border-radius: 5px;
|
|
||||||
/* thanks isso.css for setting this to 85% for whatever reason */
|
|
||||||
font-size: 0.75em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-input-wrapper input,
|
|
||||||
.isso-post-action > input,
|
|
||||||
.isso-textarea,
|
|
||||||
.isso-preview {
|
|
||||||
color: var(--text-1);
|
|
||||||
background-color: var(--background-1);
|
|
||||||
border-color: var(--background-2) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-input-wrapper input:focus,
|
|
||||||
.isso-textarea:focus {
|
|
||||||
border-color: var(--background-3) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-post-action > input:hover {
|
|
||||||
background-color: var(--background-2);
|
|
||||||
}
|
|
||||||
.isso-post-action > input:focus,
|
|
||||||
.isso-post-action > input:active {
|
|
||||||
background-color: var(--background-3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-textarea {
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
.isso-input-wrapper {
|
|
||||||
display: inline-flex;
|
|
||||||
flex-direction: column;
|
|
||||||
margin-right: 4px;
|
|
||||||
max-width: 25%;
|
|
||||||
}
|
|
||||||
.isso-input-wrapper input {
|
|
||||||
order: 1;
|
|
||||||
}
|
|
||||||
.isso-input-wrapper label {
|
|
||||||
order: 2;
|
|
||||||
font-size: small;
|
|
||||||
}
|
|
||||||
.isso-post-action {
|
|
||||||
margin-left: 4px;
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 600px) {
|
|
||||||
.isso-input-wrapper {
|
|
||||||
display: block;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media print {
|
|
||||||
.comments {
|
|
||||||
break-before: always;
|
|
||||||
}
|
|
||||||
.isso-comment {
|
|
||||||
max-width: unset;
|
|
||||||
}
|
|
||||||
.isso-text-wrapper {
|
|
||||||
break-inside: avoid;
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-postbox,
|
|
||||||
.isso-feedlink {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.isso-target {
|
|
||||||
animation: target-fade 10s ease-out; /* defined in bobatheme */
|
|
||||||
}
|
|
@@ -1,9 +0,0 @@
|
|||||||
/* put on body so it overrides the defaults set in :root by pagefind.css */
|
|
||||||
body {
|
|
||||||
/* https://pagefind.app/docs/ui-usage/#customising-the-styles */
|
|
||||||
--pagefind-ui-background: var(--background-1);
|
|
||||||
--pagefind-ui-border: var(--background-2);
|
|
||||||
--pagefind-ui-primary: var(--link-0);
|
|
||||||
--pagefind-ui-tag: var(--background-1);
|
|
||||||
--pagefind-ui-text: var(--text-1);
|
|
||||||
}
|
|
@@ -1,3 +0,0 @@
|
|||||||
function share_event(service) {
|
|
||||||
plausible("Share", {props: {Network: service}});
|
|
||||||
}
|
|
@@ -43,6 +43,13 @@ params:
|
|||||||
# used in archetypes
|
# used in archetypes
|
||||||
name: bbaovanc
|
name: bbaovanc
|
||||||
|
|
||||||
|
|
||||||
|
# https://microformats.org/wiki/rel-me
|
||||||
|
# https://indieweb.org/rel-me
|
||||||
|
# i.e. Mastodon domain verification
|
||||||
|
rel_me:
|
||||||
|
- https://procursus.social/@bbaovanc
|
||||||
|
|
||||||
social:
|
social:
|
||||||
# twitter:site field
|
# twitter:site field
|
||||||
twitter: bbaovanc
|
twitter: bbaovanc
|
||||||
|
@@ -1,24 +0,0 @@
|
|||||||
{{ if not hugo.IsServer }}
|
|
||||||
<script defer data-domain="bbaovanc.com" src="https://plausible.bbaovanc.com/js/bobalytics.outbound-links.js"></script>
|
|
||||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with resources.Get "js/share-event.js" | fingerprint "sha512" }}
|
|
||||||
<script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if eq .Layout "search" }}
|
|
||||||
{{ with resources.Get "css/search.css" | fingerprint "sha512" }}
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ absURL "pagefind/pagefind-ui.css" }}" crossorigin="anonymous">
|
|
||||||
<script src="{{ absURL "pagefind/pagefind-ui.js" }}" crossorigin="anonymous"></script>
|
|
||||||
<script>
|
|
||||||
window.addEventListener('DOMContentLoaded', (event) => {
|
|
||||||
new PagefindUI({ element: "#search-box", showSubResults: true });
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<link rel="me" href="https://procursus.social/@bbaovanc" />
|
|
@@ -1,56 +0,0 @@
|
|||||||
{{ with resources.Get "css/comments.css" | fingerprint "sha512" }}
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<h2 style="margin-bottom: 0;">Comments</h2>
|
|
||||||
<p style="margin: 0; font-size: smaller;">
|
|
||||||
If you provide an email address, you can enable notifications for
|
|
||||||
replies to your comment. It will not be shown publicly.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<noscript>
|
|
||||||
<i>Enable JavaScript to see the comment section.</i>
|
|
||||||
</noscript>
|
|
||||||
|
|
||||||
{{ $url := .Permalink }}
|
|
||||||
{{ if .IsTranslated }}
|
|
||||||
{{ with index .AllTranslations 0 }}
|
|
||||||
{{ $url = .Permalink }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
|
|
||||||
<script data-isso-id="{{ $url }}"
|
|
||||||
data-isso-default-lang="{{ .Language.Lang }}"
|
|
||||||
data-isso-css="true"
|
|
||||||
data-isso-max-comments-top="inf"
|
|
||||||
data-isso-max-comments-nested="inf"
|
|
||||||
data-isso-reveal-on-click="5"
|
|
||||||
{{/*
|
|
||||||
data-isso-avatar-bg="#111"
|
|
||||||
data-isso-avatar-fg="#9abf88 #5698c4 #e279a3 #9163b6 ..."
|
|
||||||
*/}}
|
|
||||||
data-isso-vote="true"
|
|
||||||
{{/*
|
|
||||||
data-isso-vote-levels=""
|
|
||||||
*/}}
|
|
||||||
data-isso-feed="true"
|
|
||||||
data-isso-require-email="false"
|
|
||||||
data-isso-reply-notifications="true"
|
|
||||||
data-isso-reply-notifications-default-enabled="true"
|
|
||||||
|
|
||||||
{{ with (.GetTerms "authors") }}
|
|
||||||
{{ $authorHashes := slice }}
|
|
||||||
{{ range . }}
|
|
||||||
{{ with .Params.issoUserID }}
|
|
||||||
{{ $authorHashes = $authorHashes | append . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
data-isso-page-author-hashes="{{ delimit $authorHashes "," }}"
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
src="https://isso.bbaovanc.com/js/embed.min.js">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<section id="isso-thread" data-title="{{ .Title }}"></section>
|
|
@@ -1,5 +0,0 @@
|
|||||||
{{/* TODO: implement this
|
|
||||||
<span class="page-metadata-item" aria-label="comments counter">
|
|
||||||
<a href="#isso-thread">comments</a>
|
|
||||||
</span>
|
|
||||||
*/}}
|
|
@@ -1,3 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<div id="search-box"></div>
|
|
||||||
{{ end }}
|
|
Submodule themes/bobatheme updated: 8845272d4d...d50a4dc6bd
Reference in New Issue
Block a user