From 7988c5733528b664ac32f773bd80d2c45afa8611 Mon Sep 17 00:00:00 2001 From: lauralani Date: Wed, 6 Sep 2023 07:56:25 +0200 Subject: [PATCH] add possibility for multilingual blog posts --- content/blog/_index.md | 4 +++- layouts/_default/baseof.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/content/blog/_index.md b/content/blog/_index.md index caf5712..69f6c6f 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -2,4 +2,6 @@ title: My Blog 🌸 description: "Lauras Blog about random stuff :3" --- -I'll be posting about random stuff here :3 IT, Politics, Love... \ No newline at end of file +I'll be posting about random stuff here :3 IT, Politics, Love... + +Posts will be in _English_ and in _German_! \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d37d097..96f7f62 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,6 @@ - +{{ $language := or .Params.Language "en" }} + {{ partial "head/meta.html" . }} {{ or .Title .Site.Title }}