Skip to content

Commit

Permalink
baseurl fix
Browse files Browse the repository at this point in the history
relative url (assuming baseurl is prepended with / )
  • Loading branch information
darcyknox committed Jun 4, 2019
1 parent 999adf4 commit 226f572
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Expand Up @@ -9,16 +9,16 @@
{% assign size = posts | size %}
<section class="category">
<h3>
<a href="/{{ site.baseurl }}/category/{{ name | slugify }}/">{{ name | replace: "-", " " }}</a>
<a href="{{ site.baseurl }}/category/{{ name | slugify }}/">{{ name | replace: "-", " " }}</a>
</h3>

<ul>
{% assign tutorials = posts | sort: "title" %}
{% for tutorial in tutorials limit: 4 %}
<li><a href="/{{ site.baseurl }}{{ tutorial.url }}">{% include document-icon.html icon=tutorial.type %}{{ tutorial.title }}</a></li>
<li><a href="{{ site.baseurl }}{{ tutorial.url }}">{% include document-icon.html icon=tutorial.type %}{{ tutorial.title }}</a></li>
{% endfor %}
{% if size > 4 %}
<li><a href="/{{ site.baseurl }}/category/{{ name | slugify }}/">{{ size | minus: 4 }} more...</a></li>
<li><a href="{{ site.baseurl }}/category/{{ name | slugify }}/">{{ size | minus: 4 }} more...</a></li>
{% endif %}
</ul>
</section>
Expand Down

0 comments on commit 226f572

Please sign in to comment.