Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/opera7133/Blonde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropera7133 <ainznino@pm.me>2022-09-03 09:35:48 +0300
committeropera7133 <ainznino@pm.me>2022-09-03 09:35:48 +0300
commit9def83cd41e300a58e7cf8e52c3242ffb75b0e77 (patch)
tree37669d155208fbff55bbd97abd89043deef7b8ca
parentab7c15e431c07b0af1aab3191a94cc4ca3dcbc47 (diff)
ad
-rw-r--r--assets/css/style.css445
-rw-r--r--exampleSite/config.toml12
-rw-r--r--layouts/partials/footer.html128
-rw-r--r--layouts/post/single.html162
4 files changed, 382 insertions, 365 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 5301b76..a854ba4 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -1,6 +1,6 @@
/* assets */
-/* ! tailwindcss v3.0.18 | MIT License | https://tailwindcss.com */
+/* ! tailwindcss v3.0.22 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@@ -40,11 +40,9 @@ html {
-moz-tab-size: 4;
/* 3 */
-o-tab-size: 4;
- tab-size: 4;
+ tab-size: 4;
/* 3 */
- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
/* 4 */
}
@@ -81,7 +79,7 @@ Add the correct text decoration in Chrome, Edge, and Safari.
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
- text-decoration: underline dotted;
+ text-decoration: underline dotted;
}
/*
@@ -125,8 +123,7 @@ code,
kbd,
samp,
pre {
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
- 'Liberation Mono', 'Courier New', monospace;
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
/* 1 */
font-size: 1em;
/* 2 */
@@ -349,16 +346,14 @@ textarea {
2. Set the default placeholder color to the user's configured gray 400 color.
*/
-input::-moz-placeholder,
-textarea::-moz-placeholder {
+input::-moz-placeholder, textarea::-moz-placeholder {
opacity: 1;
/* 1 */
color: #9ca3af;
/* 2 */
}
-input:-ms-input-placeholder,
-textarea:-ms-input-placeholder {
+input:-ms-input-placeholder, textarea:-ms-input-placeholder {
opacity: 1;
/* 1 */
color: #9ca3af;
@@ -378,7 +373,7 @@ Set the default cursor for buttons.
*/
button,
-[role='button'] {
+[role="button"] {
cursor: pointer;
}
@@ -428,9 +423,7 @@ Ensure the default browser behavior of the `hidden` attribute.
display: none;
}
-*,
-::before,
-::after {
+*, ::before, ::after {
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
@@ -438,16 +431,16 @@ Ensure the default browser behavior of the `hidden` attribute.
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
- --tw-pan-x: ;
- --tw-pan-y: ;
- --tw-pinch-zoom: ;
+ --tw-pan-x: ;
+ --tw-pan-y: ;
+ --tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
- --tw-ordinal: ;
- --tw-slashed-zero: ;
- --tw-numeric-figure: ;
- --tw-numeric-spacing: ;
- --tw-numeric-fraction: ;
- --tw-ring-inset: ;
+ --tw-ordinal: ;
+ --tw-slashed-zero: ;
+ --tw-numeric-figure: ;
+ --tw-numeric-spacing: ;
+ --tw-numeric-fraction: ;
+ --tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
@@ -455,24 +448,24 @@ Ensure the default browser behavior of the `hidden` attribute.
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
- --tw-blur: ;
- --tw-brightness: ;
- --tw-contrast: ;
- --tw-grayscale: ;
- --tw-hue-rotate: ;
- --tw-invert: ;
- --tw-saturate: ;
- --tw-sepia: ;
- --tw-drop-shadow: ;
- --tw-backdrop-blur: ;
- --tw-backdrop-brightness: ;
- --tw-backdrop-contrast: ;
- --tw-backdrop-grayscale: ;
- --tw-backdrop-hue-rotate: ;
- --tw-backdrop-invert: ;
- --tw-backdrop-opacity: ;
- --tw-backdrop-saturate: ;
- --tw-backdrop-sepia: ;
+ --tw-blur: ;
+ --tw-brightness: ;
+ --tw-contrast: ;
+ --tw-grayscale: ;
+ --tw-hue-rotate: ;
+ --tw-invert: ;
+ --tw-saturate: ;
+ --tw-sepia: ;
+ --tw-drop-shadow: ;
+ --tw-backdrop-blur: ;
+ --tw-backdrop-brightness: ;
+ --tw-backdrop-contrast: ;
+ --tw-backdrop-grayscale: ;
+ --tw-backdrop-hue-rotate: ;
+ --tw-backdrop-invert: ;
+ --tw-backdrop-opacity: ;
+ --tw-backdrop-saturate: ;
+ --tw-backdrop-sepia: ;
}
.container {
@@ -514,7 +507,7 @@ Ensure the default browser behavior of the `hidden` attribute.
max-width: 65ch;
}
-.prose :where([class~='lead']):not(:where([class~='not-prose'] *)) {
+.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-lead);
font-size: 1.25em;
line-height: 1.6;
@@ -522,103 +515,100 @@ Ensure the default browser behavior of the `hidden` attribute.
margin-bottom: 1.2em;
}
-.prose :where(a):not(:where([class~='not-prose'] *)) {
+.prose :where(a):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-links);
text-decoration: underline;
font-weight: 500;
}
-.prose :where(strong):not(:where([class~='not-prose'] *)) {
+.prose :where(strong):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-bold);
font-weight: 600;
}
-.prose :where(ol):not(:where([class~='not-prose'] *)) {
+.prose :where(ol):not(:where([class~="not-prose"] *)) {
list-style-type: decimal;
padding-left: 1.625em;
}
-.prose :where(ol[type='A']):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)) {
list-style-type: upper-alpha;
}
-.prose :where(ol[type='a']):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)) {
list-style-type: lower-alpha;
}
-.prose :where(ol[type='A' s]):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)) {
list-style-type: upper-alpha;
}
-.prose :where(ol[type='a' s]):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)) {
list-style-type: lower-alpha;
}
-.prose :where(ol[type='I']):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)) {
list-style-type: upper-roman;
}
-.prose :where(ol[type='i']):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)) {
list-style-type: lower-roman;
}
-.prose :where(ol[type='I' s]):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)) {
list-style-type: upper-roman;
}
-.prose :where(ol[type='i' s]):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)) {
list-style-type: lower-roman;
}
-.prose :where(ol[type='1']):not(:where([class~='not-prose'] *)) {
+.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)) {
list-style-type: decimal;
}
-.prose :where(ul):not(:where([class~='not-prose'] *)) {
+.prose :where(ul):not(:where([class~="not-prose"] *)) {
list-style-type: disc;
padding-left: 1.625em;
}
-.prose :where(ol > li):not(:where([class~='not-prose'] *))::marker {
+.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker {
font-weight: 400;
color: var(--tw-prose-counters);
}
-.prose :where(ul > li):not(:where([class~='not-prose'] *))::marker {
+.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker {
color: var(--tw-prose-bullets);
}
-.prose :where(hr):not(:where([class~='not-prose'] *)) {
+.prose :where(hr):not(:where([class~="not-prose"] *)) {
border-color: var(--tw-prose-hr);
border-top-width: 1px;
margin-top: 3em;
margin-bottom: 3em;
}
-.prose :where(blockquote):not(:where([class~='not-prose'] *)) {
+.prose :where(blockquote):not(:where([class~="not-prose"] *)) {
font-weight: 500;
font-style: italic;
color: var(--tw-prose-quotes);
border-left-width: 0.25rem;
border-left-color: var(--tw-prose-quote-borders);
- quotes: '\201C''\201D''\2018''\2019';
+ quotes: "\201C""\201D""\2018""\2019";
margin-top: 1.6em;
margin-bottom: 1.6em;
padding-left: 1em;
}
-.prose
- :where(blockquote p:first-of-type):not(:where([class~='not-prose']
- *))::before {
+.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *))::before {
content: open-quote;
}
-.prose
- :where(blockquote p:last-of-type):not(:where([class~='not-prose'] *))::after {
+.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *))::after {
content: close-quote;
}
-.prose :where(h1):not(:where([class~='not-prose'] *)) {
+.prose :where(h1):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 800;
font-size: 2.25em;
@@ -627,11 +617,11 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.1111111;
}
-.prose :where(h1 strong):not(:where([class~='not-prose'] *)) {
+.prose :where(h1 strong):not(:where([class~="not-prose"] *)) {
font-weight: 900;
}
-.prose :where(h2):not(:where([class~='not-prose'] *)) {
+.prose :where(h2):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 700;
font-size: 1.5em;
@@ -640,11 +630,11 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.3333333;
}
-.prose :where(h2 strong):not(:where([class~='not-prose'] *)) {
+.prose :where(h2 strong):not(:where([class~="not-prose"] *)) {
font-weight: 800;
}
-.prose :where(h3):not(:where([class~='not-prose'] *)) {
+.prose :where(h3):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 600;
font-size: 1.25em;
@@ -653,11 +643,11 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.6;
}
-.prose :where(h3 strong):not(:where([class~='not-prose'] *)) {
+.prose :where(h3 strong):not(:where([class~="not-prose"] *)) {
font-weight: 700;
}
-.prose :where(h4):not(:where([class~='not-prose'] *)) {
+.prose :where(h4):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 600;
margin-top: 1.5em;
@@ -665,41 +655,41 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.5;
}
-.prose :where(h4 strong):not(:where([class~='not-prose'] *)) {
+.prose :where(h4 strong):not(:where([class~="not-prose"] *)) {
font-weight: 700;
}
-.prose :where(figure > *):not(:where([class~='not-prose'] *)) {
+.prose :where(figure > *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
-.prose :where(figcaption):not(:where([class~='not-prose'] *)) {
+.prose :where(figcaption):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-captions);
font-size: 0.875em;
line-height: 1.4285714;
margin-top: 0.8571429em;
}
-.prose :where(code):not(:where([class~='not-prose'] *)) {
+.prose :where(code):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-code);
font-weight: 600;
font-size: 0.875em;
}
-.prose :where(code):not(:where([class~='not-prose'] *))::before {
- content: '`';
+.prose :where(code):not(:where([class~="not-prose"] *))::before {
+ content: "`";
}
-.prose :where(code):not(:where([class~='not-prose'] *))::after {
- content: '`';
+.prose :where(code):not(:where([class~="not-prose"] *))::after {
+ content: "`";
}
-.prose :where(a code):not(:where([class~='not-prose'] *)) {
+.prose :where(a code):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-links);
}
-.prose :where(pre):not(:where([class~='not-prose'] *)) {
+.prose :where(pre):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-pre-code);
background-color: var(--tw-prose-pre-bg);
overflow-x: auto;
@@ -715,7 +705,7 @@ Ensure the default browser behavior of the `hidden` attribute.
padding-left: 1.1428571em;
}
-.prose :where(pre code):not(:where([class~='not-prose'] *)) {
+.prose :where(pre code):not(:where([class~="not-prose"] *)) {
background-color: transparent;
border-width: 0;
border-radius: 0;
@@ -727,15 +717,15 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: inherit;
}
-.prose :where(pre code):not(:where([class~='not-prose'] *))::before {
+.prose :where(pre code):not(:where([class~="not-prose"] *))::before {
content: none;
}
-.prose :where(pre code):not(:where([class~='not-prose'] *))::after {
+.prose :where(pre code):not(:where([class~="not-prose"] *))::after {
content: none;
}
-.prose :where(table):not(:where([class~='not-prose'] *)) {
+.prose :where(table):not(:where([class~="not-prose"] *)) {
width: 100%;
table-layout: auto;
text-align: left;
@@ -745,12 +735,12 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.7142857;
}
-.prose :where(thead):not(:where([class~='not-prose'] *)) {
+.prose :where(thead):not(:where([class~="not-prose"] *)) {
border-bottom-width: 1px;
border-bottom-color: var(--tw-prose-th-borders);
}
-.prose :where(thead th):not(:where([class~='not-prose'] *)) {
+.prose :where(thead th):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 600;
vertical-align: bottom;
@@ -759,16 +749,16 @@ Ensure the default browser behavior of the `hidden` attribute.
padding-left: 0.5714286em;
}
-.prose :where(tbody tr):not(:where([class~='not-prose'] *)) {
+.prose :where(tbody tr):not(:where([class~="not-prose"] *)) {
border-bottom-width: 1px;
border-bottom-color: var(--tw-prose-td-borders);
}
-.prose :where(tbody tr:last-child):not(:where([class~='not-prose'] *)) {
+.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)) {
border-bottom-width: 0;
}
-.prose :where(tbody td):not(:where([class~='not-prose'] *)) {
+.prose :where(tbody td):not(:where([class~="not-prose"] *)) {
vertical-align: baseline;
padding-top: 0.5714286em;
padding-right: 0.5714286em;
@@ -813,110 +803,110 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.75;
}
-.prose :where(p):not(:where([class~='not-prose'] *)) {
+.prose :where(p):not(:where([class~="not-prose"] *)) {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
-.prose :where(img):not(:where([class~='not-prose'] *)) {
+.prose :where(img):not(:where([class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
-.prose :where(video):not(:where([class~='not-prose'] *)) {
+.prose :where(video):not(:where([class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
-.prose :where(figure):not(:where([class~='not-prose'] *)) {
+.prose :where(figure):not(:where([class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
-.prose :where(h2 code):not(:where([class~='not-prose'] *)) {
+.prose :where(h2 code):not(:where([class~="not-prose"] *)) {
font-size: 0.875em;
}
-.prose :where(h3 code):not(:where([class~='not-prose'] *)) {
+.prose :where(h3 code):not(:where([class~="not-prose"] *)) {
font-size: 0.9em;
}
-.prose :where(li):not(:where([class~='not-prose'] *)) {
+.prose :where(li):not(:where([class~="not-prose"] *)) {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
-.prose :where(ol > li):not(:where([class~='not-prose'] *)) {
+.prose :where(ol > li):not(:where([class~="not-prose"] *)) {
padding-left: 0.375em;
}
-.prose :where(ul > li):not(:where([class~='not-prose'] *)) {
+.prose :where(ul > li):not(:where([class~="not-prose"] *)) {
padding-left: 0.375em;
}
-.prose > :where(ul > li p):not(:where([class~='not-prose'] *)) {
+.prose > :where(ul > li p):not(:where([class~="not-prose"] *)) {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
-.prose > :where(ul > li > *:first-child):not(:where([class~='not-prose'] *)) {
+.prose > :where(ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 1.25em;
}
-.prose > :where(ul > li > *:last-child):not(:where([class~='not-prose'] *)) {
+.prose > :where(ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 1.25em;
}
-.prose > :where(ol > li > *:first-child):not(:where([class~='not-prose'] *)) {
+.prose > :where(ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 1.25em;
}
-.prose > :where(ol > li > *:last-child):not(:where([class~='not-prose'] *)) {
+.prose > :where(ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 1.25em;
}
-.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~='not-prose'] *)) {
+.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"] *)) {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
-.prose :where(hr + *):not(:where([class~='not-prose'] *)) {
+.prose :where(hr + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
-.prose :where(h2 + *):not(:where([class~='not-prose'] *)) {
+.prose :where(h2 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
-.prose :where(h3 + *):not(:where([class~='not-prose'] *)) {
+.prose :where(h3 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
-.prose :where(h4 + *):not(:where([class~='not-prose'] *)) {
+.prose :where(h4 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
-.prose :where(thead th:first-child):not(:where([class~='not-prose'] *)) {
+.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)) {
padding-left: 0;
}
-.prose :where(thead th:last-child):not(:where([class~='not-prose'] *)) {
+.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)) {
padding-right: 0;
}
-.prose :where(tbody td:first-child):not(:where([class~='not-prose'] *)) {
+.prose :where(tbody td:first-child):not(:where([class~="not-prose"] *)) {
padding-left: 0;
}
-.prose :where(tbody td:last-child):not(:where([class~='not-prose'] *)) {
+.prose :where(tbody td:last-child):not(:where([class~="not-prose"] *)) {
padding-right: 0;
}
-.prose > :where(:first-child):not(:where([class~='not-prose'] *)) {
+.prose > :where(:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
-.prose > :where(:last-child):not(:where([class~='not-prose'] *)) {
+.prose > :where(:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 0;
}
@@ -1099,10 +1089,6 @@ Ensure the default browser behavior of the `hidden` attribute.
width: 100%;
}
-.w-auto {
- width: auto;
-}
-
.max-w-screen-xl {
max-width: 1280px;
}
@@ -1120,13 +1106,7 @@ Ensure the default browser behavior of the `hidden` attribute.
}
.transform {
- transform: translate(var(--tw-translate-x), var(--tw-translate-y))
- rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
- scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
-}
-
-.cursor-pointer {
- cursor: pointer;
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-pointer {
@@ -1328,9 +1308,7 @@ Ensure the default browser behavior of the `hidden` attribute.
}
.font-sans {
- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.text-2xl {
@@ -1420,7 +1398,7 @@ Ensure the default browser behavior of the `hidden` attribute.
.no-underline {
-webkit-text-decoration-line: none;
- text-decoration-line: none;
+ text-decoration-line: none;
}
.placeholder-gray-700::-moz-placeholder {
@@ -1439,12 +1417,9 @@ Ensure the default browser behavior of the `hidden` attribute.
}
.transition-colors {
- transition-property: color, background-color, border-color, fill, stroke,
- -webkit-text-decoration-color;
- transition-property: color, background-color, border-color,
- text-decoration-color, fill, stroke;
- transition-property: color, background-color, border-color,
- text-decoration-color, fill, stroke, -webkit-text-decoration-color;
+ transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}
@@ -1467,9 +1442,7 @@ Ensure the default browser behavior of the `hidden` attribute.
.hover\:-translate-y-1:hover {
--tw-translate-y: -0.25rem;
- transform: translate(var(--tw-translate-x), var(--tw-translate-y))
- rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
- scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:border-blue-700:hover {
@@ -1523,10 +1496,8 @@ Ensure the default browser behavior of the `hidden` attribute.
.hover\:shadow-md:hover {
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
- --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color),
- 0 2px 4px -2px var(--tw-shadow-color);
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
- var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
+ --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.focus\:border-gray-500:focus {
@@ -1662,90 +1633,90 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.7777778;
}
- .md\:prose-lg :where(p):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(p):not(:where([class~="not-prose"] *)) {
margin-top: 1.3333333em;
margin-bottom: 1.3333333em;
}
- .md\:prose-lg :where([class~='lead']):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where([class~="lead"]):not(:where([class~="not-prose"] *)) {
font-size: 1.2222222em;
line-height: 1.4545455;
margin-top: 1.0909091em;
margin-bottom: 1.0909091em;
}
- .md\:prose-lg :where(blockquote):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(blockquote):not(:where([class~="not-prose"] *)) {
margin-top: 1.6666667em;
margin-bottom: 1.6666667em;
padding-left: 1em;
}
- .md\:prose-lg :where(h1):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h1):not(:where([class~="not-prose"] *)) {
font-size: 2.6666667em;
margin-top: 0;
margin-bottom: 0.8333333em;
line-height: 1;
}
- .md\:prose-lg :where(h2):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h2):not(:where([class~="not-prose"] *)) {
font-size: 1.6666667em;
margin-top: 1.8666667em;
margin-bottom: 1.0666667em;
line-height: 1.3333333;
}
- .md\:prose-lg :where(h3):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h3):not(:where([class~="not-prose"] *)) {
font-size: 1.3333333em;
margin-top: 1.6666667em;
margin-bottom: 0.6666667em;
line-height: 1.5;
}
- .md\:prose-lg :where(h4):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h4):not(:where([class~="not-prose"] *)) {
margin-top: 1.7777778em;
margin-bottom: 0.4444444em;
line-height: 1.5555556;
}
- .md\:prose-lg :where(img):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(img):not(:where([class~="not-prose"] *)) {
margin-top: 1.7777778em;
margin-bottom: 1.7777778em;
}
- .md\:prose-lg :where(video):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(video):not(:where([class~="not-prose"] *)) {
margin-top: 1.7777778em;
margin-bottom: 1.7777778em;
}
- .md\:prose-lg :where(figure):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(figure):not(:where([class~="not-prose"] *)) {
margin-top: 1.7777778em;
margin-bottom: 1.7777778em;
}
- .md\:prose-lg :where(figure > *):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(figure > *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
- .md\:prose-lg :where(figcaption):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(figcaption):not(:where([class~="not-prose"] *)) {
font-size: 0.8888889em;
line-height: 1.5;
margin-top: 1em;
}
- .md\:prose-lg :where(code):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(code):not(:where([class~="not-prose"] *)) {
font-size: 0.8888889em;
}
- .md\:prose-lg :where(h2 code):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h2 code):not(:where([class~="not-prose"] *)) {
font-size: 0.8666667em;
}
- .md\:prose-lg :where(h3 code):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h3 code):not(:where([class~="not-prose"] *)) {
font-size: 0.875em;
}
- .md\:prose-lg :where(pre):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(pre):not(:where([class~="not-prose"] *)) {
font-size: 0.8888889em;
line-height: 1.75;
margin-top: 2em;
@@ -1757,122 +1728,113 @@ Ensure the default browser behavior of the `hidden` attribute.
padding-left: 1.5em;
}
- .md\:prose-lg :where(ol):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(ol):not(:where([class~="not-prose"] *)) {
padding-left: 1.5555556em;
}
- .md\:prose-lg :where(ul):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(ul):not(:where([class~="not-prose"] *)) {
padding-left: 1.5555556em;
}
- .md\:prose-lg :where(li):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(li):not(:where([class~="not-prose"] *)) {
margin-top: 0.6666667em;
margin-bottom: 0.6666667em;
}
- .md\:prose-lg :where(ol > li):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(ol > li):not(:where([class~="not-prose"] *)) {
padding-left: 0.4444444em;
}
- .md\:prose-lg :where(ul > li):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(ul > li):not(:where([class~="not-prose"] *)) {
padding-left: 0.4444444em;
}
- .md\:prose-lg > :where(ul > li p):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg > :where(ul > li p):not(:where([class~="not-prose"] *)) {
margin-top: 0.8888889em;
margin-bottom: 0.8888889em;
}
- .md\:prose-lg
- > :where(ul > li > *:first-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg > :where(ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 1.3333333em;
}
- .md\:prose-lg
- > :where(ul > li > *:last-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg > :where(ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 1.3333333em;
}
- .md\:prose-lg
- > :where(ol > li > *:first-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg > :where(ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 1.3333333em;
}
- .md\:prose-lg
- > :where(ol > li > *:last-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg > :where(ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 1.3333333em;
}
- .md\:prose-lg
- :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"] *)) {
margin-top: 0.8888889em;
margin-bottom: 0.8888889em;
}
- .md\:prose-lg :where(hr):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(hr):not(:where([class~="not-prose"] *)) {
margin-top: 3.1111111em;
margin-bottom: 3.1111111em;
}
- .md\:prose-lg :where(hr + *):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(hr + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .md\:prose-lg :where(h2 + *):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h2 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .md\:prose-lg :where(h3 + *):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h3 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .md\:prose-lg :where(h4 + *):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(h4 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .md\:prose-lg :where(table):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(table):not(:where([class~="not-prose"] *)) {
font-size: 0.8888889em;
line-height: 1.5;
}
- .md\:prose-lg :where(thead th):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(thead th):not(:where([class~="not-prose"] *)) {
padding-right: 0.75em;
padding-bottom: 0.75em;
padding-left: 0.75em;
}
- .md\:prose-lg
- :where(thead th:first-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(thead th:first-child):not(:where([class~="not-prose"] *)) {
padding-left: 0;
}
- .md\:prose-lg
- :where(thead th:last-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(thead th:last-child):not(:where([class~="not-prose"] *)) {
padding-right: 0;
}
- .md\:prose-lg :where(tbody td):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(tbody td):not(:where([class~="not-prose"] *)) {
padding-top: 0.75em;
padding-right: 0.75em;
padding-bottom: 0.75em;
padding-left: 0.75em;
}
- .md\:prose-lg
- :where(tbody td:first-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(tbody td:first-child):not(:where([class~="not-prose"] *)) {
padding-left: 0;
}
- .md\:prose-lg
- :where(tbody td:last-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg :where(tbody td:last-child):not(:where([class~="not-prose"] *)) {
padding-right: 0;
}
- .md\:prose-lg > :where(:first-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg > :where(:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .md\:prose-lg > :where(:last-child):not(:where([class~='not-prose'] *)) {
+ .md\:prose-lg > :where(:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 0;
}
@@ -1903,90 +1865,90 @@ Ensure the default browser behavior of the `hidden` attribute.
line-height: 1.8;
}
- .lg\:prose-xl :where(p):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(p):not(:where([class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
- .lg\:prose-xl :where([class~='lead']):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where([class~="lead"]):not(:where([class~="not-prose"] *)) {
font-size: 1.2em;
line-height: 1.5;
margin-top: 1em;
margin-bottom: 1em;
}
- .lg\:prose-xl :where(blockquote):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(blockquote):not(:where([class~="not-prose"] *)) {
margin-top: 1.6em;
margin-bottom: 1.6em;
padding-left: 1.0666667em;
}
- .lg\:prose-xl :where(h1):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h1):not(:where([class~="not-prose"] *)) {
font-size: 2.8em;
margin-top: 0;
margin-bottom: 0.8571429em;
line-height: 1;
}
- .lg\:prose-xl :where(h2):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h2):not(:where([class~="not-prose"] *)) {
font-size: 1.8em;
margin-top: 1.5555556em;
margin-bottom: 0.8888889em;
line-height: 1.1111111;
}
- .lg\:prose-xl :where(h3):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h3):not(:where([class~="not-prose"] *)) {
font-size: 1.5em;
margin-top: 1.6em;
margin-bottom: 0.6666667em;
line-height: 1.3333333;
}
- .lg\:prose-xl :where(h4):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h4):not(:where([class~="not-prose"] *)) {
margin-top: 1.8em;
margin-bottom: 0.6em;
line-height: 1.6;
}
- .lg\:prose-xl :where(img):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(img):not(:where([class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
- .lg\:prose-xl :where(video):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(video):not(:where([class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
- .lg\:prose-xl :where(figure):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(figure):not(:where([class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
- .lg\:prose-xl :where(figure > *):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(figure > *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
- .lg\:prose-xl :where(figcaption):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(figcaption):not(:where([class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.5555556;
margin-top: 1em;
}
- .lg\:prose-xl :where(code):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(code):not(:where([class~="not-prose"] *)) {
font-size: 0.9em;
}
- .lg\:prose-xl :where(h2 code):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h2 code):not(:where([class~="not-prose"] *)) {
font-size: 0.8611111em;
}
- .lg\:prose-xl :where(h3 code):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h3 code):not(:where([class~="not-prose"] *)) {
font-size: 0.9em;
}
- .lg\:prose-xl :where(pre):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(pre):not(:where([class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.7777778;
margin-top: 2em;
@@ -1998,122 +1960,113 @@ Ensure the default browser behavior of the `hidden` attribute.
padding-left: 1.3333333em;
}
- .lg\:prose-xl :where(ol):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(ol):not(:where([class~="not-prose"] *)) {
padding-left: 1.6em;
}
- .lg\:prose-xl :where(ul):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(ul):not(:where([class~="not-prose"] *)) {
padding-left: 1.6em;
}
- .lg\:prose-xl :where(li):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(li):not(:where([class~="not-prose"] *)) {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
- .lg\:prose-xl :where(ol > li):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(ol > li):not(:where([class~="not-prose"] *)) {
padding-left: 0.4em;
}
- .lg\:prose-xl :where(ul > li):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(ul > li):not(:where([class~="not-prose"] *)) {
padding-left: 0.4em;
}
- .lg\:prose-xl > :where(ul > li p):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl > :where(ul > li p):not(:where([class~="not-prose"] *)) {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
- .lg\:prose-xl
- > :where(ul > li > *:first-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl > :where(ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 1.2em;
}
- .lg\:prose-xl
- > :where(ul > li > *:last-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl > :where(ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 1.2em;
}
- .lg\:prose-xl
- > :where(ol > li > *:first-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl > :where(ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 1.2em;
}
- .lg\:prose-xl
- > :where(ol > li > *:last-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl > :where(ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 1.2em;
}
- .lg\:prose-xl
- :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"] *)) {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
- .lg\:prose-xl :where(hr):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(hr):not(:where([class~="not-prose"] *)) {
margin-top: 2.8em;
margin-bottom: 2.8em;
}
- .lg\:prose-xl :where(hr + *):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(hr + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .lg\:prose-xl :where(h2 + *):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h2 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .lg\:prose-xl :where(h3 + *):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h3 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .lg\:prose-xl :where(h4 + *):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(h4 + *):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .lg\:prose-xl :where(table):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(table):not(:where([class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.5555556;
}
- .lg\:prose-xl :where(thead th):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(thead th):not(:where([class~="not-prose"] *)) {
padding-right: 0.6666667em;
padding-bottom: 0.8888889em;
padding-left: 0.6666667em;
}
- .lg\:prose-xl
- :where(thead th:first-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(thead th:first-child):not(:where([class~="not-prose"] *)) {
padding-left: 0;
}
- .lg\:prose-xl
- :where(thead th:last-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(thead th:last-child):not(:where([class~="not-prose"] *)) {
padding-right: 0;
}
- .lg\:prose-xl :where(tbody td):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(tbody td):not(:where([class~="not-prose"] *)) {
padding-top: 0.8888889em;
padding-right: 0.6666667em;
padding-bottom: 0.8888889em;
padding-left: 0.6666667em;
}
- .lg\:prose-xl
- :where(tbody td:first-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(tbody td:first-child):not(:where([class~="not-prose"] *)) {
padding-left: 0;
}
- .lg\:prose-xl
- :where(tbody td:last-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl :where(tbody td:last-child):not(:where([class~="not-prose"] *)) {
padding-right: 0;
}
- .lg\:prose-xl > :where(:first-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl > :where(:first-child):not(:where([class~="not-prose"] *)) {
margin-top: 0;
}
- .lg\:prose-xl > :where(:last-child):not(:where([class~='not-prose'] *)) {
+ .lg\:prose-xl > :where(:last-child):not(:where([class~="not-prose"] *)) {
margin-bottom: 0;
}
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 8c6a7ee..05e4ea2 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -37,6 +37,18 @@ tagsLimit = 20
# Light mode by default : light
darkmode = "light"
+ [params.ad]
+ # Google AdSense
+ # ex. ca-pub-0000000000000000
+ googleAdSense = ""
+
+ # ex. 000000000
+ adslot = ""
+
+ # Placement of ads
+ postTop = false
+ postBottom = false
+
[params.post]
# Show thumbnails
thumbnail = true
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 7698c61..ede9fd8 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,50 +1,88 @@
<footer class="{{ .Site.Params.base_color }} text-white p-6">
- {{ if .Site.Menus.foot }}
- <div class="flex justify-center w-full md:flex md:flex-row sm:items-center sm:w-auto mb-4">
- <div>
- {{ range .Site.Menus.foot }}
- <a href="{{ .URL }}"
- class="no-underline block sm:inline-block duration-200 text-white hover:opacity-50">
- {{ .Name }}
- </a>
- {{ end }}
- </div>
+ {{ if .Site.Menus.foot }}
+ <div class="flex justify-center w-full md:flex md:flex-row sm:items-center sm:w-auto mb-4">
+ <div>
+ {{ range .Site.Menus.foot }}
+ <a href="{{ .URL }}" class="no-underline block sm:inline-block duration-200 text-white hover:opacity-50">
+ {{ .Name }}
+ </a>
+ {{ end }}
</div>
- {{ end }}
- <div class="container max-w-screen-xl mr-auto ml-auto">
- <p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}" class="duration-200 hover:opacity-50">{{ .Site.Title }}</a></p>
- <p>Powered by <a href="https://gohugo.io/" class="duration-200 hover:opacity-50">Hugo</a>, Theme <a
- href="https://github.com/opera7133/Blonde" class="duration-200 hover:opacity-50">Blonde</a>.</p>
- </div>
- <script>
- var icon = document.getElementById("icon");
- var icon2 = document.getElementById("icon2");
- // On page load or when changing themes, best to add inline in `head` to avoid FOUC
- if (document.documentElement.classList.contains("dark") || localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
- icon.classList.remove("icon-moon");
- icon.classList.add("icon-sun");
- icon2.classList.remove("icon-moon");
- icon2.classList.add("icon-sun");
- document.documentElement.classList.add('dark')
- } else {
- document.documentElement.classList.remove('dark')
+ </div>
+ {{ end }}
+ <div class="container max-w-screen-xl mr-auto ml-auto">
+ <p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}" class="duration-200 hover:opacity-50">{{ .Site.Title }}</a>
+ </p>
+ <p>Powered by <a href="https://gohugo.io/" class="duration-200 hover:opacity-50">Hugo</a>, Theme <a
+ href="https://github.com/opera7133/Blonde" class="duration-200 hover:opacity-50">Blonde</a>.</p>
+ </div>
+ {{ if .Site.Params.ad.googleAdSense }}
+ <script>
+ (function (window, document) {
+ function main() {
+ var ad = document.createElement('script');
+ ad.async = true;
+ ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ .Site.Params.ad.googleAdSense }}';
+ ad.crossOrigin = "anonymous"
+ var sc = document.getElementsByTagName('script')[0];
+ sc.parentNode.insertBefore(ad, sc);
+ }
+
+ var lazyLoad = false;
+ function onLazyLoad() {
+ if (lazyLoad === false) {
+ lazyLoad = true;
+ window.removeEventListener('scroll', onLazyLoad);
+ window.removeEventListener('mousemove', onLazyLoad);
+ window.removeEventListener('mousedown', onLazyLoad);
+ window.removeEventListener('touchstart', onLazyLoad);
+ window.removeEventListener('keydown', onLazyLoad);
+ main();
}
- function toggleDarkMode() {
- if (document.documentElement.classList.contains('dark')) {
- icon.classList.remove("icon-sun");
- icon.classList.add("icon-moon");
- icon2.classList.remove("icon-sun");
- icon2.classList.add("icon-moon");
- document.documentElement.classList.remove('dark')
- localStorage.theme = 'light'
- } else {
- icon.classList.remove("icon-moon");
- icon.classList.add("icon-sun");
- icon2.classList.remove("icon-moon");
- icon2.classList.add("icon-sun");
- document.documentElement.classList.add('dark')
- localStorage.theme = 'dark'
+ }
+ window.addEventListener('scroll', onLazyLoad);
+ window.addEventListener('mousemove', onLazyLoad);
+ window.addEventListener('mousedown', onLazyLoad);
+ window.addEventListener('touchstart', onLazyLoad);
+ window.addEventListener('keydown', onLazyLoad);
+ window.addEventListener('load', function () {
+ if (window.pageYOffset) {
+ onLazyLoad();
+ window.setTimeout(onLazyLoad, 3000)
}
+ });
+ })(window, document);
+ </script>
+ {{ end }}
+ <script>
+ var icon = document.getElementById("icon");
+ var icon2 = document.getElementById("icon2");
+ // On page load or when changing themes, best to add inline in `head` to avoid FOUC
+ if (document.documentElement.classList.contains("dark") || localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
+ icon.classList.remove("icon-moon");
+ icon.classList.add("icon-sun");
+ icon2.classList.remove("icon-moon");
+ icon2.classList.add("icon-sun");
+ document.documentElement.classList.add('dark')
+ } else {
+ document.documentElement.classList.remove('dark')
+ }
+ function toggleDarkMode() {
+ if (document.documentElement.classList.contains('dark')) {
+ icon.classList.remove("icon-sun");
+ icon.classList.add("icon-moon");
+ icon2.classList.remove("icon-sun");
+ icon2.classList.add("icon-moon");
+ document.documentElement.classList.remove('dark')
+ localStorage.theme = 'light'
+ } else {
+ icon.classList.remove("icon-moon");
+ icon.classList.add("icon-sun");
+ icon2.classList.remove("icon-moon");
+ icon2.classList.add("icon-sun");
+ document.documentElement.classList.add('dark')
+ localStorage.theme = 'dark'
+ }
}
- </script>
-</footer>
+ </script>
+</footer> \ No newline at end of file
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 036b707..7aab72d 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -2,83 +2,97 @@
{{ define "main" }}
<div class="grid grid-cols-3 gap-4">
- {{ if .Site.Params.widgets.display }}
- <div class="col-span-3 lg:col-span-2 dark:text-white">
- {{ else }}
- <div class="col-span-3 dark:text-white">
- {{ end }}
- <div class="bg-white dark:bg-warmgray-900 p-5 my-4">
- <h1 class="mb-2 text-4xl font-bold">{{.Title}}</h1>
- <aside id="meta">
- <div>
- <section>
- <h4 id="date"><span class="icon-access_time mr-2"></span>{{ .Date.Format "2006/01/02" }}
- </h4>
- </section>
- {{ with .Params.tags }}
- <div id="tags">
- <span class="icon-local_offer mr-1"></span>
- {{ range . }}
- <a href='{{ "tags" | absURL }}/{{ . | urlize }}'>{{ . }}</a> |
- {{ end }}
- </div>
- {{ end }}
- </div>
- </aside>
- {{ if .Params.image }}
- <img class="py-4" src="{{ .Params.image | absURL }}">
- {{ end }}
- <div class="prose md:prose-lg lg:prose-xl max-w-none dark:prose-invert mt-5">{{.Content}}</div>
- <aside id="meta">
- {{ with .Params.categories }}
- <hr class="py-2">
- <div id="categories">
- <span class="icon-folder text-xl mr-1"></span>
- {{ range . }}
- <span
- class="inline-flex py-2 leading-4 mr-2 mb-2 content-center bg-gray-200 justify-center h-8 px-3 text-blue-500 duration-200 hover:text-black dark:bg-warmgray-800"><a
- href='{{ "categories" | absURL}}/{{ . | urlize }}'>{{ . }}</a></span>
- {{ end }}
- </div>
- {{ end }}
- </aside>
- </div>
- <div class="bg-white dark:bg-warmgray-900 p-5 my-4">
- <div class="grid grid-cols-2">
- <div class="col-span-1">
- {{ with .PrevInSection }}
- <a class="previous lg:text-2xl" href="{{.Permalink}}">
- <div
- class="transition-colors duration-300 border border-gray-600 hover:border-black h-auto m-3 text-center py-3 lg:py-1">
- <span class="icon-keyboard_arrow_left"></span> {{.Title}}
- </div>
- </a>
- {{ end }}
- </div>
- {{ with .NextInSection }}
- <a class="next lg:text-2xl" href="{{.Permalink}}">
- <div
- class="transition-colors duration-300 col-span-1 border border-gray-600 hover:border-black h-auto m-3 text-center py-3 lg:py-1">
- {{.Title}} <span class="icon-keyboard_arrow_right"></span>
- </div>
- </a>
- {{ end }}
- </div>
+ {{ if .Site.Params.widgets.display }}
+ <div class="col-span-3 lg:col-span-2 dark:text-white">
+ {{ else }}
+ <div class="col-span-3 dark:text-white">
+ {{ end }}
+ <div class="bg-white dark:bg-warmgray-900 p-5 my-4">
+ <h1 class="mb-2 text-4xl font-bold">{{.Title}}</h1>
+ <aside id="meta">
+ <div>
+ <section>
+ <h4 id="date"><span class="icon-access_time mr-2"></span>{{ .Date.Format "2006/01/02" }}
+ </h4>
+ </section>
+ {{ with .Params.tags }}
+ <div id="tags">
+ <span class="icon-local_offer mr-1"></span>
+ {{ range . }}
+ <a href='{{ "tags" | absURL }}/{{ . | urlize }}'>{{ . }}</a> |
+ {{ end }}
</div>
- <div class="bg-white dark:bg-warmgray-900 p-5 my-4">
- <div class="mb-3">
- {{ template "_internal/disqus.html" . }}
- </div>
+ {{ end }}
+ </div>
+ </aside>
+ {{ if .Params.image }}
+ <img class="py-4" src="{{ .Params.image | absURL }}">
+ {{ end }}
+ {{ if and (and (.Site.Params.ad.googleAdSense) (.Site.Params.ad.postTop)) (.Site.Params.ad.adslot) }}
+ <ins class="adsbygoogle" style="display:block" data-ad-client="{{.Site.Params.ad.googleAdSense}}"
+ data-ad-slot="{{.Site.Params.ad.adslot}}" data-ad-format="auto" data-full-width-responsive="true"></ins>
+ <script>
+ (adsbygoogle = window.adsbygoogle || []).push({});
+ </script>
+ {{ end }}
+ <div class="prose md:prose-lg lg:prose-xl max-w-none dark:prose-invert mt-5">{{.Content}}</div>
+ {{ if and (and (.Site.Params.ad.googleAdSense) (.Site.Params.ad.postBottom)) (.Site.Params.ad.adslot) }}
+ <ins class="adsbygoogle" style="display:block" data-ad-client="{{.Site.Params.ad.googleAdSense}}"
+ data-ad-slot="{{.Site.Params.ad.adslot}}" data-ad-format="auto" data-full-width-responsive="true"></ins>
+ <script>
+ (adsbygoogle = window.adsbygoogle || []).push({});
+ </script>
+ {{ end }}
+ <aside id="meta">
+ {{ with .Params.categories }}
+ <hr class="py-2">
+ <div id="categories">
+ <span class="icon-folder text-xl mr-1"></span>
+ {{ range . }}
+ <span
+ class="inline-flex py-2 leading-4 mr-2 mb-2 content-center bg-gray-200 justify-center h-8 px-3 text-blue-500 duration-200 hover:text-black dark:bg-warmgray-800"><a
+ href='{{ "categories" | absURL}}/{{ . | urlize }}'>{{ . }}</a></span>
+ {{ end }}
+ </div>
+ {{ end }}
+ </aside>
+ </div>
+ <div class="bg-white dark:bg-warmgray-900 p-5 my-4">
+ <div class="grid grid-cols-2">
+ <div class="col-span-1">
+ {{ with .PrevInSection }}
+ <a class="previous lg:text-2xl" href="{{.Permalink}}">
+ <div
+ class="transition-colors duration-300 border border-gray-600 hover:border-black h-auto m-3 text-center py-3 lg:py-1">
+ <span class="icon-keyboard_arrow_left"></span> {{.Title}}
+ </div>
+ </a>
+ {{ end }}
+ </div>
+ {{ with .NextInSection }}
+ <a class="next lg:text-2xl" href="{{.Permalink}}">
+ <div
+ class="transition-colors duration-300 col-span-1 border border-gray-600 hover:border-black h-auto m-3 text-center py-3 lg:py-1">
+ {{.Title}} <span class="icon-keyboard_arrow_right"></span>
</div>
+ </a>
+ {{ end }}
</div>
- {{ if .Site.Params.widgets.display }}
- <div class="hidden lg:block lg:col-span-1">
- {{ partial "widgets/search.html" . }}
- {{ partial "widgets/archive.html" . }}
- {{ partial "widgets/category.html" . }}
- {{ partial "widgets/tags.html" . }}
- {{ partial "widgets/recent.html" . }}
+ </div>
+ <div class="bg-white dark:bg-warmgray-900 p-5 my-4">
+ <div class="mb-3">
+ {{ template "_internal/disqus.html" . }}
</div>
- {{ end }}
+ </div>
+ </div>
+ {{ if .Site.Params.widgets.display }}
+ <div class="hidden lg:block lg:col-span-1">
+ {{ partial "widgets/search.html" . }}
+ {{ partial "widgets/archive.html" . }}
+ {{ partial "widgets/category.html" . }}
+ {{ partial "widgets/tags.html" . }}
+ {{ partial "widgets/recent.html" . }}
</div>
{{ end }}
+ </div>
+ {{ end }} \ No newline at end of file