diff --git a/assets/custom_style.css b/assets/custom_style.css index 71f76c8..c385504 100644 --- a/assets/custom_style.css +++ b/assets/custom_style.css @@ -6,8 +6,8 @@ @media all and (max-width: 600px){html {font-size: 18px;}} @media all and (max-width: 480px){html {font-size: 17px;}} -@media all and (min-width: 801px) { - img { +@media all and (min-width: 1200px) { + img:not(.icon) { margin-left: -6rem; min-width: 120%; } diff --git a/config.toml b/config.toml index ca67078..7eb7b1c 100644 --- a/config.toml +++ b/config.toml @@ -14,33 +14,34 @@ ignoreFiles = ["\\.qmd$", "\\.ipynb$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$", "i introtag = "introduction" intro = "PhD Candidate in Brain Imaging & Genetics, Data Scientist within Anti-Money Laundering at DNB" - favicon = "images/avatar.png" # default sns thumbnail + favicon = "avatar.png" - description = "Daniel Roelfs' personal website" # Site description. - keywords = "blog,personal,coding" # Site keywords. - avatarurl = "images/avatar.png" # Contain the path of the optional avatar in the static folder. + iconsource = "simple-icons" + + description = "Daniel Roelfs' personal website" + keywords = "blog, personal, coding" customcss = ["custom_style.css"] # Social links - [[params.social]] - name = "Twitter" - icon = "twitter" - weight = 1 - url = "https://twitter.com/dthroelfs/" [[params.social]] name = "GitHub" icon = "github" - weight = 2 + weight = 1 url = "https://github.com/danielroelfs/" + [[params.social]] + name = "Twitter" + icon = "x" + weight = 2 + url = "https://twitter.com/dthroelfs/" [[params.social]] name = "ORCID" - icon = "user" + icon = "orcid" weight = 3 url = "https://orcid.org/0000-0002-1083-002X" [[params.social]] name = "Google Scholar" - icon = "book-open" + icon = "googlescholar" weight = 4 url = "https://scholar.google.com/citations?user=QmVQcsAAAAAJ&hl=en" [[params.social]] @@ -48,9 +49,14 @@ ignoreFiles = ["\\.qmd$", "\\.ipynb$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$", "i icon = "linkedin" weight = 5 url = "https://www.linkedin.com/in/danielroelfs/" + [[params.social]] + name = "GoodReads" + icon = "goodreads" + weight = 6 + url = "mailto:daniel.roelfs@medisin.uio.no" [[params.social]] name = "Mail" - icon = "mail" + icon = "minutemailer" weight = 7 url = "mailto:daniel.roelfs@medisin.uio.no" diff --git a/layouts/index.html b/layouts/index.html index ca8889f..d810723 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,7 @@

{{ .Title | markdownify }}

{{ if .Site.Params.intro }} - avatar + avatar

{{ .Site.Params.intro | markdownify }}

{{ end }} @@ -15,10 +15,30 @@

{{ .Name | lower | markdowni
socials
- {{ range .Site.Params.social }} - - - + {{ if eq .Site.Params.iconsource "simple-icons" }} + {{ with .Site.Params.social }} + {{ range sort . "weight" }} + + + + {{ end }} + {{ end }} + {{ else if eq .Site.Params.iconsource "fontawesome" }} + {{ with .Site.Params.social }} + {{ range sort . "weight" }} + + + + {{ end }} + {{ end }} + {{ else }} + {{ with .Site.Params.social }} + {{ range sort . "weight" }} + + + + {{ end }} + {{ end }} {{ end }}
{{ end }} diff --git a/themes/typography b/themes/typography index bf7737f..f2ce929 160000 --- a/themes/typography +++ b/themes/typography @@ -1 +1 @@ -Subproject commit bf7737fe03515aac5f287b2697448ec92b106def +Subproject commit f2ce929b9d66f1570e4c98a06bb4aa45387bcaa2