From eaa947df25fee5ea40019471d2cadb499f0193df Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Mon, 28 Mar 2022 16:28:17 +0200 Subject: [PATCH] added option to position the logo at the right of the title --- README.md | 2 ++ assets/scss/style.scss | 9 +++++++++ layouts/partials/header.html | 11 ++++++++--- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2af25be..5b1d54f 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,8 @@ summaryLength = 70 # number of words for article summaries svgicon = "/logo.svg" icon512 = "/icon512.png" # 512x512 png image + logoRightOfTitle = false # positions the logo to the right of the title; default: false + showTags = true # show the Tags menu item; default true showRss = true # show the link for the RSS feed; default true diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 4dd0276..1bd6160 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -586,6 +586,15 @@ ul.list { font-weight: normal; font-size: 1.6 * $base_font_size * $title_font_mult; margin: 0; + {{ if site.Params.logoRightOfTitle }} + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + > a { + margin-right: 12px; + } + {{ end }} } img { diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9fa4514..2ef48b1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,13 +2,18 @@ {{- partial "inject/header-before.html" . -}}
- - - + {{ if not (.Site.Params.logoRightOfTitle | default false) }} + + + + {{ end }}