init
This commit is contained in:
commit
7dc8150561
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.hugo_build.lock
|
||||||
|
public/
|
41
content/about.md
Normal file
41
content/about.md
Normal 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 that’s 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!
|
||||||
|
```
|
63
content/posts/css-vars.md
Normal file
63
content/posts/css-vars.md
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
+++
|
||||||
|
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 */
|
||||||
|
--phone: "max-width: 684px"; /* phone breakpoint */
|
||||||
|
--tablet: "max-width: 900px"; /* tablet breakpoint */
|
||||||
|
|
||||||
|
/* 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);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### 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
|
43
content/posts/hello.md
Normal file
43
content/posts/hello.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
+++
|
||||||
|
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 that’s 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!
|
||||||
|
```
|
88
content/showcase.md
Normal file
88
content/showcase.md
Normal 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.
|
84
hugo.toml
Normal file
84
hugo.toml
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
baseurl = "https://re-terminal.nebrowser.com"
|
||||||
|
defaultContentLanguage = "fr"
|
||||||
|
languageCode = "fr-fr"
|
||||||
|
theme = "hugo-theme-re-terminal"
|
||||||
|
#paginate = 1
|
||||||
|
title = "L’embardée"
|
||||||
|
|
||||||
|
[pagination]
|
||||||
|
pagerSize = 1
|
||||||
|
|
||||||
|
[params]
|
||||||
|
contentTypeName = "posts"
|
||||||
|
themeColor = "red"
|
||||||
|
showMenuItems = 5
|
||||||
|
fullWidthTheme = false
|
||||||
|
centerTheme = true
|
||||||
|
# [params.banner]
|
||||||
|
# dismissible = false
|
||||||
|
# text = "Check it out on GitHub"
|
||||||
|
# url = "https://github.com/mirus-ua/hugo-theme-re-terminal"
|
||||||
|
|
||||||
|
[languages]
|
||||||
|
[languages.fr.params]
|
||||||
|
title = "re-Terminal"
|
||||||
|
subtitle = "Bar Associatif à Saint-Girons"
|
||||||
|
keywords = ""
|
||||||
|
copyright = ""
|
||||||
|
menuMore = "Voir plus"
|
||||||
|
readMore = "Lire la suite"
|
||||||
|
readOtherPosts = "Lire plus d’articles"
|
||||||
|
olderPosts = "Articles plus anciens"
|
||||||
|
newerPosts = "Articles plus récents"
|
||||||
|
missingContentMessage = "Page non trouvée :'("
|
||||||
|
missingBackButtonLabel = "Retour à l’accueil"
|
||||||
|
|
||||||
|
[languages.fr.params.logo]
|
||||||
|
logoText = ""
|
||||||
|
logoHomeLink = "/"
|
||||||
|
|
||||||
|
[languages.fr.menu]
|
||||||
|
[[languages.fr.menu.main]]
|
||||||
|
identifier = "submenu"
|
||||||
|
name = "À venir"
|
||||||
|
weight = 10
|
||||||
|
[[languages.fr.menu.main]]
|
||||||
|
identifier = "submenus"
|
||||||
|
name = "Menus"
|
||||||
|
url = "/menus"
|
||||||
|
parent = "submenu"
|
||||||
|
[[languages.fr.menu.main]]
|
||||||
|
identifier = "subevenements"
|
||||||
|
name = "Événements"
|
||||||
|
url = "/evenements"
|
||||||
|
parent = "submenu"
|
||||||
|
[[languages.fr.menu.main]]
|
||||||
|
identifier = "lembardee"
|
||||||
|
name = "L’embardée"
|
||||||
|
url = "/lembardee"
|
||||||
|
[[languages.fr.menu.main]]
|
||||||
|
identifier = "bibliotheque"
|
||||||
|
name = "Bibliothèque"
|
||||||
|
url = "/bibliotheque"
|
||||||
|
|
||||||
|
|
||||||
|
# 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'
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
|||||||
|
{"Target":"styles.css","MediaType":"text/css","Data":{}}
|
BIN
static/img/css-variables-update.webp
Normal file
BIN
static/img/css-variables-update.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
static/img/hello.jpg
Normal file
BIN
static/img/hello.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
BIN
static/img/logo1.JPG
Normal file
BIN
static/img/logo1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 145 KiB |
1
themes/hugo-theme-re-terminal
Submodule
1
themes/hugo-theme-re-terminal
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit d5205fc159f180f3bd08b8cd81910470bb84c33a
|
Loading…
Reference in New Issue
Block a user