Skip to content

Commit

Permalink
Fix assets link
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Oct 14, 2024
1 parent e69bdae commit a6b1e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions petitbonhomme/_layouts/monthly_calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ <h1>{{ page.full_month }} {{ page.year }}</h1>

<div class="calendar-navigation">
{% if has_previous_month_logs.size > 0 %}
<a href="{{ '/calendar/' | append: previous_year | append: '-' | append: previous_month | relative_url }}">Previous Month</a>
<a href="{{ '/calendar/' | append: previous_year | append: '/' | append: previous_month | relative_url }}">Previous Month</a>
{% endif %}

{% if has_next_month_logs.size > 0 %}
<a href="{{ '/calendar/' | append: next_year | append: '-' | append: next_month | relative_url }}">Next Month</a>
<a href="{{ '/calendar/' | append: next_year | append: '/' | append: next_month | relative_url }}">Next Month</a>
{% endif %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion petitbonhomme/wardrobe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ layout: default
{% endif %}

<div class="wardrobe-item" data-brand="{{ item.brand }}" data-colors="{{ item.colors | join: ' ' }}" data-category="{{ item.category }}" data-name="{{ item.name }}">
{% assign full_image_path = site.baseurl | append: "/assets/img/clothes/" | append: item.image %}
{% assign full_image_path = "/assets/img/clothes/" | append: item.image %}
<div class="wardrobe-item-img-wrap">
<a href="{{ '/wardrobe/' | append: item.id | append: '.html' | relative_url }}"><img src="{{ full_image_path | relative_url }}" alt="{{ item.name }}"></a>
</div>
Expand Down

0 comments on commit a6b1e22

Please sign in to comment.