mirror of
https://github.com/michivonah/website-v3.git
synced 2025-12-22 21:36:28 +01:00
build basic multi lang structure
This commit is contained in:
parent
e52e342687
commit
c12bebbf83
11 changed files with 96 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
*/public/*
|
*/public/*
|
||||||
public/
|
public/
|
||||||
|
.hugo_build.lock
|
||||||
|
old-website.html
|
||||||
5
content/de/_index.md
Normal file
5
content/de/_index.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Home
|
||||||
|
---
|
||||||
|
|
||||||
|
Das ist ein Test
|
||||||
5
content/en/_index.md
Normal file
5
content/en/_index.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Home
|
||||||
|
---
|
||||||
|
|
||||||
|
Thats a test.
|
||||||
22
hugo.toml
22
hugo.toml
|
|
@ -1,19 +1,25 @@
|
||||||
baseURL = 'https://michivonah.ch'
|
baseURL = 'https://michivonah.ch'
|
||||||
languageCode = 'de-CH'
|
|
||||||
title = 'Michi von Ah - Informatiker, Tech-Enthusiast & Achterbahn-Fan'
|
title = 'Michi von Ah - Informatiker, Tech-Enthusiast & Achterbahn-Fan'
|
||||||
|
|
||||||
[params]
|
|
||||||
description = ""
|
|
||||||
tags = ""
|
|
||||||
author = "Michi von Ah"
|
|
||||||
faviconPath = ""
|
|
||||||
themeColor = ""
|
|
||||||
|
|
||||||
defaultContentLanguage = 'de'
|
defaultContentLanguage = 'de'
|
||||||
[languages]
|
[languages]
|
||||||
[languages.de]
|
[languages.de]
|
||||||
contentDir = 'content/de'
|
contentDir = 'content/de'
|
||||||
languageName = 'Deutsch'
|
languageName = 'Deutsch'
|
||||||
|
languageCode = 'de-CH'
|
||||||
|
weight = 10
|
||||||
[languages.en]
|
[languages.en]
|
||||||
contentDir = 'content/en'
|
contentDir = 'content/en'
|
||||||
languageName = 'English'
|
languageName = 'English'
|
||||||
|
languageCode = 'en-CH'
|
||||||
|
weight = 20
|
||||||
|
|
||||||
|
[params]
|
||||||
|
description = ""
|
||||||
|
tags = ""
|
||||||
|
author = "Michi von Ah"
|
||||||
|
faviconPath = ""
|
||||||
|
themeColor = "#3498db"
|
||||||
|
twitterUsername = "@michivonah"
|
||||||
|
umamiUrl = "https://data.mchvnh.ch/script.js"
|
||||||
|
websiteId = "9b188ed8-77b0-4238-aef5-c1b3d48106e4"
|
||||||
|
|
|
||||||
7
layouts/_default/baseof.html
Normal file
7
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
{{ block "main" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "scrollTop.html" . }}
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
3
layouts/index.html
Normal file
3
layouts/index.html
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
||||||
2
layouts/partials/footer.html
Normal file
2
layouts/partials/footer.html
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
51
layouts/partials/header.html
Normal file
51
layouts/partials/header.html
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ .Site.LanguageCode }}">
|
||||||
|
<head>
|
||||||
|
<title>{{ .Site.Title }}</title>
|
||||||
|
<meta name="mobile-web-app-title" content="{{ .Site.Title }}">
|
||||||
|
<meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}">
|
||||||
|
<link id="favicon" rel="icon" type="image/png" href="{{ .Site.Params.faviconPath | relURL }}">
|
||||||
|
<link rel="icon" type="image/svg+xml" href="assets/logo/logo_black.svg">
|
||||||
|
<link rel="shortcut icon" type="image/png" href="{{ .Site.Params.faviconPath | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" href="{{ .Site.Params.faviconPath | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" 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="canonical" href="{{ .Site.BaseURL }}">
|
||||||
|
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js" async></script>
|
||||||
|
<script src="https://unpkg.com/akar-icons-fonts"></script>
|
||||||
|
<script src="main.js" defer></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href='{{ "/style.css" | absURL }}' media="screen"/>
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://unpkg.com/aos@2.3.1/dist/aos.css" media="screen"/>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="description" content="{{ .Site.Params.description }}">
|
||||||
|
<meta name="keywords" content="{{ .Site.Params.tags }}">
|
||||||
|
<meta name="author" content="{{ .Site.Params.author }}">
|
||||||
|
<meta name="robots" content="index">
|
||||||
|
<meta http-equiv="expires" content="43200">
|
||||||
|
|
||||||
|
<meta property="og:title" content="{{ .Site.Params.author }}">
|
||||||
|
<meta property="og:description" content="{{ .Site.Params.description }}">
|
||||||
|
<meta property="og:image" content="{{ .Site.Params.faviconPath | relURL }}">
|
||||||
|
<meta property="og:image:type" content="image/jpeg">
|
||||||
|
<meta property="og:url" content="{{ .Site.BaseURL }}">
|
||||||
|
<meta property="og:site_name" content="{{ .Site.Params.author }}">
|
||||||
|
<meta property="twitter:title" content="{{ .Site.Params.author }}">
|
||||||
|
<meta property="twitter:description" content="{{ .Site.Params.description }}">
|
||||||
|
<meta property="twitter:image" content="{{ .Site.Params.faviconPath | relURL }}">
|
||||||
|
<meta name="twitter:image:alt" content="{{ .Site.Params.author }}">
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta name="twitter:site" content="{{ .Site.Params.twitterUsername }}">
|
||||||
|
<meta name="twitter:creator" content="{{ .Site.Params.twitterUsername }}">
|
||||||
|
|
||||||
|
<meta name="theme-color" content="{{ .Site.Params.themeColor }}">
|
||||||
|
<meta name="mobile-web-app-status-bar-style" content="{{ .Site.Params.themeColor }}">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="{{ .Site.Params.themeColor }}">
|
||||||
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<link rel="manifest" href='{{ "manifest.json" | absURL }}'>
|
||||||
|
<!-- <script defer src="{{ .Site.Params.umamiUrl }}" data-website-id="{{ .Site.Params.websiteId }}"></script> -->
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
3
layouts/partials/scrollTop.html
Normal file
3
layouts/partials/scrollTop.html
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<div id="scroll-top">
|
||||||
|
<i class="ai-chevron-up"></i>
|
||||||
|
</div>
|
||||||
1
static/main.js
Normal file
1
static/main.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
// main.js
|
||||||
1
static/style.css
Normal file
1
static/style.css
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
html{scroll-behavior: smooth;}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue