Compare commits

..

No commits in common. "aade3d3941e69052ba1e3af01a47991570daca24" and "f28ff22fb1b7af9722ae396a089051ab45ab245e" have entirely different histories.

19 changed files with 72 additions and 97 deletions

22
LICENSE
View File

@ -1,21 +1,7 @@
MIT License ISC License
Copyright (c) 2024 Wiktor Zykubek Copyright 2024 Wiktor Zykubek
Permission is hereby granted, free of charge, to any person obtaining a copy Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,5 +0,0 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

View File

@ -1,17 +0,0 @@
* {
--base: #faf4ed;
--surface: #fffaf3;
--overlay: #f2e9e1;
--muted: #9893a5;
--subtle: #797593;
--text: #575279;
--love: #b4637a;
--gold: #ea9d34;
--rose: #d7827e;
--pine: #286983;
--foam: #56949f;
--iris: #907aa9;
--highlightLow: #f4ede8;
--highlightMed: #dfdad9;
--highlightHigh: #cecacd;
}

View File

@ -1,17 +0,0 @@
* {
--base: #232136;
--surface: #2a273f;
--overlay: #393552;
--muted: #6e6a86;
--subtle: #908caa;
--text: #e0def4;
--love: #eb6f92;
--gold: #f6c177;
--rose: #ea9a97;
--pine: #3e8fb0;
--foam: #9ccfd8;
--iris: #c4a7e7;
--highlightLow: #2a283e;
--highlightMed: #44415a;
--highlightHigh: #56526e;
}

View File

@ -1,5 +0,0 @@
+++
title = 'Blog'
date = '2024-11-23T13:39:35+01:00'
draft = false
+++

View File

@ -2,6 +2,7 @@
date = '2024-11-23T13:39:35+01:00' date = '2024-11-23T13:39:35+01:00'
draft = false draft = false
title = 'Installing Arch Linux with Btrfs, LUKS encryption and YubiKey Authentication' title = 'Installing Arch Linux with Btrfs, LUKS encryption and YubiKey Authentication'
layout = 'article'
+++ +++
In this tutorial I will show you how to use your YubiKey with LUKS. In this case we will use our key to shorten encryption password. Person, who will get access to your machine but without key, will be prompted for very long, computer generated password. On the other hand - _you_ - will be prompted only for the PIN for your attached YubiKey. Of course your PIN also should be as long and complicated as possible, but you should be able to memorize it. In this tutorial I will show you how to use your YubiKey with LUKS. In this case we will use our key to shorten encryption password. Person, who will get access to your machine but without key, will be prompted for very long, computer generated password. On the other hand - _you_ - will be prompted only for the PIN for your attached YubiKey. Of course your PIN also should be as long and complicated as possible, but you should be able to memorize it.

View File

@ -2,6 +2,7 @@
title = 'Contact' title = 'Contact'
date = '2024-11-23T13:39:35+01:00' date = '2024-11-23T13:39:35+01:00'
draft = false draft = false
layout = 'single'
+++ +++
Simply, write me an [e-mail](mailto:contact@wzykubek.xyz). Simply, write me an [e-mail](mailto:contact@wzykubek.xyz).

13
content/pl/_index.md Normal file
View File

