Skip to content

Commit

Permalink
Updated socialIcons
Browse files Browse the repository at this point in the history
  • Loading branch information
Trolloldem committed Nov 7, 2023
1 parent 840b16a commit 62fd79c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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: |
Expand Down
21 changes: 15 additions & 6 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ paginate = 10

pluralizelisttitles = false

copyright = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'

[params]
dateform = "Jan 2, 2006"
dateformShort = "Jan 2"
Expand All @@ -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 <a href=\"http://gohugo.io\">Hugo</a>"]
bottomText = ["Hugo <a href=\"https://github.com/rhazdon/hugo-theme-hello-friend-ng\">theme</a> made by <a href=\"https://github.com/rhazdon\">Djordje Atlialp</a>"]


# 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"

Expand All @@ -59,7 +69,6 @@ pluralizelisttitles = false
title = "Gianluca Oldani's website"
subtitle = "A simple personal space about me"
keywords = ""
copyright = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
readOtherPosts = "Read other posts"

[languages.en.params.logo]
Expand Down
23 changes: 23 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ define "body" }}
<body class="{{ if .Site.Params.backgroundImage }} background-image" style="background-image: url('{{ .Site.Params.backgroundImage }}');" {{ else }}"{{ end }}>
{{ end }}

{{ define "main" }}
<main aria-role="main">
<div>
{{ if .Site.Params.Portrait.Path }}
<img src="{{ .Site.Params.Portrait.Path }}" class="circle" alt="{{ .Site.Params.Portrait.Alt }}" style="max-width:{{ .Site.Params.Portrait.MaxWidth }}" />
{{ end }}

<h1>{{ .Site.Title }}</h1>

{{ partial "subtitle.html" . }}

{{- with .Site.Params.socialIcons }}
<div>
{{ partial "social-icons.html" . }}
</div>
{{- end }}
</div>
</main>
{{ end }}
20 changes: 0 additions & 20 deletions layouts/partials/footer.html

This file was deleted.

0 comments on commit 62fd79c

Please sign in to comment.