From b026ce8ec6b1eddb5d932dd039c23055865ccb4d Mon Sep 17 00:00:00 2001 From: leovct Date: Wed, 10 May 2023 02:41:44 +0200 Subject: [PATCH] feat: add logo to home info page --- assets/css/common/home-info.css | 23 +++++++++++++++++++++++ layouts/partials/home_info.html | 12 +++++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 assets/css/common/home-info.css diff --git a/assets/css/common/home-info.css b/assets/css/common/home-info.css new file mode 100644 index 00000000..585f2c80 --- /dev/null +++ b/assets/css/common/home-info.css @@ -0,0 +1,23 @@ +.home-info-container { + display: flex; + align-items: center; +} + +.home-info-container img { + flex: 1; + flex-shrink: 0; + width: 100%; + height: auto; + max-width: 600px; + margin-right: 20px; + border-radius: 20%; +} + +.home-info-container ul { + padding-left: 20px; + list-style-type: none; +} + +.home-info-container li { + padding-top: 10px; +} diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index efae956e..a51ba386 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -1,10 +1,16 @@ {{- with site.Params.homeInfoParams }}
-

{{ .Title | markdownify }}

+

{{ .title | markdownify }}

-
- {{ .Content | markdownify }} +
+ +  {{ .image.title | default + +
+ {{ .content | markdownify }} +