From 8bcb42ae4044df47d3bbf89035abe69f03d78a81 Mon Sep 17 00:00:00 2001 From: lauralani Date: Sun, 3 Sep 2023 20:29:35 +0200 Subject: [PATCH] add reading time and update stuff --- assets/scss/style.scss | 19 +++++++-------- .../2021/issues-with-docker-swarm-on-esxi.md | 3 ++- content/blog/_index.md | 6 ++--- content/projects/_index.md | 2 +- hugo.yaml | 7 ++++-- layouts/_default/list.html | 12 ++++++++++ layouts/_default/section.html | 5 +++- layouts/blog/section.html | 24 +++++++++++++++++++ layouts/partials/body/footer.html | 2 +- layouts/partials/reading-time.html | 1 + 10 files changed, 61 insertions(+), 20 deletions(-) create mode 100644 layouts/_default/list.html create mode 100644 layouts/blog/section.html create mode 100644 layouts/partials/reading-time.html diff --git a/assets/scss/style.scss b/assets/scss/style.scss index c455b55..12fdd4e 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -25,7 +25,9 @@ $min-device-width: 940px; src: url('/fonts/kreon-v37-latin-regular.woff2') format('woff2'); } - +.float-left { + float: left; +} a { margin: 0; @@ -266,10 +268,6 @@ nav { margin-top: 16px; } - .float-left { - float: left; - } - .hero-text { font-size: 1.5em; margin: 0; @@ -285,15 +283,16 @@ nav { footer { overflow: hidden; - - >div { - float: left; - } } .section-page-item { - >time { + >.details { color: gray; font-size: 90%; + overflow: hidden; + + >div { + white-space: pre; + } } } \ No newline at end of file diff --git a/content/blog/2021/issues-with-docker-swarm-on-esxi.md b/content/blog/2021/issues-with-docker-swarm-on-esxi.md index cfc4f39..2ff8128 100644 --- a/content/blog/2021/issues-with-docker-swarm-on-esxi.md +++ b/content/blog/2021/issues-with-docker-swarm-on-esxi.md @@ -2,9 +2,10 @@ title: "Issues with Docker Swarm on ESXi" description: "How to make Docker Swarm work with Nodes on ESXi" publishdate: "2021-04-20" +author: "Laura 🌹" --- -I once tried to set up a Docker Swarm Cluster. I had three nodes, two on Proxmox hosts, and one on a ESXi 7 host. The nodes had a GlusterFS sdtorage attached to them which synced data to all three nodes so containers could be started on any node. +I once tried to set up a Docker Swarm Cluster. I had three nodes, two on Proxmox hosts, and one on a ESXi 7 host. The nodes had a GlusterFS storage attached to them which synced data to all three nodes so containers could be started on any node. Everything worked wonderfully. Until I found out that some Containers couldn't talk to others. diff --git a/content/blog/_index.md b/content/blog/_index.md index dc88fcf..caf5712 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,7 +1,5 @@ --- title: My Blog 🌸 -description: "Lauras Blog" +description: "Lauras Blog about random stuff :3" --- -I'll be posting about random stuff here :3 IT, Politics, Love... - -## Latest posts \ No newline at end of file +I'll be posting about random stuff here :3 IT, Politics, Love... \ No newline at end of file diff --git a/content/projects/_index.md b/content/projects/_index.md index e7d58f2..d825fca 100644 --- a/content/projects/_index.md +++ b/content/projects/_index.md @@ -1,5 +1,5 @@ --- title: Projects -description: "Lauras Projects" +description: "All of my project documentations and ideas ✨" --- Here you can see all of my project documentations and ideas ✨ \ No newline at end of file diff --git a/hugo.yaml b/hugo.yaml index 5ba13ed..b853c54 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,9 +1,13 @@ baseURL: https://www.lauka.net/ languageCode: en-us -title: Lauras Website <3 +title: "Lauras Website <3" enableGitInfo: true params: description: "Lauras personal website and portfolio 💖" + display: + readingTime: true + author: true + menu: main: @@ -16,4 +20,3 @@ menu: - name: Projects pageRef: /projects weight: 3 - diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..33b79bf --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,12 @@ +{{ define "page" }} + +

{{ .Title }}

+ {{ range .Site.Sections }} +
+

{{ .Title }}

+
{{ or .Params.Description .Summary }}
+ Read more +
+ {{ end }} +
+{{ end }} \ No newline at end of file diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 0481c31..d0bd019 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -5,7 +5,10 @@ {{ range .Pages }}

{{ .Title }}

- +
+ +
+
{{ .Summary }}
Read more →
diff --git a/layouts/blog/section.html b/layouts/blog/section.html new file mode 100644 index 0000000..cbeedb9 --- /dev/null +++ b/layouts/blog/section.html @@ -0,0 +1,24 @@ +{{ define "page" }} + +

{{ .Title }}

+

{{ .Content }}

+

Latest posts

+ {{ range .Pages }} +
+

{{ .Title }}

+
+ + {{- if .Site.Params.Display.ReadingTime -}} +
• {{ partial "reading-time.html" . }}
+ {{- end -}} + {{- if and .Site.Params.Display.Author .Page.Params.Author -}} +
• by {{ .Page.Params.Author }}
+ {{- end -}} +
+ +
{{ .Summary }}
+ Read more → +
+ {{ end }} +
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/body/footer.html b/layouts/partials/body/footer.html index d1b1be8..c18136a 100644 --- a/layouts/partials/body/footer.html +++ b/layouts/partials/body/footer.html @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/layouts/partials/reading-time.html b/layouts/partials/reading-time.html new file mode 100644 index 0000000..8fb5bab --- /dev/null +++ b/layouts/partials/reading-time.html @@ -0,0 +1 @@ +{{ .ReadingTime }} min{{ if (ne .ReadingTime 1) }}s{{ end }} \ No newline at end of file