mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 09:47:29 -05:00
Compare commits
11 Commits
0b3b160e87
...
reduce-pri
Author | SHA1 | Date | |
---|---|---|---|
98d03cd803
|
|||
c980ced2fb
|
|||
9ca15a198f
|
|||
5c87c2b069
|
|||
6c42ae9518
|
|||
f33492ef8e
|
|||
ffcae79156
|
|||
a59a87374b
|
|||
88adfbdf89
|
|||
0f717e81c0
|
|||
ede5958a46
|
@ -8,7 +8,7 @@ comments: true
|
||||
draft: true
|
||||
|
||||
authors:
|
||||
- {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||
- {{ with .Site.Params.author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||
|
||||
categories:
|
||||
- archetype-stuff
|
||||
|
@ -6,7 +6,7 @@ toc: true
|
||||
comments: false
|
||||
|
||||
authors:
|
||||
- {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||
- {{ with .Site.params.author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||
|
||||
---
|
||||
|
||||
|
@ -361,23 +361,6 @@ h1 svg.icon {
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Back to top {{{ */
|
||||
#top {
|
||||
font-size: 0;
|
||||
}
|
||||
#back-to-top {
|
||||
position: fixed;
|
||||
float: right;
|
||||
bottom: 25px;
|
||||
right: 25px;
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
border-radius: 100%;
|
||||
padding: 12px;
|
||||
display: none;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* Skip to main content {{{ */
|
||||
#skip-to-main {
|
||||
position: absolute;
|
||||
@ -875,22 +858,22 @@ aside {
|
||||
}
|
||||
|
||||
aside.note {
|
||||
background-color: var(--background-blue-1);
|
||||
background-color: var(--accent-blue-1);
|
||||
}
|
||||
aside.info {
|
||||
background-color: var(--background-green-1);
|
||||
background-color: var(--accent-green-1);
|
||||
}
|
||||
aside.tip {
|
||||
background-color: var(--background-teal-1);
|
||||
background-color: var(--accent-teal-1);
|
||||
}
|
||||
aside.warning {
|
||||
background-color: var(--background-yellow-1);
|
||||
background-color: var(--accent-yellow-1);
|
||||
}
|
||||
aside.example {
|
||||
background-color: var(--background-purple-1);
|
||||
background-color: var(--accent-purple-1);
|
||||
}
|
||||
aside.quote {
|
||||
background-color: var(--background-1);
|
||||
background-color: var(--accent-1);
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
@ -969,6 +952,7 @@ aside.quote {
|
||||
.main-container {
|
||||
max-width: 100%;
|
||||
margin: 8px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
@ -989,8 +973,32 @@ aside.quote {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#back-to-top {
|
||||
display: none !important;
|
||||
/*
|
||||
* reduce usage of background colors
|
||||
*/
|
||||
|
||||
aside {
|
||||
background-color: unset !important;
|
||||
border: 4px solid;
|
||||
}
|
||||
|
||||
aside.note {
|
||||
border-color: var(--background-blue-1);
|
||||
}
|
||||
aside.info {
|
||||
border-color: var(--background-green-1);
|
||||
}
|
||||
aside.tip {
|
||||
border-color: var(--background-teal-1);
|
||||
}
|
||||
aside.warning {
|
||||
border-color: var(--background-yellow-1);
|
||||
}
|
||||
aside.example {
|
||||
border-color: var(--background-purple-1);
|
||||
}
|
||||
aside.quote {
|
||||
border-color: var(--background-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,13 +1,3 @@
|
||||
// back to top
|
||||
const backToTop = document.getElementById("back-to-top");
|
||||
window.onscroll = function() {
|
||||
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
|
||||
backToTop.style.display = "block";
|
||||
} else {
|
||||
backToTop.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
// code block copy to clipboard
|
||||
window.onload = () => {
|
||||
document.querySelectorAll(".code-block").forEach(codeBlock => {
|
||||
|
@ -10,13 +10,13 @@ enableGitInfo: true
|
||||
taxonomies:
|
||||
_merge: deep
|
||||
|
||||
author:
|
||||
name: bbaovanc
|
||||
|
||||
markup: # this just keeps the bobatheme markup styling
|
||||
_merge: deep
|
||||
|
||||
params:
|
||||
author:
|
||||
name: bbaovanc
|
||||
|
||||
# these are for the OpenGraph/Twitter embeds in Hugo
|
||||
description: Example website for bobatheme
|
||||
|
||||
|
@ -4,20 +4,8 @@
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
<a id="top" aria-hidden="true"></a>
|
||||
<a id="skip-to-main" href="#main-content">Skip to main content</a>
|
||||
|
||||
<a id="back-to-top" href="#top" aria-label="{{ i18n "aria_back_to_top_button" }}">
|
||||
{{ partial "icon.html" "chevron-up" }}
|
||||
</a>
|
||||
<noscript>
|
||||
<style>
|
||||
#back-to-top {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
|
||||
{{ partial "top.html" . }}
|
||||
|
||||
<div class="main-container">
|
||||
|
@ -9,7 +9,7 @@
|
||||
{{ with index . "src" }}
|
||||
{{ $media := . }}
|
||||
{{ if eq .MediaType.MainType "image" }}
|
||||
<img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" />
|
||||
<img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" loading="lazy" />
|
||||
{{ else if eq .MediaType.MainType "video" }}
|
||||
<video controls preload="metadata">
|
||||
<source src="{{ $media.Permalink }}" alt="{{ $media.Title }}">
|
||||
|
@ -7,10 +7,10 @@
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
{{ with resources.Get "css/syntax.css" | fingerprint "sha512" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
||||
{{ end }}
|
||||
{{ with resources.Get "css/syntax-light.css" | fingerprint "sha512" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
||||
{{ end }}
|
||||
|
||||
{{ with resources.Get "js/bobatheme.js" | fingerprint "sha512" }}
|
||||
|
@ -6,9 +6,9 @@
|
||||
{{ $authors := slice }}
|
||||
{{ range . }}
|
||||
{{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }}
|
||||
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url . | safeHTML) }}
|
||||
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }}
|
||||
{{ end }}
|
||||
{{ delimit $authors ", " }}
|
||||
{{ delimit $authors ", " | safeHTML }}
|
||||
{{ else }}
|
||||
{{ delimit . ", " }}
|
||||
{{ end }}
|
||||
|
@ -6,6 +6,6 @@
|
||||
|
||||
<div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
||||
{{ partial "icon.html" "folder" }}
|
||||
{{ delimit $categories ", " }}
|
||||
{{ delimit $categories ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -6,6 +6,6 @@
|
||||
|
||||
<div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
||||
{{ partial "icon.html" "files" }}
|
||||
{{ delimit $series ", " }}
|
||||
{{ delimit $series ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -6,6 +6,6 @@
|
||||
|
||||
<div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ delimit $tags ", " }}
|
||||
{{ delimit $tags ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -10,7 +10,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $type "image" }}
|
||||
<img src="{{ $src }}" alt="{{ $alt }}" />
|
||||
<img src="{{ $src }}" alt="{{ $alt }}" loading="lazy" />
|
||||
{{ else if eq $type "video" }}
|
||||
<video controls preload="metadata">
|
||||
<source src="{{ $src }}" alt="{{ $alt }}">
|
||||
|
@ -12,6 +12,6 @@
|
||||
This post is part of a series:
|
||||
{{ end }}
|
||||
|
||||
{{ delimit $series ", " }}
|
||||
{{ delimit $series ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user