better for mobile

This commit is contained in:
Gabriel 2022-09-20 22:56:20 -04:00
parent 251fbbab5a
commit 21ab4db6ce
3 changed files with 10 additions and 10 deletions

View file

@ -17,7 +17,7 @@
</a>
{{else}}
<a href="{{.Site.BaseURL}}{{.Permalink}}">
<img src="{{.Site.BaseURL}}/res/default.png">
<img src="{{.Site.BaseURL}}{{.Site.Params.default_img}}">
</a>
{{end}}
{{end}}

View file

@ -16,11 +16,8 @@
</video>
{{else}}
{{if .Params.image}}
<a href="{{.Site.BaseURL}}{{.Permalink}}">
<img src="{{.Site.BaseURL}}{{.Params.image}}">
</a>
{{else}}
<a href="{{.Site.BaseURL}}{{.Permalink}}">
<img src="{{.Site.BaseURL}}/res/default.png">
</a>
{{end}}

View file

@ -395,14 +395,17 @@ aside .listing img{
.recent,.featured{
flex-direction: column;
align-items: center;
width: 100%;
}
.recent img,
.featured img,
.recent video,
.featured video{
max-width:100%;
margin:0.25rem;
}
.featured img,
.recent video,
.featured video{
max-width:unset;
width:100%;
margin:0;
}
.listing{
flex-direction: column;
}