This commit is contained in:
@@ -179,7 +179,7 @@ the post body looks similar:
|
|||||||
{% raw %}
|
{% raw %}
|
||||||
```html
|
```html
|
||||||
{% if image.src %}
|
{% if image.src %}
|
||||||
<img class="featured-img" src="/posts/img/{{ image.src }}" alt="{{ image.alt }}">
|
<img class="featured-img" src="/img/{{ image.src }}" alt="{{ image.alt }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
@@ -360,7 +360,7 @@ first, I worked on previewing the first featured image. The focus here is on dig
|
|||||||
<a href="{{ tagUrl }}" class="taglist-link">
|
<a href="{{ tagUrl }}" class="taglist-link">
|
||||||
{% set tagRecent = collections[tag] | reverse %}
|
{% set tagRecent = collections[tag] | reverse %}
|
||||||
{% if tagRecent[0].data.image.src %}
|
{% if tagRecent[0].data.image.src %}
|
||||||
<img src="/posts/img/{{ tagRecent[0].data.image.src }}" alt="{{ tagRecent[0].data.image.alt }}">
|
<img src="/img/{{ tagRecent[0].data.image.src }}" alt="{{ tagRecent[0].data.image.alt }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="missing-image"></div>
|
<div class="missing-image"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -389,7 +389,7 @@ I found that having just the first featured image made the tag page hard to diff
|
|||||||
{% set tagRecent = collections[tag] | reverse %}
|
{% set tagRecent = collections[tag] | reverse %}
|
||||||
{% for i in range(0, 4) %}
|
{% for i in range(0, 4) %}
|
||||||
{% if tagRecent[i].data.image.src %}
|
{% if tagRecent[i].data.image.src %}
|
||||||
<img src="/posts/img/{{ tagRecent[i].data.image.src }}" alt="{{ tagRecent[i].data.image.alt }}">
|
<img src="/img/{{ tagRecent[i].data.image.src }}" alt="{{ tagRecent[i].data.image.alt }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="missing-image"></div>
|
<div class="missing-image"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user