Skip to content

Commit

Permalink
Minor URL Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SalGnt committed Mar 8, 2015
1 parent 4360b39 commit 2499386
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _includes/next.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if page.next %}
<div class="next-post">
<a href="{{ site.baseurl }}{{ page.next.url }}" class="next-post-link"></a>
<a href="{{ page.next.url | prepend: site.baseurl }}" class="next-post-link"></a>

<img src="{{ page.next.thumb }}" class="next-post-thumb" />

Expand Down
2 changes: 1 addition & 1 deletion _includes/share.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% assign share-url = page.url | prepend: site.url %}
{% assign share-url = page.url | prepend: site.baseurl | prepend: site.url %}
{% assign share-thumb = page.thumb %} <!-- TO-DO -->
{% assign share-title = page.title | replace: ' ', '%20' %}
{% assign share-excerpt = page.excerpt | strip_html | truncatewords: 30 | replace: ' ', '%20' %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

<div class="sb-slidebar sb-left sb-style-push">
<nav>
<a href="{{ site.baseurl }}/"><h2 class="site-title">{{ site.title }}</h2></a>
<a href="{{ / | prepend: site.baseurl }}"><h2 class="site-title">{{ site.title }}</h2></a>
<ul class="sb-menu">
{% assign pages_list = site.pages | sort:"url" %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
<li class="sb-close {% if page.url == node.url %}active{% endif %}">
<a href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a>
<a href="{{ node.url | prepend: site.baseurl }}">{{ node.title }}</a>
</li>
{% endif %}
{% endif %}
Expand Down

0 comments on commit 2499386

Please sign in to comment.