speed improvements + fix deprecation in hugo.toml + fix typo

This commit is contained in:
Michi 2025-03-23 20:18:18 +01:00
parent 17effb40bb
commit ebe56d70a9
6 changed files with 81 additions and 78 deletions

View file

@ -1,5 +1,5 @@
--- ---
title: "Hast du dieses Website selbst programmiert?" title: "Hast du diese Website selbst programmiert?"
slug: "selfmade-website" slug: "selfmade-website"
--- ---

View file

@ -8,6 +8,7 @@ defaultContentLanguage = 'de'
languageCode = 'de-CH' languageCode = 'de-CH'
weight = 10 weight = 10
[languages.de.params]
title = 'Michi von Ah - Informatiker, Tech-Enthusiast & Achterbahn-Fan' title = 'Michi von Ah - Informatiker, Tech-Enthusiast & Achterbahn-Fan'
description = "Hallo! Ich heisse Michi und interessiere mich für Smartphones, Computer, Elektromobilität (hauptsächlich Tesla) und weitere spannende Technik." description = "Hallo! Ich heisse Michi und interessiere mich für Smartphones, Computer, Elektromobilität (hauptsächlich Tesla) und weitere spannende Technik."
metadataCard = "assets/metadata/website-banner-de.jpg" metadataCard = "assets/metadata/website-banner-de.jpg"
@ -53,6 +54,7 @@ defaultContentLanguage = 'de'
languageCode = 'en-CH' languageCode = 'en-CH'
weight = 20 weight = 20
[languages.en.params]
title = 'Michi von Ah - IT guy, tech enthusiast & rollercoaster fan' title = 'Michi von Ah - IT guy, tech enthusiast & rollercoaster fan'
description = "Hi! My name is Michi and Im interested in smartphones, computers, e-mobility (mainly Tesla) and other exciting technology." description = "Hi! My name is Michi and Im interested in smartphones, computers, e-mobility (mainly Tesla) and other exciting technology."
metadataCard = "assets/metadata/website-banner-en.jpg" metadataCard = "assets/metadata/website-banner-en.jpg"
@ -89,6 +91,7 @@ defaultContentLanguage = 'de'
[params] [params]
author = "Michi von Ah" author = "Michi von Ah"
pagetype = "website"
legalLink = "https://legal.michivonah.ch" legalLink = "https://legal.michivonah.ch"
faviconPath = "assets/logo/favicon_256.png" faviconPath = "assets/logo/favicon_256.png"
faviconPathSVG = "assets/logo/logo_black.svg" faviconPathSVG = "assets/logo/logo_black.svg"

View file

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}"> <html lang="{{ .Site.LanguageCode }}">
<head> <head>
<meta charset="UTF-8">
<title>{{ .Site.Title }}</title> <title>{{ .Site.Title }}</title>
<meta name="mobile-web-app-title" content="{{ .Site.Title }}"> <meta name="mobile-web-app-title" content="{{ .Site.Title }}">
<meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}"> <meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}">
@ -12,10 +13,9 @@
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.Params.faviconPath | relURL }}"> <link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.Params.faviconPath | relURL }}">
<link rel="apple-touch-icon" sizes="167x167" href="{{ .Site.Params.faviconPath | relURL }}"> <link rel="apple-touch-icon" sizes="167x167" href="{{ .Site.Params.faviconPath | relURL }}">
<link rel="canonical" href="{{ .Site.BaseURL }}"> <link rel="canonical" href="{{ .Site.BaseURL }}">
<script src='{{ "/akar-icons-fonts/src/index.js" | relURL }}'></script> <script src='{{ "/akar-icons-fonts/src/index.js" | relURL }}' async></script>
<script src='{{ "/main.js" | absURL }}' defer></script> <script src='{{ "/main.js" | absURL }}' defer></script>
<link rel="stylesheet" type="text/css" href='{{ "/style.css" | absURL }}' media="screen"/> <link rel="stylesheet" type="text/css" href='{{ "/style.css" | absURL }}' media="screen"/>
<meta charset="UTF-8">
<meta name="description" content="{{ .Site.Params.description }}"> <meta name="description" content="{{ .Site.Params.description }}">
<meta name="keywords" content='{{ delimit site.Params.keywords ", " }}'> <meta name="keywords" content='{{ delimit site.Params.keywords ", " }}'>
<meta name="author" content="{{ .Site.Params.author }}"> <meta name="author" content="{{ .Site.Params.author }}">
@ -24,6 +24,7 @@
<meta property="og:title" content="{{ .Site.Params.author }}"> <meta property="og:title" content="{{ .Site.Params.author }}">
<meta property="og:description" content="{{ .Site.Params.description }}"> <meta property="og:description" content="{{ .Site.Params.description }}">
<meta property="og:type" content="{{ .Site.Params.pagetype }}" />
<meta property="og:image" content="{{ .Site.Params.metadataCard | relURL }}"> <meta property="og:image" content="{{ .Site.Params.metadataCard | relURL }}">
<meta property="og:image:type" content="image/jpg"> <meta property="og:image:type" content="image/jpg">
<meta property="og:url" content="{{ .Site.BaseURL }}"> <meta property="og:url" content="{{ .Site.BaseURL }}">

View file

@ -10,6 +10,7 @@ i[class^="ai-"]:before, i[class*=" ai-"]:before {
font-style: normal; font-style: normal;
font-weight: normal !important; font-weight: normal !important;
font-variant: normal; font-variant: normal;
font-display: swap;
text-transform: none; text-transform: none;
line-height: 1; line-height: 1;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;

View file

@ -11,8 +11,6 @@ User-agent: PerplexityBot
Disallow: / Disallow: /
User-agent: anthropic-ai User-agent: anthropic-ai
Disallow: / Disallow: /
User-agent: Claude-Web
Disallow: /
User-agent: ClaudeBot User-agent: ClaudeBot
Disallow: / Disallow: /

View file

@ -20,7 +20,7 @@ body{
--secondary: #2980b9; --secondary: #2980b9;
--background: #181818; --background: #181818;
--color: #f8f8f8; --color: #f8f8f8;
--font: "Source Sans 3", sans-serif; --font: "Source Sans 3", Arial, Helvetica, sans-serif;
--border: 2px solid var(--color); --border: 2px solid var(--color);
--borderPrimary: 2px solid var(--primary); --borderPrimary: 2px solid var(--primary);
--baseRadius: 12px; --baseRadius: 12px;
@ -268,7 +268,7 @@ nav.small .nav-links a:last-child:focus{
} }
.hero h1{ .hero h1{
margin: 30px 20px 0; margin: 60px 20px 0;
font-size: 6rem; font-size: 6rem;
transition: var(--baseTransition); transition: var(--baseTransition);
letter-spacing: -0.6rem; letter-spacing: -0.6rem;