plain site; demo content added; re-terminal theme enabled; some theme customizations

This commit is contained in:
2025-04-05 23:13:00 +02:00
parent 2247bf4587
commit 77fe18522e
108 changed files with 13429 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
+++
title = "About"
date = "2024-07-30"
author = "Mirus"
hideComments=true
+++
# Hello in a new age
You can call me Mirus and I forked the original Terminal theme for Hugo, because Radek, the original creator of the theme stop the maintenance and archived the repo.
So I already pushed a few improvements that I did for my humble blog and I'm going to add some more features in the future, also any contribution is welcome
Below you can read the original about from Radek
```text
# Hi there
My name is Radek and I'm the author of this theme.
I made it to help you present your ideas easier.
We all know how hard is to start something on the web,
especially these days. You need to prepare a bunch of stuff,
configure them and when thats done — create the content.
This theme is pretty basic and covers all of the essentials.
All you have to do is start typing!
The theme includes:
- **5 duotone themes**,
depending on your preferences (orange, red, blue, green, pink)
- [**Fira Code**](https://github.com/tonsky/FiraCode)
as default monospaced font. It's gorgeous!
- **really nice, custom duotone** syntax highlighting based on
[**PrismJS**](https://prismjs.com)
- mobile friendly layout
So, there you have it... enjoy!
```

View File

@@ -0,0 +1,66 @@
+++
title = "CSS Variables update"
date = "2024-07-30"
author = "Mirus"
cover = "img/css-variables-update.webp"
coverCaption = "By the way, you can add a caption for your cover"
description = "A small demo of native CSS Variables. You can create your very own re-Terminal today!"
layout = "css-vars-showcase"
Toc=true
+++
## What is going on?
Hello. This is a first step toward color schema flexibility.
You still can use existing predefined `accent` colors from the list:
- blue
- green
- orange
- pink
- red
but if you need to pick another accent colors you can do it with the help of native CSS Variables.
Just create, if you haven't any yet, `static/style.css`
and redefine two CSS variables, like this
```css
:root {
--accent: blue;
--accent-contrast-color: yellow;
}
```
### Any other CSS Variable I should know?
You can find all of them in the browser's page inspector, but here is the list with default values anyway:
```css
:root {
--accent: #23B0FF; /* 1 of 5 basic colors */
--background: color-mix(in srgb, var(--accent) 2%, #1D1E28 98%); /* background color; inherit shades of the accent */
--accent-contrast-color: black; /* mainly uses for text on the accent backgrounds but not limited */
--color: white; /* text color, also some other text use the variable in color mixing */
--border-color: rgba(255, 255, 255, .1); /* border color */
/* code syntax */
/* take a look at themes/re-terminal/assets/css/syntax.scss to understand in detail which color stands for */
--syntax-func-color: color-mix(in srgb, var(--accent) 70%, #999 30%);
--syntax-var-color: color-mix(in srgb, var(--accent) 90%, transparent);
--syntax-value-color: color-mix(in srgb, var(--accent), white);
/* breakpoints */
/* unfortunately, native CSS variables don't support media queries, so use SCSS vars instead */
$phone: 684px;
$tablet: 900px;
}
```
### Future plans
Already right now you can play with CSS Variables and achieve decent results, but I hope will work on some light-ish presets and maybe on exposing event more tokens to the users.
## The interactive demo

View File

