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:
@ -12,7 +12,7 @@
|
||||
|
||||
{% if site.share-links-active.twitter %}
|
||||
<!--- Share on Twitter -->
|
||||
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
|
||||
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
|
||||
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
|
||||
<span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
|
||||
<span class="sr-only">Twitter</span>
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
{% if site.share-links-active.facebook %}
|
||||
<!--- Share on Facebook -->
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}"
|
||||
class="btn btn-social-icon btn-facebook" title="Share on Facebook">
|
||||
<span class="fa fa-fw fa-facebook" aria-hidden="true"></span>
|
||||
<span class="sr-only">Facebook</span>
|
||||
@ -30,7 +30,7 @@
|
||||
|
||||
{% if site.share-links-active.linkedin %}
|
||||
<!--- Share on LinkedIn -->
|
||||
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}"
|
||||
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}"
|
||||
class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
|
||||
<span class="fa fa-fw fa-linkedin" aria-hidden="true"></span>
|
||||
<span class="sr-only">LinkedIn</span>
|
||||
|
Reference in New Issue
Block a user