Complete rework + eleventy

This commit is contained in:
天クマ 2025-09-06 20:04:53 -03:00
commit 5f2e7393f7
86 changed files with 2785 additions and 0 deletions

29
_includes/base.njk Normal file
View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{ langKey }}">
<head>
<meta charset="UTF-8">
<title>Adrian Victor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/main.css?fixcache=1">
<script src="/static/scripts/ccd.js"></script>
<script src="/static/scripts/main.js" defer></script>
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/site.webmanifest">
</head>
<body>
<style>
.bg {
opacity: {{ backgroundOpacity or ".4" }}!important;
}
</style>
<div id="everythingHelper">
<img src="/static/images/{{ background or "bear.jpg" }}" class="bg">
{% include "header.njk" %}
<div id="mainHelper">
{{ content | safe }}
</div>
</div>
</body>
</html>

13
_includes/header.njk Normal file
View file

@ -0,0 +1,13 @@
<header>
<div>
<h1>{{ title or "Adrian Victor" }}</h1>
<a id="headerSubtitle"><i>{{ subtitle or "Fanasy is not a crime, find your castle in the sky." }}</i></a>
</div>
<div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div>
<ul id="headerLinks">
<a href="/{{ langKey }}/">{{ i18n[langKey].home }}</a>
<a href="/{{ langKey }}/blog/">blog</a>
</ul>
</div>
</header>

View file

@ -0,0 +1,3 @@
module.exports = {
langKey: data => data.lang
};

13
_includes/post.njk Normal file
View file

@ -0,0 +1,13 @@
---
layout: base.njk
title: Adrian Victor:Blog
---
<main>
<article>
<div id="postHeader">
<h1>{{ postTitle }}</h1>
<p>{{ authors or "Adrian Victor" }} - {{ date }}</p>
</div>
{{ content | safe }}
</article>
</main>