diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..86c95ef --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# Generated files by hugo +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock diff --git a/assets/.gitkeep b/assets/sass/main.scss similarity index 100% rename from assets/.gitkeep rename to assets/sass/main.scss diff --git a/config.toml b/config.toml index 1d7c819..619e9bd 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,6 @@ -baseURL = 'http://example.org/' +baseURL = 'https://wwww.twapps.net/' languageCode = 'en-us' title = 'My New Hugo Site' + +[params] +name = "Tobias Werner" diff --git a/content/.gitkeep b/content/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..54be633 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,4 @@ +--- +title: Home +--- +This is the homepage. \ No newline at end of file diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..c13f1c0 --- /dev/null +++ b/content/about.md @@ -0,0 +1,5 @@ +--- +title: About +hide_footer: true +--- +This is the about page. \ No newline at end of file diff --git a/layouts/.gitkeep b/layouts/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..f41cf9c --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,15 @@ + + + + + {{ partial "meta.html" . }} + + + + {{partial "nav.html"}} + {{ block "main" . }} + {{ end }} + +{{ partial "footer.html" . }} + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..c3d9eaa --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,4 @@ +{{ define "main" }} +

LIST

+{{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..5769726 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,4 @@ +{{ define "main" }} +

SINGLE

+{{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..bf01d0c --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ +{{ with .Params.hide_footer }} + +{{ else }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..534b895 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,4 @@ + +{{ print .Page.Title }} +{{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Minify }} + \ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..ff2bc2c --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,7 @@ + \ No newline at end of file