mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
feat(style): improve Hero image size on mobile
This commit is contained in:
parent
e6dba41f3d
commit
80fce98e72
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
{{ if $page.Params.hero_media }}
|
||||
<div class="row">
|
||||
<div class="col-md-6 order-md-1 text-center text-md-left">
|
||||
<div class="col-12 col-md-6 order-md-1 text-center text-md-left">
|
||||
{{ end }}
|
||||
|
||||
<h1 class="hero-title">
|
||||
|
@ -59,7 +59,7 @@
|
|||
{{ if $page.Params.hero_media }}
|
||||
{{ $media_dir := $.Scratch.Get "media_dir" }}
|
||||
</div>
|
||||
<div class="col-6 mx-auto col-md-6 order-md-2 hero-media">
|
||||
<div class="col-12 mx-auto col-md-6 order-md-2 hero-media">
|
||||
<img src="{{ printf "%s/%s" $media_dir $page.Params.hero_media | relURL }}" alt="">
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue