mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 03:13:30 +01:00
also assign max width to image
This commit is contained in:
parent
88f08a6d04
commit
2e9ff2c94b
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
{% else %}
|
||||
{% assign url = post.url | append: post.image %}
|
||||
{% endif %}
|
||||
<img src="{{ url }}" alt="Cover image for post {{ post.title }}">
|
||||
<img src="{{ url }}" class="devlog-image" width="90%" alt="Cover image for post {{ post.title }}">
|
||||
{% endif %}
|
||||
<h4 class="devlog-title">{{ post.title }}</h4>
|
||||
<div class="text-muted">{{ post.date | date_to_string }}</div>
|
||||
|
|
|
@ -158,7 +158,7 @@ a:visited.wide-link {
|
|||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.devlog img {
|
||||
.devlog-image {
|
||||
width: 90%;
|
||||
max-height: 120px;
|
||||
object-fit: cover;
|
||||
|
|
Loading…
Reference in a new issue