Add misc section with full per-page strings translation support, 88x31 page and bookmarks page.
This commit is contained in:
parent
45aa627911
commit
74285e314d
89 changed files with 291 additions and 9 deletions
6
misc/88x31/en.json
Normal file
6
misc/88x31/en.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"pageDescription": "My collection of 88x31 GIFs and images.",
|
||||
"intro": "This is the collection of 88x31 GIFs and images I've downloaded across the web.",
|
||||
"others": "Others",
|
||||
"me": "Made by me"
|
||||
}
|
||||
26
misc/88x31/index.njk
Normal file
26
misc/88x31/index.njk
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
layout: base.njk
|
||||
pagination:
|
||||
data: languages
|
||||
size: 1
|
||||
alias: langKey
|
||||
<!-- 88x31: WEBP.gif -->
|
||||
pageTitle: 88x31
|
||||
tags: misc
|
||||
---
|
||||
|
||||
<main>
|
||||
<div class="box pageHeaderBox">
|
||||
<h1>88x31</h1>
|
||||
<p>{{ t.intro }}</p>
|
||||
</div>
|
||||
<hr>
|
||||
<h2>{{ t.me }}</h2>
|
||||
<img class="i88x31" src="/static/images/88x31/tenkuma.gif">
|
||||
<h2>{{ t.others }}</h2>
|
||||
<div class="">
|
||||
{% for image in collections.88x31 %}
|
||||
<img class="i88x31" src="{{ image.url }}">
|
||||
{% endfor %}
|
||||
</div>
|
||||
</main>
|
||||
6
misc/88x31/pt.json
Normal file
6
misc/88x31/pt.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"pageDescription": "Minha coleção de GIFs e imagens 88x31.",
|
||||
"intro": "Essa é uma coleção de GIFs e imagens 88x31 que eu baixei pela internet.",
|
||||
"others": "Outros",
|
||||
"me": "Feitos por mim"
|
||||
}
|
||||
43
misc/bookmarks/common.json
Normal file
43
misc/bookmarks/common.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"links": {
|
||||
"downloads": [
|
||||
{
|
||||
"name": "MalwareWatch",
|
||||
"link": "https://malwarewatch.org/",
|
||||
"description": {
|
||||
"pt": "Website do Enderman. Tem download de vários softwares úteis, imagens de sistemas operacionais e malware.",
|
||||
"en": "Enderman's website. Provides download to various useful softwares, operating system images and malware."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "88x31",
|
||||
"link": "https://88x31.nl/",
|
||||
"description": {
|
||||
"pt": "Essa é uma coleção de mais de 6500 GIFs e PNGs no formato 88x31. No final dos anos 1990 e começo dos 2000 era muito comum usar essas imagens no seu site pessoal.",
|
||||
"en": "This website is a collection with over 6500 GIF's and PNG's in 88x31 format. In the late 1990 and begin of the 2000's it was very common to use these pictures on your personal website."
|
||||
},
|
||||
"88x31": [
|
||||
"WEBP.gif"
|
||||
]
|
||||
}
|
||||
],
|
||||
"profiles": [
|
||||
{
|
||||
"name": "Mr. Nando",
|
||||
"link": "https://www.youtube.com/@mrnandokk",
|
||||
"description": {
|
||||
"pt": "Meu amigo Fernando, ele faz músicas e vídeos de Minecraft e speedrun.",
|
||||
"en": "My friend Fernando, he makes music and YouTube videos of Minecraft and speedrun."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Endermanch",
|
||||
"link": "https://enderman.ch/",
|
||||
"description": {
|
||||
"pt": "Andrew é um engenheiro de software, entusiasta de malware e, mais importante, uma estranha e alta criatura. Cresci com os seus videos e ele é uma grande inspiração para mim.",
|
||||
"en": "Andrew is a software engineer, a malware enthusiast and most importantly, a weird tall creature. I've grown up with his videos and he's a great inspiration for me."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
6
misc/bookmarks/en.json
Normal file
6
misc/bookmarks/en.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"pageTitle": "Bookmarks",
|
||||
"pageDescription": "Minha coleção de sites e páginas interessantes.",
|
||||
"profiles": "Profiles",
|
||||
"downloads": "Downloads"
|
||||
}
|
||||
36
misc/bookmarks/index.njk
Normal file
36
misc/bookmarks/index.njk
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
layout: base.njk
|
||||
pagination:
|
||||
data: languages
|
||||
size: 1
|
||||
alias: langKey
|
||||
tags: misc
|
||||
background: towers.jpg
|
||||
backgroundOpacity: .2
|
||||
---
|
||||
|
||||
<main>
|
||||
<div class="box pageHeaderBox">
|
||||
<h1>{{ t.pageTitle }}</h1>
|
||||
<p>{{ t.intro }}</p>
|
||||
<img class="i88x31" src="/static/images/88x31/BOOKMARKthispageNOW.png" alt="">
|
||||
</div>
|
||||
<hr>
|
||||
{% for sectionName, section in c.links %}
|
||||
<h2>{{ t[sectionName] }}</h2>
|
||||
<dl>
|
||||
{% for link in section %}
|
||||
<dt><a href="{{ link.link }}">{{ link.name }}</a></dt>
|
||||
<dd>
|
||||
{% if link.88x31 %}
|
||||
{% for 88x31 in link.88x31 %}
|
||||
<img class="i88x31" style="margin-top: .6em;" src="/static/images/88x31/{{ 88x31 }}">
|
||||
{% endfor %}
|
||||
<br>
|
||||
{% endif %}
|
||||
{{ link.description[langKey] }}
|
||||
</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endfor %}
|
||||
</main>
|
||||
7
misc/bookmarks/pt.json
Normal file
7
misc/bookmarks/pt.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"pageTitle": "Favoritos",
|
||||
"pageDescription": "Minha coleção de sites e páginas interessantes.",
|
||||
"profiles": "Perfis",
|
||||
"downloads": "Downloads",
|
||||
"intro": "Essa é a lista de links favoritos curada por mim, dividida em seções para facilitar a navegação ;-)"
|
||||
}
|
||||
34
misc/misc.11tydata.js
Normal file
34
misc/misc.11tydata.js
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
eleventyComputed: {
|
||||
t: (data) => {
|
||||
const dir = path.dirname(data.page.inputPath);
|
||||
|
||||
const file = path.join(dir, `${data.langKey}.json`);
|
||||
if (fs.existsSync(file)) {
|
||||
return JSON.parse(fs.readFileSync(file, "utf-8"));
|
||||
}
|
||||
|
||||
return {};
|
||||
},
|
||||
c: (data) => {
|
||||
const dir = path.dirname(data.page.inputPath);
|
||||
|
||||
const file = path.join(dir, `common.json`);
|
||||
if (fs.existsSync(file)) {
|
||||
return JSON.parse(fs.readFileSync(file, "utf-8"));
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
languages: ["en", "pt"],
|
||||
permalink: data => {
|
||||
return `/${data.langKey}/misc/${data.page.fileSlug}/`;
|
||||
},
|
||||
tags: "misc"
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue