Skip to content

Commit

Permalink
Image linking and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
niclake committed Jul 7, 2024
1 parent db5c66a commit 49491c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/_includes/image.njk
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<figure class="{{ position }}">
{% if url %}
<a href="{{ url }}">
{% else if include.srcabs %}
<a href="{{ srcabs }}">
{% else %}
<a href="/assets/images/{{ src }}">
{% endif %}
<a href="{% if url %}{{ url }}{% else if srcabs %}{{ srcabs }}{{ else }}/assets/images/{{ src }}{% endif %}">
<img src="{% if srcabs %}{{srcabs}}{% else %}/assets/images/{{src}}{% endif %}" alt="{{ alt }}">
</a>
{% if caption %}
Expand Down
6 changes: 6 additions & 0 deletions src/assets/css/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
box-shadow: 4px 4px darken(#282a36, 5%);
font-size: .8rem;
}

&.single-post {
.date {
margin-bottom: 1rem;
}
}
}

.date,
Expand Down

0 comments on commit 49491c1

Please sign in to comment.