move to jekyll

This commit is contained in:
Fl1tzi 2023-07-25 19:20:47 +02:00
parent b1064432ba
commit 02b22d7c00
No known key found for this signature in database
GPG key ID: 06B333727810C686
24 changed files with 283 additions and 179 deletions

View file

@ -1,6 +1,6 @@
MIT License
Fl1tzi<git@fl1tzi.com>
Copyright (c) 2023 Fl1tzi<git@fl1tzi.com>
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 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:

View file

@ -1,18 +0,0 @@
.ONESHELL: compress
package:
$(MAKE) -s clean
$(MAKE) -s raw-package
$(MAKE) -s compress
raw-package:
./scripts/create-pages.sh
cp -r src/pictures public/
cp -r src/css_modules public/
compress:
cd ./public/css_modules/
yui-compressor -o '.css$$:.css' *.css
clean:
rm -r public/* || true

2
_config.yml Normal file
View file

@ -0,0 +1,2 @@
name: Fl1tzi
license_information: "All Rights Reserved."

5
_data/footer.yml Normal file
View file

@ -0,0 +1,5 @@
- display: Privacy
link: https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md
- display: Repo
link: https://git.fl1tzi.com/Fl1tzi/fl1tzi.com

38
_layouts/home.html Normal file
View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Homepage</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/home-background-image.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Fl1tzi<root@fl1tzi.com>">
</head>
<body>
<header>
<h1>Homepage</h1>
</header>
<hr/>
<section id="content">
{{ content }}
</section>
<br/>
<hr/>
<footer>
<small>
{% for item in site.data.footer %}
<a href="{{ item.link }}">{{ item.display }}</a>
//
{% endfor %}
{{ site.license_information }}
</small>
</footer>
</body>
</html>

45
_layouts/page.html Normal file
View file

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ page.title }}</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/assets/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Fl1tzi<root@fl1tzi.com>">
</head>
<body>
<header>
<h1>{{ page.title }}</h1>
<hr/>
<nav>
<ul>
<a href="/">Home</a>
//
<a href="/contact.html">Contact</a>
<ul>
</nav>
<hr/>
</header>
<section id="content">
{{ content }}
</section>
<br/>
<hr/>
<footer>
<small>
{% for item in site.data.footer %}
<a href="{{ item.link }}">{{ item.display }}</a>
//
{% endfor %}
{{ site.license_information }}
</small>
</footer>
</body>
</html>

9
_site/LICENSE Normal file
View file

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2023 Fl1tzi<git@fl1tzi.com>
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 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 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

@ -2,50 +2,50 @@
<html>
<head>
<title>Applications</title>
<title>Applications</title>
<meta charset="UTF-8">
<meta name="generator" content="pandoc">
<link rel="stylesheet" href="/css_modules/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Fl1tzi<root@fl1tzi.com>">
</head>
<body>
<header>
<h1>Applications</h1>
<hr/>
<nav>
<hr/>
<nav>
<ul>
<a href="/">Home</a>
<a href="/">Home</a>
//
<a href="/contact.html">Contact</a>
<ul>
<ul>
</nav>
<hr/>
</header>
<hr/>
<section id="content">
<p>These are some applications which are hosted under this
domain.</p>
<table>
<thead>
<tr class="header">
<p>These are some applications which are hosted under this domain.</p>
<table>
<thead>
<tr>
<th>Application</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://git.fl1tzi.com/">G1T</a></td>
<td>Personal Git service</td>
</tr>
<tr class="even">
</tr>
<tr>
<td><a href="https://matrix.fl1tzi.com/">Matrix</a></td>
<td>Homeserver on the Matrix network</td>
</tr>
</tbody>
</table>
</tr>
</tbody>
</table>
</section>
<br/>
@ -53,10 +53,13 @@
<footer>
<small>
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">Privacy</a>
//
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">Repo</a>
//
All Rights Reserved.
</small>
</footer>

View file

Before

Width:  |  Height:  |  Size: 593 KiB

After

Width:  |  Height:  |  Size: 593 KiB

View file

@ -5,9 +5,8 @@
body {
background:
linear-gradient(rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0.5) 100%),
url(/pictures/background.jpg);
url(/assets/background.jpg);
background-size: cover;
background-attachment: fixed;
background-position: center;
}

View file

@ -32,6 +32,10 @@ nav ul {
a {
text-decoration: underline;
font-weight: 700;
color: lightgrey;
}
section#content a {
color: white;
}
@ -60,7 +64,7 @@ code {
/* Show bigger links on touchscreens (hopefully) */
@media (pointer:none), (pointer:coarse) {
a {
margin: 10px;
margin: 5px;
}
li {

View file

@ -2,40 +2,36 @@
<html>
<head>
<title>$title$</title>
<title>Contact</title>
<meta charset="UTF-8">
<meta name="generator" content="pandoc">
<link rel="stylesheet" href="/css_modules/main.css">
$if(homepage)$
<link rel="stylesheet" href="/css_modules/home-background-image.css">
$endif$
<link rel="stylesheet" href="/assets/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Fl1tzi<root@fl1tzi.com>">
</head>
<body>
<header>
<h1>$title$</h1>
$if(homepage)$
$else$
<h1>Contact</h1>
<hr/>
$endif$
<nav>
<ul>
$if(homepage)$
$else$
<a href="/">Home</a>
//
<a href="/contact.html">Contact</a>
$endif$
<ul>
</nav>
<hr/>
</header>
<hr/>
<section id="content">
$body$
<ul>
<li><a href="mailto:kontakt@fl1tzi.com">E-Mail</a></li>
<li><a href="https://matrix.to/#/@fl1tzi:matrix.fl1tzi.com">Matrix</a></li>
<li><a href="https://codeberg.org/fl1tzi">Codeberg</a></li>
<li><a href="https://github.com/fl1tzi">GitHub</a></li>
</ul>
</section>
<br/>
@ -43,10 +39,13 @@
<footer>
<small>
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">Privacy</a>
//
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">Repo</a>
//
All Rights Reserved.
</small>
</footer>

49
_site/index.html Normal file
View file

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<title>Homepage</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/home-background-image.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Fl1tzi<root@fl1tzi.com>">
</head>
<body>
<header>
<h1>Homepage</h1>
</header>
<hr/>
<section id="content">
<p>Hi, Im Fl1tzi.
I do stuff on the internet and photograph things.</p>
<ul>
<li><a href="/contact.html">Contact</a></li>
<li><a href="https://portfolio.pixelfed.de/Fl1tzi">Photography</a></li>
<li><a href="/applications.html">Applications</a></li>
</ul>
</section>
<br/>
<hr/>
<footer>
<small>
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">Privacy</a>
//
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">Repo</a>
//
All Rights Reserved.
</small>
</footer>
</body>
</html>

View file

@ -1,6 +1,6 @@
---
title: "Applications"
lang: en-us
layout: page
---
These are some applications which are hosted under this domain.
@ -9,4 +9,3 @@ These are some applications which are hosted under this domain.
|--------------------------------------|----------------------------------|
| [G1T](https://git.fl1tzi.com/) | Personal Git service |
| [Matrix](https://matrix.fl1tzi.com/) | Homeserver on the Matrix network |

View file

Before

Width:  |  Height:  |  Size: 593 KiB

After

Width:  |  Height:  |  Size: 593 KiB

View file

@ -0,0 +1,12 @@
/*
* Module for setting my picture as a background
*/
body {
background:
linear-gradient(rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0.5) 100%),
url(/assets/background.jpg);
background-size: cover;
background-attachment: fixed;
background-position: center;
}

73
assets/main.css Normal file
View file

@ -0,0 +1,73 @@
:root {
--background-color: #121212;
--text-color: #FFFbF1;
--light-color: rgba(255, 255, 255, 0.2);
}
body {
max-width: 100%;
margin: auto;
padding: 10px;
background-color: var(--background-color);
color: var(--text-color);
font-family: system-ui;
}
/* on very large screens stop expanding */
@media (min-width: 1300px) {
body {
max-width: 1300px;
}
}
footer, nav ul {
/* links gets overwritten */
color: grey;
}
nav ul {
padding-left: 0;
}
a {
text-decoration: underline;
font-weight: 700;
color: lightgrey;
}
section#content a {
color: white;
}
pre {
margin-top: 0;
margin-bottom: 0;
}
table, th, td {
border: 1px solid white;
border-collapse: collapse;
}
th, td {
padding: 5px;
}
th {
background-color: var(--light-color);
}
code {
background-color: var(--light-color);
}
/* Show bigger links on touchscreens (hopefully) */
@media (pointer:none), (pointer:coarse) {
a {
margin: 5px;
}
li {
margin-top: 15px;
}
}

View file

@ -1,6 +1,6 @@
---
title: "Contact"
lang: en-us
layout: page
---
- [E-Mail](mailto:kontakt@fl1tzi.com)

View file

@ -1,7 +1,5 @@
---
title: "Index"
lang: en-us
homepage: true
layout: home
---
Hi, I'm Fl1tzi.

View file

@ -1,52 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<meta charset="UTF-8">
<meta name="generator" content="pandoc">
<link rel="stylesheet" href="/css_modules/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Fl1tzi<root@fl1tzi.com>">
</head>
<body>
<header>
<h1>Contact</h1>
<hr/>
<nav>
<ul>
<a href="/">Home</a>
//
<a href="/contact.html">Contact</a>
<ul>
</nav>
</header>
<hr/>
<section id="content">
<ul>
<li><a href="mailto:kontakt@fl1tzi.com">E-Mail</a></li>
<li><a
href="https://matrix.to/#/@fl1tzi:matrix.fl1tzi.com">Matrix</a></li>
<li><a href="https://codeberg.org/fl1tzi">Codeberg</a></li>
<li><a href="https://github.com/fl1tzi">GitHub</a></li>
</ul>
</section>
<br/>
<hr/>
<footer>
<small>
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">Privacy</a>
//
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">Repo</a>
//
All Rights Reserved.
</small>
</footer>
</body>
</html>

View file

@ -1 +0,0 @@
body{background:linear-gradient(rgba(0,0,0,1) 20%,rgba(0,0,0,0.5) 100%),url(/pictures/background.jpg);background-size:cover;background-attachment:fixed;background-position:center}

View file

@ -1 +0,0 @@
:root{--background-color:#121212;--text-color:#fffbf1;--light-color:rgba(255,255,255,0.2)}body{max-width:100%;margin:auto;padding:10px;background-color:var(--background-color);color:var(--text-color);font-family:system-ui}@media(min-width:1300px){body{max-width:1300px}}footer,nav ul{color:grey}nav ul{padding-left:0}a{text-decoration:underline;font-weight:700;color:white}pre{margin-top:0;margin-bottom:0}table,th,td{border:1px solid white;border-collapse:collapse}th,td{padding:5px}th{background-color:var(--light-color)}code{background-color:var(--light-color)}@media(pointer:none),(pointer:coarse){a{margin:10px}li{margin-top:15px}}

View file

@ -1,50 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Index</title>
<meta charset="UTF-8">
<meta name="generator" content="pandoc">
<link rel="stylesheet" href="/css_modules/main.css">
<link rel="stylesheet" href="/css_modules/home-background-image.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Fl1tzi<root@fl1tzi.com>">
</head>
<body>
<header>
<h1>Index</h1>
<nav>
<ul>
<ul>
</nav>
</header>
<hr/>
<section id="content">
<p>Hi, Im Fl1tzi. I do stuff on the internet and photograph
things.</p>
<ul>
<li><a href="/contact.html">Contact</a></li>
<li><a
href="https://portfolio.pixelfed.de/Fl1tzi">Photography</a></li>
<li><a href="/applications.html">Applications</a></li>
</ul>
</section>
<br/>
<hr/>
<footer>
<small>
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">Privacy</a>
//
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">Repo</a>
//
All Rights Reserved.
</small>
</footer>
</body>
</html>

View file

@ -1,9 +0,0 @@
#! /usr/bin/env bash
for page in $(ls src/pages); do
pandoc --from gfm+smart+yaml_metadata_block \
-s "src/pages/$page" \
-o "public/$(basename $page .md).html" \
--template src/template.html
done