Skip to content

Commit

Permalink
use relative_url
Browse files Browse the repository at this point in the history
  • Loading branch information
godalming123 committed Feb 5, 2022
1 parent 981c901 commit dcbe549
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ <h3>
</h3>
<p>A website for me to post my tuturiols experiences and what I'm working on.</p>
<!-- pages -->
<li><a href="/blog/#intro" class="waves-effect closeSidenavs"><i class="material-icons">drive_file_rename_outline</i>Intro</a></li>
<li><a href="{{/#intro | relative_url}}" class="waves-effect closeSidenavs"><i class="material-icons">drive_file_rename_outline</i>Intro</a></li>
{% for collection in site.collections %}
{% if collection.isPostType %}
<li>
<a href="/blog/#{{ collection.label}}" class="waves-effect closeSidenavs">
<a href="/#{{ collection.label | relative_url}}" class="waves-effect closeSidenavs">
{% if collection.icon != "" %}
<img src="{{ collection.icon }}" alt="{{ collection.iconAlt }}" class="invert-on-dark">
<img src="{{ collection.icon | relative_url}}" alt="{{ collection.iconAlt }}" class="invert-on-dark">
{% endif %}
{% if collection.matirialIcon != "" %}
<i alt="{{ collection.iconAlt }}" class="invert-on-dark material-icons">{{ collection.matirialIcon }}</i>
Expand Down
6 changes: 3 additions & 3 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: "My Blog"
---

<h1 id="intro"><img loading="lazy" src="/icons/blogger.svg" class="invert-on-dark">My Blog</h1>
<h1 id="intro"><img loading="lazy" src="{{ /icons/blogger.svg | relative_url }}" class="invert-on-dark">My Blog</h1>

{{content}}

Expand All @@ -13,7 +13,7 @@ <h1 id="intro"><img loading="lazy" src="/icons/blogger.svg" class="invert-on-dar
<!-- title -->
<h4 id="{{ collection.label }}" >
{% if collection.icon != "" %}
<img loading="lazy" src="{{ collection.icon }}" alt="{{ collection.iconAlt }}" class="invert-on-dark">
<img loading="lazy" src="{{ collection.icon | relative_url}}" alt="{{ collection.iconAlt }}" class="invert-on-dark">
{% endif %}
{% if collection.matirialIcon != "" %}
<i alt="{{ collection.iconAlt }}" class="invert-on-dark material-icons">{{ collection.matirialIcon }}</i>
Expand Down Expand Up @@ -62,7 +62,7 @@ <h4 id="{{ collection.label }}" >
</div>
<!-- url -->
{% if collection.output == true %}<!--if jekyll will generate a url for the blog-->
<a href="{{ document.url }}" class="clickable-div-link">See the blog >></a>
<a href="{{ document.url | relative_url }}" class="clickable-div-link">See the blog >></a>
{% endif %}
</div>
{% endfor %}
Expand Down

0 comments on commit dcbe549

Please sign in to comment.