@@ -0,0 +1,45 @@
+++
title = "Hello Friend, re-Terminal is back!"
date = "2024-07-30"
author = "Mirus"
cover = "img/hello.jpg"
description = "The popular theme for Hugo Terminal is reborn in re-Terminal fork. Let's make the Radek's work continue to live"
hideComments=true
+++
# Hello in a new age
You can call me Mirus and I forked the original Terminal theme for Hugo, because Radek, the original creator of the theme stop the maintenance and archived the repo.
So I already pushed a few improvements that I did for my humble blog and I'm going to add some more features in the future, also any contribution is welcome
Below you can read the original about from Radek
```text
# Hi there
My name is Radek and I'm the author of this theme.
I made it to help you present your ideas easier.
We all know how hard is to start something on the web,
especially these days. You need to prepare a bunch of stuff,
configure them and when thats done — create the content.
This theme is pretty basic and covers all of the essentials.
All you have to do is start typing!
The theme includes:
- **5 duotone themes**,
depending on your preferences (orange, red, blue, green, pink)
- [**Fira Code**](https://github.com/tonsky/FiraCode)
as default monospaced font. It's gorgeous!
- **really nice, custom duotone** syntax highlighting based on
[**PrismJS**](https://prismjs.com)
- mobile friendly layout
So, there you have it... enjoy!
```
[a link example](https://re-terminal.nebroeser.com)

View File

@@ -0,0 +1,27 @@
+++
title = "Introducing Paper a light theme"
date = "2025-03-12"
author = "Mirus"
cover = "img/paper.jpeg"
coverCaption = "The first light theme by community member trviph"
description = "As planned, re-Terminal got the first prebuilt light theme. Read some details in the article"
tags=["theme", "light"]
+++
## About Paper
We have an issue on the [GitHub](https://github.com/mirus-ua/hugo-theme-re-terminal/issues/10) about the built-in light themes for re-Terminal Hugo Theme, and today I'm glad to introduce the very first light theme made by [trviph](https://github.com/trviph) that is called `Paper`.
You can enable it via config
```yaml
[params]
themeColor = "paper"
```
## Tech enablers
With the new theme we got a few handy improvements:
- `--menu-color` a new CSS Variable
- `assets/css/variables-light.scss` a new conditional set of variables for the light themes; you can start your very own theme with [CSS Variables](/posts/css-vars/) and better defaults if you aren't on the dark side
## Outro
If you want to add your vision of a perfect accessible light theme, I'm gladly accept your contribution

View File

@@ -0,0 +1,88 @@
+++
title= "Showcase"
date= "2018-07-18"
author= "Hello Robot"
hideComments= true
+++
# Features in updates
- [native CSS variables showcase](/posts/css-vars/)
## Header 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec interdum metus. Aenean rutrum ligula sodales ex auctor, sed tempus dui mollis. Curabitur ipsum dui, aliquet nec commodo at, tristique eget ante. **Donec quis dolor nec nunc mollis interdum vel in purus**. Sed vitae leo scelerisque, sollicitudin elit sed, congue ante. In augue nisl, vestibulum commodo est a, tristique porttitor est. Proin laoreet iaculis ornare. Nullam ut neque quam.
> Fusce pharetra suscipit orci nec tempor. Quisque vitae sem sit amet sem mollis consequat. Sed at imperdiet lorem. Vestibulum pharetra faucibus odio, ac feugiat tellus sollicitudin at. Pellentesque varius tristique mi imperdiet dapibus. Duis orci odio, sodales lacinia venenatis sit amet, feugiat et diam.
### Header 3
Nulla libero turpis, lacinia vitae cursus ut, auctor dictum nisl. Fusce varius felis nec sem ullamcorper, at convallis nisi vestibulum. Duis risus odio, porta sit amet placerat mollis, tincidunt non mauris. Suspendisse fringilla, `odio a dignissim pharetra`, est urna sollicitudin urna, eu scelerisque magna ex vitae tellus.
```css
/* PostCSS code */
pre {
background: #1a1a1d;
padding: 20px;
border-radius: 8px;
font-size: 1rem;
overflow: auto;
@media ($phone) {
white-space: pre-wrap;
word-wrap: break-word;
}
code {
background: none !important;
color: #ccc;
padding: 0;
font-size: inherit;
}
}
```
```js
// JS code
const menuTrigger = document.querySelector('.menu-trigger')
const menu = document.querySelector('.menu')
const mobileQuery = getComputedStyle(document.body).getPropertyValue('--phoneWidth')
const isMobile = () => window.matchMedia(mobileQuery).matches
const isMobileMenu = () => {
menuTrigger.classList.toggle('hidden', !isMobile())
menu.classList.toggle('hidden', isMobile())
}
isMobileMenu()
menuTrigger.addEventListener('click', () => menu.classList.toggle('hidden'))
window.addEventListener('resize', isMobileMenu)
```
```html
<!-- HTML code -->
<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
```
#### Header 4
Curabitur scelerisque felis viverra varius scelerisque. Ut enim libero, molestie gravida blandit at, mollis ornare tellus. Cras arcu mi, ultrices vel pulvinar vel, volutpat eu tortor. Nullam nec eros quis massa ultrices iaculis sed in metus. Praesent sollicitudin sem sit amet orci tempor gravida.
- Maecenas elementum vitae nibh vitae porttitor.
- Aenean consequat, risus ut cursus placerat, arcu nulla sodales risus, ut molestie tellus tellus et dui.
- Integer imperdiet turpis vitae lacus imperdiet, ut ornare ligula auctor. Integer in mi eu velit vehicula suscipit eget vulputate nulla.
- Etiam vitae enim quis velit lobortis placerat a ut sem.
- Curabitur lobortis ante sit amet orci pulvinar, sollicitudin viverra nunc accumsan.
- Praesent fermentum orci quis leo facilisis posuere.
Aliquam erat volutpat. In hac habitasse platea dictumst. Nunc ut tincidunt mauris. Sed at gravida risus, id semper magna. Nullam vitae enim mattis, sodales neque non, pharetra elit. Cras sit amet sagittis augue, et finibus turpis. Ut tempus tincidunt diam vel pharetra. Nulla porttitor odio sit amet nulla scelerisque, quis aliquam mi imperdiet. Sed tincidunt dui vel tellus vestibulum rhoncus. Donec tempus ultrices velit.

View File

@@ -0,0 +1,76 @@
baseurl = "https://re-terminal.nebrowser.com"
languageCode = "en-us"
# theme = "hugo-theme-re-terminal"
pagination.pagerSize = 5
[params]
contentTypeName = "posts"
themeColor = "blue"
showMenuItems = 3
fullWidthTheme = false
centerTheme = true
readingTime = true
[params.banner]
dismissible = false
text = "Check it out on GitHub"
url = "https://github.com/mirus-ua/hugo-theme-re-terminal"
[languages]
[languages.en.params]
title = "re-Terminal"
subtitle = "A simple, retro theme for Hugo"
keywords = ""
copyright = ""
menuMore = "Show more"
readMore = "Read more"
readOtherPosts = "Read other posts"
[languages.en.params.logo]
logoText = "re-Terminal"
logoHomeLink = "/"
[languages.en.menu]
[[languages.en.menu.main]]
identifier = "submenu"
name = "Sub menus"
weight = 10
[[languages.en.menu.main]]
identifier = "subabout"
name = "About"
url = "/about"
parent = "submenu"
[[languages.en.menu.main]]
identifier = "subshowcase"
name = "Showcase"
url = "/showcase"
parent = "submenu"
[[languages.en.menu.main]]
identifier = "about"
name = "About"
url = "/about"
[[languages.en.menu.main]]
identifier = "showcase"
name = "Showcase"
url = "/showcase"
# Only for demo deploy perpous
[module]
[[module.mounts]]
source = 'demoSite/content'
target = 'content'
[[module.mounts]]
source = 'demoSite/static'
target = 'static'
[[module.mounts]]
source = 'static'
target = 'static'
[[module.mounts]]
source = 'layouts'
target = 'layouts'
[[module.mounts]]
source = 'demoSite/layouts'
target = 'layouts'
[[module.mounts]]
source = 'archetypes'
target = 'archetypes'

View File

@@ -0,0 +1,12 @@
<div class="utterances">
<iframe class="utterances-frame"></iframe>
</div>
<script
src="https://utteranc.es/client.js"
repo="mirus-ua/hugo-theme-re-terminal"
issue-term="pathname"
label="Comment ✨💬✨"
theme="dark-blue"
crossorigin="anonymous"
async
></script>

View File

@@ -0,0 +1,51 @@
{{ define "head" }}
<style>
.color-container {
background-color: var(--accent);
padding: 10px;
color: var(--accent-contrast-color)
}
</style>
{{ end }}{{ define "main" }}
<div class="post">
<!-- Common header, cover, etc. -->
{{ partial "single_basic.html" . }}
<form oninput="accentColor.value=accentColorPicker.value">
<output class="color-container" name="accentColor" for="accentColorPicker">#------</output>
<label>
Pick accent color
<input id="accentColorPicker" name="accentColorPicker" type="color" />
</label>
</form>
<form oninput="accentContrastColor.value=accentContrastColorPicker.value;">
<output class="color-container" name="accentContrastColor" for="accentContrastColorPicker">#------</output>
<label>
Pick accent contrast color
<input id="accentContrastColorPicker" name="accentContrastColorPicker" type="color" />
</label>
</form>
<script defer>
const root = document.querySelector(':root');
const accentPicker = document.getElementById("accentColorPicker");
const accentListener = accentPicker.addEventListener("input", () => {
if (accentPicker.value) {
root.style.setProperty('--accent', accentPicker.value);
}
})
const accentContrastPicker = document.getElementById("accentContrastColorPicker");
const accentContrastListener = accentContrastPicker.addEventListener("input", () => {
if (accentContrastPicker.value) {
root.style.setProperty('--accent-contrast-color', accentContrastPicker.value);
}
})
</script>
{{ if eq .Type $.Site.Params.contentTypeName }} {{ partial
"posts_pagination.html" . }} {{ end }} {{ if not (.Params.hideComments |
default false) }} {{ partial "comments.html" . }} {{ end }}
</div>
{{ end }}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB