diff --git a/assets/img/bg.jpg b/assets/img/bg.jpg new file mode 100644 index 0000000..3a7617d Binary files /dev/null and b/assets/img/bg.jpg differ diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index 59eb226..13e5177 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -5,20 +5,20 @@ isoCode = "en" weight = 2 rtl = false -title = "Blowfish" -# logo = "img/logo.png" -# description = "My awesome website" +title = "Mans Ziesel" +# logo = "img/Mans_Ziesel_Portrait.jpg" +description = "Website van Mans Ziesel" # copyright = "Copy, _right?_ :thinking_face:" dateFormat = "2 January 2006" -# [author] -# name = "Your name here" -# image = "img/blowfish_logo.png" -# headline = "I'm only human" -# bio = "A little bit about you" -# links = [ -# { email = "mailto:hello@your_domain.com" }, +[author] + name = "Mans Ziesel" + image = "img/Mans_Ziesel_Portrait.jpg" + headline = "ICT'er & student bij ROC van Twente" + bio = "A little bit about you" + links = [ + { email = "mailto:hello@your_domain.com" }, # { link = "https://link-to-some-website.com/" }, # { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" }, # { apple = "https://www.apple.com" }, @@ -30,7 +30,7 @@ dateFormat = "2 January 2006" # { facebook = "https://facebook.com/username" }, # { flickr = "https://www.flickr.com/photos/username/" }, # { foursquare = "https://foursquare.com/username" }, -# { github = "https://github.com/username" }, + { github = "https://github.com/username" }, # { gitlab = "https://gitlab.com/username" }, # { google = "https://www.google.com/" }, # { hashnode = "https://username.hashnode.dev" }, @@ -38,7 +38,7 @@ dateFormat = "2 January 2006" # { keybase = "https://keybase.io/username" }, # { kickstarter = "https://www.kickstarter.com/profile/username" }, # { lastfm = "https://lastfm.com/user/username" }, -# { linkedin = "https://linkedin.com/in/username" }, + { linkedin = "https://linkedin.com/in/username" }, # { mastodon = "https://mastodon.instance/@username" }, # { medium = "https://medium.com/username" }, # { microsoft = "https://www.microsoft.com/" }, @@ -60,4 +60,4 @@ dateFormat = "2 January 2006" # { whatsapp = "https://wa.me/phone-number" }, # { youtube = "https://youtube.com/username" }, # { ko-fi = "https://ko-fi.com/username" }, -# ] + ] diff --git a/config/_default/languages.nl.toml b/config/_default/languages.nl.toml index a01b6ee..06238c0 100644 --- a/config/_default/languages.nl.toml +++ b/config/_default/languages.nl.toml @@ -6,19 +6,19 @@ weight = 1 rtl = false title = "Mans Ziesel" -# logo = "img/logo.png" -# description = "My awesome website" +# logo = "img/Mans_Ziesel_Portrait.jpg" +description = "Website van Mans Ziesel" # copyright = "Copy, _right?_ :thinking_face:" dateFormat = "2 January 2006" -# [author] -# name = "Your name here" -# image = "img/blowfish_logo.png" -# headline = "I'm only human" -# bio = "A little bit about you" -# links = [ -# { email = "mailto:hello@your_domain.com" }, +[author] + name = "Mans Ziesel" + image = "img/Mans_Ziesel_Portrait.jpg" + headline = "ICT'er & student bij ROC van Twente" + bio = "A little bit about you" + links = [ + { email = "mailto:hello@your_domain.com" }, # { link = "https://link-to-some-website.com/" }, # { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" }, # { apple = "https://www.apple.com" }, @@ -30,7 +30,7 @@ dateFormat = "2 January 2006" # { facebook = "https://facebook.com/username" }, # { flickr = "https://www.flickr.com/photos/username/" }, # { foursquare = "https://foursquare.com/username" }, -# { github = "https://github.com/username" }, + { github = "https://github.com/username" }, # { gitlab = "https://gitlab.com/username" }, # { google = "https://www.google.com/" }, # { hashnode = "https://username.hashnode.dev" }, @@ -38,7 +38,7 @@ dateFormat = "2 January 2006" # { keybase = "https://keybase.io/username" }, # { kickstarter = "https://www.kickstarter.com/profile/username" }, # { lastfm = "https://lastfm.com/user/username" }, -# { linkedin = "https://linkedin.com/in/username" }, + { linkedin = "https://linkedin.com/in/username" }, # { mastodon = "https://mastodon.instance/@username" }, # { medium = "https://medium.com/username" }, # { microsoft = "https://www.microsoft.com/" }, @@ -60,4 +60,4 @@ dateFormat = "2 January 2006" # { whatsapp = "https://wa.me/phone-number" }, # { youtube = "https://youtube.com/username" }, # { ko-fi = "https://ko-fi.com/username" }, -# ] + ] diff --git a/config/_default/params.toml b/config/_default/params.toml index a225e07..6139fd6 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -17,9 +17,9 @@ enableCodeCopy = true disableImageOptimization = false -# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images +defaultBackgroundImage = "/img/bg.jpg" # used as default for background images -# highlightCurrentMenuArea = true +highlightCurrentMenuArea = true smartTOC = true smartTOCHideUnfocusedChildren = true @@ -30,19 +30,19 @@ smartTOCHideUnfocusedChildren = true showMenu = true showCopyright = true showThemeAttribution = true - showAppearanceSwitcher = false + showAppearanceSwitcher = true showScrollToTop = true [homepage] - layout = "profile" # valid options: page, profile, hero, card, background, custom - #homepageImage = "IMAGE.jpg" # used in: hero, and card + layout = "background-custom" # valid options: page, profile, hero, card, background, custom + # homepageImage = "IMAGE.jpg" # used in: hero, and card showRecent = false showRecentItems = 5 showMoreLink = false showMoreLinkDest = "/posts" cardView = false cardViewScreenWidth = false - layoutBackgroundBlur = false # only used when layout equals background + layoutBackgroundBlur = true # only used when layout equals background [article] showDate = true diff --git a/layouts/partials/home/background-custom.html b/layouts/partials/home/background-custom.html new file mode 100644 index 0000000..21f4e23 --- /dev/null +++ b/layouts/partials/home/background-custom.html @@ -0,0 +1,68 @@ +
+
+
+
+
+
+ {{ $homepageImage := "" }} + {{ with .Site.Params.defaultBackgroundImage }}{{ $homepageImage = resources.Get . }}{{ end }} + {{ with .Site.Params.homepage.homepageImage }}{{ $homepageImage = resources.Get . }}{{ end }} + {{ if not (eq $homepageImage "") }} + +
+
+
+
+ {{ end }} +
+
+ {{ with .Site.Author.image }} + {{ $authorImage := resources.Get . }} + {{ if $authorImage }} + {{ $authorImage := $authorImage.Fill "320x320" }} + {{ $.Site.Author.name | default + {{ end }} + {{ end }} +

+ {{ .Site.Author.name | default .Site.Title }} +

+ {{ with .Site.Author.headline }} +

+ {{ . | markdownify | emojify }} +

+ {{ end }} +
+ {{ with .Site.Author.links }} +
+ {{ range $links := . }} + {{ range $name, $url := $links }} + {{ partial + "icon.html" $name }} + {{ end }} + {{ end }} +
+ {{ end }} +
+
{{ .Content | emojify }}
+
+
+
+
+
+
+ {{ partial "recent-articles/main.html" . }} +
+{{ if .Site.Params.homepage.layoutBackgroundBlur | default false }} +
+ +{{ end }} diff --git a/static/bg.jpg b/static/bg.jpg new file mode 100644 index 0000000..3a7617d Binary files /dev/null and b/static/bg.jpg differ