diff --git a/assets/css/common/home-info.css b/assets/css/common/home-info.css new file mode 100644 index 0000000..791d423 --- /dev/null +++ b/assets/css/common/home-info.css @@ -0,0 +1,21 @@ +.home-info-container { + display: flex; + align-items: center; +} + +.home-info-container img { + flex: 1; + flex-shrink: 0; + height: auto; + max-width: 600px; + margin-right: 20px; + border-radius: 20%; +} + +.home-info-container ul { + 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 199dfb7..c04827b 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -1,10 +1,23 @@ {{- with site.Params.homeInfoParams }}
-

{{ .Title | markdownify }}

+

{{ .title | markdownify }}

-
- {{ .Content | markdownify }} +
+ {{- if .image.url}} + {{- if .image.link -}} + +  {{ .image.title | default + + {{- else }} +  {{ .image.title | default + {{- end }} + {{- end}} +
+ {{ .content | markdownify }} +