2024-04-12 #
Created Github project for thoco-11ty.
2024-04-07 #
-
Var jag var när jag slutade: Hade flyttat om i mappstrukturen och abstraherat skapandet av collections för att göra det enklare att få överblick över de jag behöver. Har nu en funktion för det. Vad som behöver göras härnäst:
- Skapa special-lösning för AllMX, AllSV och AllEN för /feed-sidorna
- Se över sorteringsordning på dem
- Skriva ner namnen på de collections jag skapar, så att jag kan se det utan att behöva tolka anropet med variabler varje gång. (Kanske lägga till ett argument för namn på samlingen först, istället för att skapa automatiskt. Gör det också enklare att hantera filtrering för posttype. Kan sätta blank som default och specificera direkt istället för att ta bort plural-s)
-
Built function for easier collection definitions
-
Moved things around in the backend folder structure, created folders for each content type, with subfolders for Swedish/English content where needed.
2024-04-05 #
- Added Changelog/backlog to the footer.
2024-04-03 #
- Started to research how my posts on Mastodon can be imported as new posts using RSS based on the script for Glass.
- Started to build translations for my templates, using translations.js.
2024-04-02 #
- Started to build the bilingual menustructure. Using a menustructure.js-file in _data and select wether the Swedish or English version should be used based on the lang setting for each rendered page. How language is defined for the content is specified below.
- Added Umami integration for stats
2024-04-01 #
Got a very rudimentary i18n setup going. Working based of a folder structure like this:
Content/
├── content.11tydata.js
└── en/
├── en.11tydata.js
└── (your content files here)
Where the 11tydata-files have a lang key which either "sv" or "en" as values. Thanks to 11ty's data cascade that mean that all content will have lang set to "sv" except in the en folder and its subfolders.
- Explored the i18n-plugins but decided to roll my own multilingual site.
2024-03-30 #
- Finished Python script that pulls in photos from Glass, stores them locally, and create markdown files for each photo
2024-03-29 #
- Added toc as a frontmatter key with yes and no as valid values. When set to yes, a table of content is generated for the page, using a plugin.
Plugins I use #
- eleventy-plugin-icons