Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
a283ea88b5 | |||
d9eccf6127 | |||
21620ae214 | |||
a5f5687065 | |||
0edfefba5d | |||
7177f517c1 | |||
35e0dcdde2 | |||
170db40535 | |||
a507c01a0a | |||
b6c2bafbdc | |||
3c03c1b0ea | |||
c57581a3b3 | |||
9cee0bf239 | |||
a45f003c7a | |||
241ee05a3b | |||
75878308e0 | |||
d2397d672d | |||
ff186322b8 | |||
7910e41eb6 |
@ -23,3 +23,7 @@ eg:
|
|||||||
- **Single Page Website** (https://github.com/justinnuwin/hugo-theme-terminal)
|
- **Single Page Website** (https://github.com/justinnuwin/hugo-theme-terminal)
|
||||||
- A layout where the homepage can render lists of pages and the navigation menu can link to sections on the homepage.
|
- A layout where the homepage can render lists of pages and the navigation menu can link to sections on the homepage.
|
||||||
- Justin Nguyen, software and hardware developer.
|
- Justin Nguyen, software and hardware developer.
|
||||||
|
|
||||||
|
- **Support for beautiful *KaTeX* formulae** ([amtoine/hugo-theme-terminal-katex](https://github.com/amtoine/hugo-theme-terminal-katex))
|
||||||
|
- SHORT DESCRIPTION
|
||||||
|
- Antoine Stevan ([@amtoine](https://github.com/amtoine)), software engineer into open source
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2019 panr
|
Copyright (c) 2024 panr
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
this software and associated documentation files (the "Software"), to deal in
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
12
README.md
@ -1,12 +1,14 @@
|
|||||||
# Terminal
|
# Terminal
|
||||||
|
|
||||||
----
|
**Demo: https://panr.github.io/hugo-theme-terminal-demo/**
|
||||||
|
|
||||||
|
**Create your own color scheme: https://panr.github.io/terminal-css/**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DEMO - https://panr.github.io/hugo-theme-terminal-demo/
|
---
|
||||||
|
|
||||||
### ⚠️ The theme needs at least Hugo **Extended** v0.90.x.
|
⚠️ The theme needs at least Hugo **Extended** v0.90.x.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -26,7 +28,7 @@
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- fully customizable color schemes generated by [**terminal.css**](https://panr.github.io/terminal-css/).
|
- fully customizable color schemes generated by [**Terminal.css**](https://panr.github.io/terminal-css/).
|
||||||
- [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous!
|
- [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous!
|
||||||
- **really nice duotone**, custom syntax highlighting based on [**PrismJS**](https://prismjs.com)
|
- **really nice duotone**, custom syntax highlighting based on [**PrismJS**](https://prismjs.com)
|
||||||
- fully responsive
|
- fully responsive
|
||||||
@ -110,7 +112,7 @@ and in your config file add:
|
|||||||
```toml
|
```toml
|
||||||
[module]
|
[module]
|
||||||
# this is needed when you fetch the theme as a submodule to your repo.
|
# this is needed when you fetch the theme as a submodule to your repo.
|
||||||
# replacements = "github.com/panr/hugo-theme-terminal -> themes/terminal"
|
# replacements = "github.com/panr/hugo-theme-terminal/4 -> themes/terminal"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = 'github.com/panr/hugo-theme-terminal/v4'
|
path = 'github.com/panr/hugo-theme-terminal/v4'
|
||||||
```
|
```
|
||||||
|
4
USERS.md
@ -56,7 +56,9 @@
|
|||||||
- https://sir-photch.xyz **Sir-Photch** (ComSci-student. German Blog)
|
- https://sir-photch.xyz **Sir-Photch** (ComSci-student. German Blog)
|
||||||
- https://drewmorris.info **Drew Morris** (Mathematician && Computer Scientist)
|
- https://drewmorris.info **Drew Morris** (Mathematician && Computer Scientist)
|
||||||
- https://blog.darkiiiiiice.com **MarioMang** (Software Developer)
|
- https://blog.darkiiiiiice.com **MarioMang** (Software Developer)
|
||||||
|
- https://www.sagbot.com **E. HADDAG** (Computer Scientist)
|
||||||
|
- https://adamperkowski.dev **Adam Perkowski** (A Random Developer)
|
||||||
|
- https://imortio.github.io **Azrul** (CompSci Student)
|
||||||
<!--
|
<!--
|
||||||
TEMPLATE:
|
TEMPLATE:
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ a.button {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 8px 18px;
|
padding: 8px 18px;
|
||||||
margin: 5px 0;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 8;
|
border-radius: 8;
|
||||||
@ -73,19 +72,19 @@ a.button.inline:hover {
|
|||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button.inline:before {
|
a.button.inline::before {
|
||||||
content: "["
|
content: "["
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button.inline:after {
|
a.button.inline::after {
|
||||||
content: "]"
|
content: "]"
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button.inline.prev:before {
|
a.button.inline.prev::before {
|
||||||
content: "← ["
|
content: "← ["
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button.inline.next:after {
|
a.button.inline.next::after {
|
||||||
content: "] →"
|
content: "] →"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _code.scss */
|
|
||||||
pre {
|
pre {
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,19 @@
|
|||||||
/* _font.scss */
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-family: "Fira Code";
|
font-family: "Fira Code";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url("../fonts/FiraCode-Regular.woff") format("woff");
|
src: url("../fonts/FiraCode-Regular.woff") format("woff");
|
||||||
|
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
|
||||||
|
font-variant-ligatures: contextual;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-family: "Fira Code";
|
font-family: "Fira Code";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
src: url("../fonts/FiraCode-Bold.woff") format("woff");
|
src: url("../fonts/FiraCode-Bold.woff") format("woff");
|
||||||
|
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
|
||||||
|
font-variant-ligatures: contextual;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _footer.scss */
|
|
||||||
.footer {
|
.footer {
|
||||||
padding: 40px 0;
|
padding: 40px 0;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _gist.scss */
|
|
||||||
body .gist .blob-num,
|
body .gist .blob-num,
|
||||||
body .gist .blob-code-inner {
|
body .gist .blob-code-inner {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _header.scss */
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _main.scss */
|
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@ -20,8 +19,6 @@ body {
|
|||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
text-rendering: optimizelegibility;
|
text-rendering: optimizelegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
|
|
||||||
font-variant-ligatures: contextual;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
text-size-adjust: 100%;
|
text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _menu.scss */
|
|
||||||
.navigation-menu {
|
.navigation-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _pagination.scss */
|
|
||||||
.pagination {
|
.pagination {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _post.scss */
|
|
||||||
.index-content {
|
.index-content {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
@ -49,6 +48,7 @@
|
|||||||
margin-bottom: 15px !important;
|
margin-bottom: 15px !important;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
border-bottom: 3px dotted var(--accent);
|
border-bottom: 3px dotted var(--accent);
|
||||||
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-title::after {
|
.post-title::after {
|
||||||
@ -109,6 +109,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hanchor {
|
.hanchor {
|
||||||
|
position: absolute;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
/* _prism.scss */
|
|
||||||
|
|
||||||
/* PrismJS 1.24.1
|
/* PrismJS 1.24.1
|
||||||
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+bash+c+csharp+cpp+cmake+coffeescript+csp+css-extras+diff+django+docker+elixir+elm+erlang+fsharp+flow+git+go+graphql+haml+handlebars+haskell+http+java+json+kotlin+latex+less+llvm+makefile+markdown+markup-templating+nasm+objectivec+ocaml+perl+php+php-extras+powershell+processing+pug+python+r+jsx+tsx+reason+ruby+rust+sass+scss+scala+scheme+sql+stylus+swift+textile+toml+twig+typescript+vim+visual-basic+wasm+yaml&plugins=line-highlight+line-numbers+jsonp-highlight+highlight-keywords+command-line+toolbar+copy-to-clipboard */
|
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+bash+c+csharp+cpp+cmake+coffeescript+csp+css-extras+diff+django+docker+elixir+elm+erlang+fsharp+flow+git+go+graphql+haml+handlebars+haskell+http+java+json+kotlin+latex+less+llvm+makefile+markdown+markup-templating+nasm+objectivec+ocaml+perl+php+php-extras+powershell+processing+pug+python+r+jsx+tsx+reason+ruby+rust+sass+scss+scala+scheme+sql+stylus+swift+textile+toml+twig+typescript+vim+visual-basic+wasm+yaml&plugins=line-highlight+line-numbers+jsonp-highlight+highlight-keywords+command-line+toolbar+copy-to-clipboard */
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _syntax.scss */
|
|
||||||
code.language-css,
|
code.language-css,
|
||||||
code.language-scss,
|
code.language-scss,
|
||||||
.token.boolean,
|
.token.boolean,
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&family=Fira+Code:wght@700&display=swap");
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background: #222129;
|
--background: #1a170f;
|
||||||
--foreground: #ffffff;
|
--foreground: #eceae5;
|
||||||
--accent: #ffa86a;
|
--accent: #eec35e;
|
||||||
--radius: 0px;
|
--font-size: 1rem;
|
||||||
|
--line-height: 1.54rem;
|
||||||
|
--radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*:before,
|
*::before,
|
||||||
*:after {
|
*::after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -22,61 +26,120 @@ body {
|
|||||||
"Fira Code",
|
"Fira Code",
|
||||||
Monaco,
|
Monaco,
|
||||||
Consolas,
|
Consolas,
|
||||||
Ubuntu Mono,
|
"Ubuntu Mono",
|
||||||
monospace;
|
monospace;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
line-height: 1.54;
|
font-weight: 400;
|
||||||
|
line-height: var(--line-height);
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizelegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
|
|
||||||
font-variant-ligatures: contextual;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
-webkit-text-size-adjust: 100%;
|
text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
::placeholder {
|
::placeholder {
|
||||||
color: color-mix(in srgb var(--foreground) 50%, black);
|
color: color-mix(in srgb var(--foreground) 50%, black);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2 {
|
||||||
|
font-size: calc(var(--font-size) * 1.1);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-thickness: 2px;
|
||||||
|
text-underline-offset: calc(var(--font-size) * 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
font-size: calc(var(--font-size) * 1.1);
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
p,
|
||||||
|
ul,
|
||||||
|
ol,
|
||||||
|
img,
|
||||||
|
figure,
|
||||||
|
video,
|
||||||
|
table {
|
||||||
|
margin: calc(var(--line-height) * 1.2) 0;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
button,
|
|
||||||
.button,
|
button {
|
||||||
a.button {
|
|
||||||
position: relative;
|
position: relative;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: var(--accent);
|
background: transparent;
|
||||||
color: var(--background);
|
color: var(--accent);
|
||||||
padding: 5px 18px;
|
padding: 5px 18px;
|
||||||
margin: 5px 0;
|
border: 4px solid var(--accent);
|
||||||
border: 1px solid var(--accent);
|
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
transition: background 0.15s linear;
|
transition: background 0.15s linear;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
button:hover,
|
|
||||||
.button:hover,
|
button:hover {
|
||||||
a.button:hover {
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
||||||
background: color-mix(in srgb, var(--accent) 85%, transparent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus-visible,
|
button:focus-visible,
|
||||||
.button:focus-visible,
|
|
||||||
a.button:focus-visible,
|
|
||||||
a:focus-visible {
|
a:focus-visible {
|
||||||
outline: 1px solid var(--accent);
|
outline: 1px solid var(--accent);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border: 1px dashed var(--foreground);
|
border: 2px solid var(--foreground);
|
||||||
|
border-radius: calc(var(--radius) * 1.6);
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fieldset *:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset input,
|
||||||
|
fieldset select,
|
||||||
|
fieldset textarea,
|
||||||
|
fieldset label,
|
||||||
|
fieldset button {
|
||||||
|
margin-top: calc(var(--line-height) * 0.5);
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
label input {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
textarea,
|
textarea,
|
||||||
select {
|
select {
|
||||||
@ -85,10 +148,14 @@ select {
|
|||||||
border: 1px solid var(--foreground);
|
border: 1px solid var(--foreground);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 5px 0;
|
|
||||||
font: inherit;
|
font: inherit;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"] {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
input:focus-visible,
|
input:focus-visible,
|
||||||
input:active,
|
input:active,
|
||||||
textarea:focus-visible,
|
textarea:focus-visible,
|
||||||
@ -99,11 +166,13 @@ select:active {
|
|||||||
outline: 1px solid var(--accent);
|
outline: 1px solid var(--accent);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:active,
|
input:active,
|
||||||
textarea:active,
|
textarea:active,
|
||||||
select:active {
|
select:active {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
45deg,
|
45deg,
|
||||||
@ -118,17 +187,21 @@ select {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding-right: 40px;
|
padding-right: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
select option {
|
select option {
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
box-shadow: inset 0 0 0 3px var(--background);
|
box-shadow: inset 0 0 0 3px var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"]:checked {
|
input[type="checkbox"]:checked {
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@ -137,6 +210,12 @@ img {
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
figure img,
|
||||||
|
figure video {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
figure figcaption {
|
figure figcaption {
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
color: var(--background);
|
color: var(--background);
|
||||||
@ -144,37 +223,47 @@ figure figcaption {
|
|||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-top: -8px;
|
margin-top: -8px;
|
||||||
|
border-radius: 0 0 var(--radius) var(--radius);
|
||||||
}
|
}
|
||||||
p {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
margin-left: 4ch;
|
margin-left: 4ch;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul ul,
|
||||||
|
ul ol,
|
||||||
|
ol ul,
|
||||||
|
ol ol {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
li::marker {
|
li::marker {
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul li,
|
ul li,
|
||||||
ol li {
|
ol li {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
code,
|
code,
|
||||||
kbd {
|
kbd {
|
||||||
font-family:
|
font-family:
|
||||||
"Fira Code",
|
"Fira Code",
|
||||||
Monaco,
|
Monaco,
|
||||||
Consolas,
|
Consolas,
|
||||||
Ubuntu Mono,
|
"Ubuntu Mono",
|
||||||
monospace !important;
|
monospace !important;
|
||||||
font-feature-settings: normal;
|
font-feature-settings: normal;
|
||||||
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
background: color-mix(in srgb, var(--foreground) 5%, transparent);
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
padding: 1px 6px;
|
padding: 1px 6px;
|
||||||
margin: 0 2px;
|
margin: 0 2px;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
kbd {
|
kbd {
|
||||||
border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
|
border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
|
||||||
border-left: 1px solid var(--accent);
|
border-left: 1px solid var(--accent);
|
||||||
@ -182,21 +271,24 @@ kbd {
|
|||||||
border-bottom: 4px solid var(--accent);
|
border-bottom: 4px solid var(--accent);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
code code {
|
code code {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
tab-size: 4;
|
tab-size: 4;
|
||||||
background: color-mix(in srgb, var(--accent) 5%, transparent) !important;
|
background: color-mix(in srgb, var(--foreground) 5%, transparent) !important;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
padding: 20px 10px;
|
padding: 20px 10px;
|
||||||
font-size: 0.95rem !important;
|
font-size: 0.95rem !important;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
|
border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre code {
|
pre code {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -204,28 +296,31 @@ pre code {
|
|||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
abbr {
|
abbr {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-decoration-style: wavy;
|
text-decoration-style: wavy;
|
||||||
text-decoration-color: var(--accent);
|
text-decoration-color: var(--accent);
|
||||||
cursor: help;
|
cursor: help;
|
||||||
}
|
}
|
||||||
abbr:hover:before {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
sub {
|
sub {
|
||||||
bottom: -0.25em;
|
bottom: -0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
top: -0.25em;
|
top: -0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
background: color-mix(in srgb, var(--accent) 45%, transparent);
|
background: color-mix(in srgb, var(--accent) 45%, transparent);
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
position: relative;
|
position: relative;
|
||||||
border-top: 1px solid var(--accent);
|
border-top: 1px solid var(--accent);
|
||||||
@ -233,38 +328,46 @@ blockquote {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 25px;
|
padding: 25px;
|
||||||
}
|
}
|
||||||
blockquote:before {
|
|
||||||
|
blockquote::before {
|
||||||
content: ">";
|
content: ">";
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote p:first-child {
|
blockquote p:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote p:last-child {
|
blockquote p:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
table-layout: auto;
|
table-layout: auto;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
table,
|
table,
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
border: 1px dashed var(--accent);
|
border: 2px solid var(--foreground);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
color: var(--foreground);
|
||||||
color: var(--accent);
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
height: 1px;
|
height: 2px;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* _terms.scss */
|
|
||||||
.terms h3 {
|
.terms h3 {
|
||||||
font-size: initial;
|
font-size: initial;
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 173 KiB After Width: | Height: | Size: 208 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
BIN
images/tn.png
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
@ -16,9 +16,9 @@
|
|||||||
|
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
<article class="post on-list">
|
<article class="post on-list">
|
||||||
<h1 class="post-title">
|
<h2 class="post-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h1>
|
</h2>
|
||||||
|
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- if .Date -}}
|
{{- if .Date -}}
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
<div class="posts">
|
<div class="posts">
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<article class="post on-list">
|
<article class="post on-list">
|
||||||
<h1 class="post-title">
|
<h2 class="post-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h1>
|
</h2>
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- if .Date -}}
|
{{- if .Date -}}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
@ -37,15 +37,15 @@
|
|||||||
{{ if .Params.showFullContent }}
|
{{ if .Params.showFullContent }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ else if .Description }}
|
{{ else if .Description }}
|
||||||
{{ .Description | markdownify }}
|
<p>{{ .Description | markdownify }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ if not .Params.showFullContent }}
|
{{ if not .Params.showFullContent }}
|
||||||
<div>
|
<div>
|
||||||
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
|
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
{{ if .Params.showFullContent }}
|
{{ if .Params.showFullContent }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ else if .Description }}
|
{{ else if .Description }}
|
||||||
{{ .Description | markdownify }}
|
<p>{{ .Description | markdownify }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
{{ if not .Params.showFullContent }}
|
{{ if not .Params.showFullContent }}
|
||||||
<div>
|
<div>
|
||||||
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
|
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{{ $type := .Type }}
|
{{ $type := .Type }}
|
||||||
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||||
{{ $name := .Name }}
|
{{ $name := .Name }}
|
||||||
{{ $count := .Count }}
|
{{ $count := .Count }}
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
||||||
<li>
|
<li>
|
||||||
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} [{{ $count }}]</a>
|
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} [{{ $count }}]</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|