From 8b52d65d5eb2788127c506f573f826b965ef70ed Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Fri, 25 Sep 2020 20:35:51 +0700 Subject: [PATCH 1/5] chore: adding a .gitignore file with defaults --- .gitignore | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..321d8d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +.idea + +# Created by https://www.toptal.com/developers/gitignore/api/hugo +# Edit at https://www.toptal.com/developers/gitignore?templates=hugo + +### Hugo ### +# Generated files by hugo +/public/ +/resources/_gen/ +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# End of https://www.toptal.com/developers/gitignore/api/hugo From 74fa848539d1347ec41b0b246d2bd7edbde059c4 Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Fri, 25 Sep 2020 20:36:26 +0700 Subject: [PATCH 2/5] feat: create a simple website from README.md (WIP) --- config.toml | 3 +++ layouts/_default/baseof.html | 19 +++++++++++++++++++ layouts/index.html | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 config.toml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..e4b7418 --- /dev/null +++ b/config.toml @@ -0,0 +1,3 @@ +baseURL = "http://example.org/" +languageCode = "en-us" +title = "My New Hugo Site" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..c5551be --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,19 @@ + + + + + {{ block "title" . }} + <!-- Blocks may include default content. --> + {{ .Site.Title }} + {{ end }} + + + +{{ block "main" . }} + +{{ end }} +{{ block "footer" . }} + +{{ end }} + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..09eee8d --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,11 @@ +{{ define "main" }} +
+
+

{{.Title}}

+ {{ with .Params.subtitle }} + {{.}} + {{ end }} +
+ {{ readFile "README.md" | markdownify }} +
+{{ end }} From ebe5d186639a764c092af43fc2c76f0f734e0f43 Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Fri, 25 Sep 2020 21:02:02 +0700 Subject: [PATCH 3/5] feat: adding some fonts --- layouts/_default/baseof.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c5551be..e25fa27 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,6 +6,18 @@ {{ .Site.Title }} {{ end }} + + + + From f02a45a35e1684d2586895b67ee8a8d884a033ae Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Fri, 25 Sep 2020 21:14:09 +0700 Subject: [PATCH 4/5] fix: remove double title and add some layout options and styles --- layouts/_default/baseof.html | 36 ++++++++++++++---------------------- layouts/index.html | 6 ------ 2 files changed, 14 insertions(+), 28 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e25fa27..fdeeb93 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,30 +2,22 @@ - {{ block "title" . }} - <!-- Blocks may include default content. --> - {{ .Site.Title }} - {{ end }} - + {{ block "title" . }}{{ .Site.Title }}{{ end }} - - + - -{{ block "main" . }} - -{{ end }} -{{ block "footer" . }} - -{{ end }} +{{ block "main" . }}{{ end }} +{{ block "footer" . }}{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 09eee8d..91a0f19 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,11 +1,5 @@ {{ define "main" }}
-
-

{{.Title}}

- {{ with .Params.subtitle }} - {{.}} - {{ end }} -
{{ readFile "README.md" | markdownify }}
{{ end }} From a9918ede7edf5b8261c1108f5569547e0c106961 Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Fri, 25 Sep 2020 21:14:26 +0700 Subject: [PATCH 5/5] chore: add title and baseurl to configuration --- config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index e4b7418..9ca876d 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,3 @@ -baseURL = "http://example.org/" +baseURL = "https://awesome-hugo.dev/" languageCode = "en-us" -title = "My New Hugo Site" +title = "Awesome Hugo"