Compare commits
3 Commits
31232ec925
...
eaece534d5
| Author | SHA1 | Date | |
|---|---|---|---|
| eaece534d5 | |||
| c1ed7fe998 | |||
| 14caf8c3fa |
@@ -2,8 +2,8 @@ import yaml
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
LANG_LABELS = {
|
LANG_LABELS = {
|
||||||
"en": "English",
|
"en": "english",
|
||||||
"de": "Deutsch",
|
"de": "deutsch",
|
||||||
}
|
}
|
||||||
|
|
||||||
with open("content.yaml", "r") as f:
|
with open("content.yaml", "r") as f:
|
||||||
|
|||||||
+7
-1
@@ -1,6 +1,6 @@
|
|||||||
index:
|
index:
|
||||||
en:
|
en:
|
||||||
page-title: "Personal Website"
|
page-title: "Marco's Homepage"
|
||||||
introduction-heading: "Hi, I'm Marco"
|
introduction-heading: "Hi, I'm Marco"
|
||||||
introduction-subheading: "and this is my website"
|
introduction-subheading: "and this is my website"
|
||||||
about-paragraph: "I'm a software developer from Germany.<br>
|
about-paragraph: "I'm a software developer from Germany.<br>
|
||||||
@@ -33,3 +33,9 @@ index:
|
|||||||
und meine HTML und CSS Fähigkeiten aufzufrischen schadet auch nicht.<br>
|
und meine HTML und CSS Fähigkeiten aufzufrischen schadet auch nicht.<br>
|
||||||
Wird diese Website einen Schönheitswettbewerb gewinnen? Nein.<br>
|
Wird diese Website einen Schönheitswettbewerb gewinnen? Nein.<br>
|
||||||
Doch wenigstens ist sie handgemacht."
|
Doch wenigstens ist sie handgemacht."
|
||||||
|
|
||||||
|
music:
|
||||||
|
en:
|
||||||
|
music-heading: "my taste in music"
|
||||||
|
de:
|
||||||
|
music-heading: "mein Musikgeschmack"
|
||||||
|
|||||||
+32
-4
@@ -3,7 +3,12 @@ body {
|
|||||||
background-color: #222222;
|
background-color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, p {
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
p {
|
||||||
color: #DDDDEE
|
color: #DDDDEE
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13,6 +18,28 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#navbar {
|
#navbar {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navbar a {
|
||||||
|
padding: 5px;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: larger;
|
||||||
|
}
|
||||||
|
|
||||||
|
#language {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
float: right;
|
||||||
|
padding: 15px;
|
||||||
|
font-size: larger;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
@@ -20,17 +47,18 @@ a {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
display: flex;
|
display: flex;
|
||||||
float: right;
|
float: right;
|
||||||
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbar a {
|
#sidebar a {
|
||||||
float: right;
|
float: right;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: end;
|
text-align: end;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
font-size: larger;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbar a:hover {
|
a:hover {
|
||||||
color: #D0A7DF
|
color: #D0A7DF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+8
-4
@@ -8,12 +8,16 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<div id="language">
|
||||||
{{language-switcher}}
|
{{language-switcher}}
|
||||||
</nav>
|
</div>
|
||||||
<div id="navbar">
|
<div id="navbar">
|
||||||
<a href="#about">About</a>
|
<a href="index.html">home</a>
|
||||||
<a href="#why">Why</a>
|
<a href="music.html">music</a>
|
||||||
|
</div>
|
||||||
|
<div id="sidebar">
|
||||||
|
<a href="#about">about</a>
|
||||||
|
<a href="#why">why</a>
|
||||||
</div>
|
</div>
|
||||||
<header id="about">
|
<header id="about">
|
||||||
<h1>{{introduction-heading}}</h1>
|
<h1>{{introduction-heading}}</h1>
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{lang}}">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta name="robots" content="noindex nofollow">
|
||||||
|
<link rel="stylesheet" href="../styles.css">
|
||||||
|
<title>{{page-title}}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id="language">
|
||||||
|
{{language-switcher}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="navbar">
|
||||||
|
<a href="index.html">home</a>
|
||||||
|
<a href="music.html">music</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<header id="about">
|
||||||
|
<h1>{{music-heading}}</h1>
|
||||||
|
</header>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user