Make hero image round if roundImage: true

This commit is contained in:
Ben Armstead
2023-02-05 12:05:22 +00:00
parent 6930cf2da2
commit 1f289595f9
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -11,7 +11,7 @@ outputs:
page: page:
- "HTML" - "HTML"
- "RSS" - "RSS"
Paginate: 3 Paginate: 3
enableRobotsTXT: true enableRobotsTXT: true
# disqusShortname: your-disqus-shortname # disqusShortname: your-disqus-shortname
@@ -120,6 +120,7 @@ params:
subtitle: "I build things for the web" subtitle: "I build things for the web"
content: "A passionate web app developer. I tend to make use of modern web technologies to build websites that looks great, feels fantastic, and functions correctly." content: "A passionate web app developer. I tend to make use of modern web technologies to build websites that looks great, feels fantastic, and functions correctly."
image: /images/hero.svg image: /images/hero.svg
# roundImage: true # Make hero image circular | default false
button: button:
enable: true enable: true
name: "Resume" name: "Resume"
@@ -363,7 +364,7 @@ params:
# List pages like blogs and posts # List pages like blogs and posts
listPages: listPages:
disableFeaturedImage: false disableFeaturedImage: false
# Single pages like blog and post # Single pages like blog and post
singlePages: singlePages:
readTime: readTime:
+2 -2
View File
@@ -34,8 +34,8 @@
<div class="col-sm-12 col-md-12 col-lg-4"> <div class="col-sm-12 col-md-12 col-lg-4">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-sm-12 col-md-9 pt-5 image {{ if .Site.Params.animate }}animate{{ end }} px-5 px-md-5 px-lg-0 text-center"> <div class="col-sm-12 col-md-9 pt-5 image {{ if .Site.Params.animate }}animate{{ end }} px-5 px-md-5 px-lg-0 text-center">
<img src="{{ .Site.Params.hero.image }}" <img src="{{ .Site.Params.hero.image }}"
class="img-thumbnail mx-auto" class="img-thumbnail mx-auto{{ if .Site.Params.hero.roundImage }} rounded-circle{{ end }}"
alt="" alt=""
> >
</div> </div>