Abs link patch (#506)
* Fix absolute URL generation url and baseurl config for this theme deviates from jekyll standard, and that results in double inclusion of project path if this theme is used as project page. Switching to Jekyll accepted url usage so that absolute_url filter works. * Alternate links need to be aboslute * mention url and baseurl only need to be modified in local dev * Update readme on new url/baseurl setting changes
This commit is contained in:
@ -8,9 +8,9 @@
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
{% if site.title-img %}
|
||||
<a class="navbar-brand navbar-brand-logo" href="{{ site.url }}"><img src="{{ site.title-img }}"/></a>
|
||||
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img src="{{ site.title-img }}"/></a>
|
||||
{% else %}
|
||||
<a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
|
||||
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
{% if page.image and (layout.show-avatar or page.show-avatar) %}
|
||||
<div class="avatar-container">
|
||||
<div class="avatar-img-border">
|
||||
<a href="{{ site.url }}">
|
||||
<a href="{{ '' | absolute_url }}">
|
||||
<img class="avatar-img" src="{{ page.image | relative_url }}" />
|
||||
</a>
|
||||
</div>
|
||||
@ -48,7 +48,7 @@
|
||||
{% elsif site.avatar and (layout.show-avatar or page.show-avatar) %}
|
||||
<div class="avatar-container">
|
||||
<div class="avatar-img-border">
|
||||
<a href="{{ site.url }}">
|
||||
<a href="{{ '' | absolute_url }}">
|
||||
<img class="avatar-img" src="{{ site.avatar | relative_url }}" />
|
||||
</a>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user