diff --git a/.gitignore b/.gitignore index 77363a2..ae2331a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ */public/* -public/ \ No newline at end of file +public/ +.hugo_build.lock +old-website.html \ No newline at end of file diff --git a/content/de/_index.md b/content/de/_index.md new file mode 100644 index 0000000..05a8ae5 --- /dev/null +++ b/content/de/_index.md @@ -0,0 +1,5 @@ +--- +title: Home +--- + +Das ist ein Test \ No newline at end of file diff --git a/content/en/_index.md b/content/en/_index.md new file mode 100644 index 0000000..60ce06b --- /dev/null +++ b/content/en/_index.md @@ -0,0 +1,5 @@ +--- +title: Home +--- + +Thats a test. \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index b023d7e..4dcf006 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,19 +1,25 @@ baseURL = 'https://michivonah.ch' -languageCode = 'de-CH' title = 'Michi von Ah - Informatiker, Tech-Enthusiast & Achterbahn-Fan' -[params] - description = "" - tags = "" - author = "Michi von Ah" - faviconPath = "" - themeColor = "" - defaultContentLanguage = 'de' [languages] [languages.de] contentDir = 'content/de' languageName = 'Deutsch' + languageCode = 'de-CH' + weight = 10 [languages.en] contentDir = 'content/en' - languageName = 'English' \ No newline at end of file + 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" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..c8ac65d --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,7 @@ +{{ partial "header.html" . }} + + {{ block "main" . }} + {{ end }} + +{{ partial "scrollTop.html" . }} +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..bf703c8 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..953331f --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,51 @@ + + + + {{ .Site.Title }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/layouts/partials/scrollTop.html b/layouts/partials/scrollTop.html new file mode 100644 index 0000000..819970c --- /dev/null +++ b/layouts/partials/scrollTop.html @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/static/main.js b/static/main.js new file mode 100644 index 0000000..02b7f81 --- /dev/null +++ b/static/main.js @@ -0,0 +1 @@ +// main.js \ No newline at end of file diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..40b74ab --- /dev/null +++ b/static/style.css @@ -0,0 +1 @@ +html{scroll-behavior: smooth;} \ No newline at end of file