From 62fd79c7fa6b4ccea4fa0fa98769ffd88e807051 Mon Sep 17 00:00:00 2001 From: Gianluca Oldani Date: Tue, 7 Nov 2023 18:42:14 +0100 Subject: [PATCH] Updated socialIcons --- .github/workflows/gh-pages.yml | 4 ++-- config.toml | 21 +++++++++++++++------ layouts/index.html | 23 +++++++++++++++++++++++ layouts/partials/footer.html | 20 -------------------- 4 files changed, 40 insertions(+), 28 deletions(-) create mode 100644 layouts/index.html delete mode 100644 layouts/partials/footer.html diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 660606f..44a0626 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,5 +1,5 @@ # Sample workflow for building and deploying a Hugo site to GitHub Pages -name: Deploy Hugo site to Pages +name: gh-pages on: # Runs on pushes targeting the default branch @@ -32,7 +32,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.68.3 + HUGO_VERSION: 0.120.2 steps: - name: Install Hugo CLI run: | diff --git a/config.toml b/config.toml index ffa5973..c8e1736 100644 --- a/config.toml +++ b/config.toml @@ -6,6 +6,8 @@ paginate = 10 pluralizelisttitles = false +copyright = 'CC BY-NC 4.0' + [params] dateform = "Jan 2, 2006" dateformShort = "Jan 2" @@ -32,20 +34,28 @@ pluralizelisttitles = false # Default theme "light" or "dark" defaultTheme = "dark" - # Social icons - [[params.social]] +[params.footer] + trademark = true + author = true + copyright = true + rss = true + topText = ["Powered by Hugo"] + bottomText = ["Hugo theme made by Djordje Atlialp"] + + +# Social icons + [[params.SocialIcons]] name = "github" url = "https://github.com/Trolloldem" - [[params.social]] + [[params.SocialIcons]] name = "linkedin" url = "https://www.linkedin.com/in/gianluca-oldani-632100168/" - [[params.social]] + [[params.SocialIcons]] name = "stackoverflow" url = "https://stackoverflow.com/users/14083453/trolloldem" - [author] name = "Gianluca Oldani" @@ -59,7 +69,6 @@ pluralizelisttitles = false title = "Gianluca Oldani's website" subtitle = "A simple personal space about me" keywords = "" - copyright = 'CC BY-NC 4.0' readOtherPosts = "Read other posts" [languages.en.params.logo] diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..f76344e --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,23 @@ +{{ define "body" }} + +{{ end }} + +{{ define "main" }} +
+
+ {{ if .Site.Params.Portrait.Path }} + {{ .Site.Params.Portrait.Alt }} + {{ end }} + +

{{ .Site.Title }}

+ + {{ partial "subtitle.html" . }} + + {{- with .Site.Params.socialIcons }} +
+ {{ partial "social-icons.html" . }} +
+ {{- end }} +
+
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 46ebdfb..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,20 +0,0 @@ -