@ -0,0 +1,13 @@
+++
title = 'Home'
date = 2023-01-01T08:00:00-07:00
draft = false
+++
_Witaj Świecie!_ :wave: Jestem **Wiktor**. Od dziecka pasjonuję się komputerami i wszystkim co z nimi związane. Szczególnie bliski jest mi Linux, serwery, programowanie, [tworzenie muzyki](https://lugnx.xyz), a także grafiki i wiele, wiele więcej. Ta strona posłuży mi do dzielenia się tym, co tworzę w wolnym czasie.
Możesz znaleźć mnie między innymi na
[Gitei](https://git.brono.cloud/wzykubek),
[GitHubie](https://github.com/wzykubek),
[Telegramie](https://t.me/wzykubek).
Możesz również zasubskrybować mojego bloga, używając [RSS](blog/index.xml) lub napisać do mnie [maila](mailto:contact@wzykubek.xyz).

8
content/pl/contact.md Normal file
View File

@ -0,0 +1,8 @@
+++
title = 'Kontakt'
date = 2023-01-01T08:00:00-07:00
draft = false
layout = 'single'
+++
Po prostu napisz do mnie [maila](mailto:contact@wzykubek.xyz).

View File

@ -45,7 +45,7 @@ languages:
subtitle: Moja strona subtitle: Moja strona
menus: menus:
main: main:
- name: Strona Główna - name: Główna
pageRef: / pageRef: /
weight: 10 weight: 10
- name: Blog - name: Blog

View File

@ -1 +1,3 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}"><a href="#{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</a></h{{ .Level }}> <h{{ .Level }} id="{{ .Anchor | safeURL }}">
<a href="#{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</a>
</h{{ .Level }}>

View File

@ -0,0 +1,11 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_medium" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}

View File

@ -1,17 +1,14 @@
<!DOCTYPE html> <!doctype html>
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}"> <html
<head> lang="{{ site.Language.LanguageCode }}"
{{ partial "head.html" . }} dir="{{ or site.Language.LanguageDirection `ltr` }}"
</head> >
<body> <head>
<header> {{ partial "head.html" . }}
{{ partial "header.html" . }} </head>
</header> <body>
<main> <header>{{ partial "header.html" . }}</header>
{{ block "main" . }}{{ end }} <main>{{ block "main" . }}{{ end }}</main>
</main> <footer>{{ partial "footer.html" . }}</footer>
<footer> </body>
{{ partial "footer.html" . }}
</footer>
</body>
</html> </html>

View File

@ -3,9 +3,11 @@
{{ .Content }} {{ .Content }}
{{ range .Pages }} {{ range .Pages }}
<h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3> <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }} {{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ .Summary }} {{ .Summary }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,9 +1,7 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_medium" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ .Content }} {{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }} {{ end }}

View File

@ -1,11 +1,13 @@
<p class="flex-space-between"> <p class="flex-space-between">
<span>{{ .Site.Copyright }}</span> <span>{{ .Site.Copyright }}</span>
<span class='hidden-on-mobile'> {{ if eq .Site.Language.LanguageCode "en" }}
{{ if eq .Site.Language.LanguageCode "en" }} <span class="hidden-on-mobile"
Used <a href="https://rosepinetheme.com/">Rosé Pine</a> palette >Used <a href="https://rosepinetheme.com/">Rosé Pine</a> palette</span
{{ else if eq .Site.Language.LanguageCode "pl" }} >
Wykorzystano paletę kolorów <a href="https://rosepinetheme.com/">Rosé Pine</a> {{ else if eq .Site.Language.LanguageCode "pl" }}
{{ end }} <span class="hidden-on-mobile"
>Wykorzystano paletę kolorów
</span> <a href="https://rosepinetheme.com/">Rosé Pine</a></span
>
{{ end }}
</p> </p>

View File

@ -8,7 +8,7 @@
{{- end }} {{- end }}
{{- end }} {{- end }}
<!--Implement function to change theme--> <!--TODO: Implement a function for changing theme-->
{{- with resources.Get "css/rose-pine-main.css" }} {{- with resources.Get "css/rose-pine-main.css" }}
<link rel="stylesheet" href="{{ .RelPermalink }}"> <link rel="stylesheet" href="{{ .RelPermalink }}">
{{- end }} {{- end }}

View File

@ -7,9 +7,7 @@
{{ if .IsTranslated }} {{ if .IsTranslated }}
{{ range .Translations }} {{ range .Translations }}
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<span class='hidden-on-mobile'> <span class='hidden-on-mobile'>{{ .Site.Language.LanguageCode }}</span>
{{ .Site.Language.LanguageCode }}
</span>
{{ if eq .Site.Language.LanguageCode "en" }} {{ if eq .Site.Language.LanguageCode "en" }}
{{ ":gb:" | .RenderString }} {{ ":gb:" | .RenderString }}
{{ else if eq .Site.Language.LanguageCode "pl" }} {{ else if eq .Site.Language.LanguageCode "pl" }}