DigitaleGesellschaft / jekyll-theme-conference

Jekyll template for a conference website containing program, speaker, talks and room overview
MIT License
64 stars 59 forks source link

center aligning images #15

Closed chitralekha18 closed 2 years ago

chitralekha18 commented 2 years ago

I use the following in _config.yml to insert an image banner to my website. main: logo: img: 'banner_temp.png'

But that left aligns the image. How do I center align the image here?

Thanks!

lorenzschmid commented 2 years ago

Unfortunately, there is no option to change the alignment. But you can simply copy the layout file from the theme into your project and modify it there, i.e. copy _layouts/home.html to [your project folder]/_layouts/home.html. Then add the class text-center to the first headline on line 4:

{% include partials/header.html %}

  <div class="jumbotron">
    <h1 class="display-3 text-center">
...