Skip to content

Commit

Permalink
url cleanup #30
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmer committed Feb 28, 2017
1 parent 8320f75 commit 9a073a7
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ <h3>Similar URLs</h3>
</li>
</script>

<script src="{{ site.baseurl | prepend: site.url }}/js/jquery-1.12.0.min.js"></script>
<script src="{{ site.baseurl | prepend: site.url }}/js/fuzzyset.js"></script>
<script src="{{ site.baseurl | prepend: site.url }}/js/offline.js"></script>
<script src="{{ "/js/jquery-1.12.0.min.js" | absolute_url }}"></script>
<script src="{{ "/js/fuzzyset.js" | absolute_url }}"></script>
<script src="{{ "/js/offline.js" | absolute_url }}"></script>
<script>
$(document).ready(function () {
insertSimilarUrls(String(window.location.href), "{{ site.baseurl | prepend: site.url }}/api/posts.json", "#article-template", ".urlSuggestions", 10);
insertSimilarUrls(String(window.location.href), "{{ "/api/posts.json" | absolute_url }}", "#article-template", ".urlSuggestions", 10);
});
</script>
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="site-footer">
<button class="go-to-top"></button>
<p class="copyright"><a href="{{ site.baseurl | prepend: site.url }}" title="{{ site.title }}">{{site.title}}</a> &copy; {{ site.time | date: '%Y' }} | <a href="{{ "/feed.xml" | absolute_url }}" title="RSS Feed">RSS Feed</a></p>
<p class="copyright"><a href="{{ "" | absolute_url }}" title="{{ site.title }}">{{site.title}}</a> &copy; {{ site.time | date: '%Y' }} | <a href="{{ "/feed.xml" | absolute_url }}" title="RSS Feed">RSS Feed</a></p>
<p class="poweredby">powered by <a href="https://jekyllrb.com/" title="Jekyll">Jekyll</a> with the <a href="https://github.com/jwillmer/jekyllDecent" title="jekyllDecent Theme">jekyllDecent</a> theme</p>
</footer>
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
{% endif %}

<header class="main-header detail-page image-bg {% if cover %} has-cover" style="background-image: url({{ cover | absolute_url }})" {% else %} no-cover" {% endif %}>
<h1 class="page-title"><a href="{{ site.baseurl | prepend: site.url }}/" title="{{ site.title }}">{{ site.title }}</a></h1>
<h1 class="page-title"><a href="{{ "/" | absolute_url }}" title="{{ site.title }}">{{ site.title }}</a></h1>
<h2 class="page-description">{{ site.subtitle }}</h2>
<div class="nav">
<ul>
<li><a class="page-link" href="{{ site.baseurl | prepend: site.url }}/" title="Home">Home</a></li>
<li><a class="page-link" href="{{ "/" | absolute_url }}" title="Home">Home</a></li>

{% assign pages = site.pages | sort:"weight" %}
{% for my_page in pages %}
Expand Down
12 changes: 6 additions & 6 deletions _includes/post_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
'disqus_shortname': '{{ site.disqus_shortname }}'
};
</script>
<script src="{{ site.baseurl | prepend: site.url }}/js/jquery-1.12.0.min.js"></script>
<script src="{{ site.baseurl | prepend: site.url }}/js/jquery.fitvids.js"></script>
<script src="{{ site.baseurl | prepend: site.url }}/js/prism.js"></script>
<script src="{{ site.baseurl | prepend: site.url }}/js/photoswipe.js"></script>
<script src="{{ site.baseurl | prepend: site.url }}/js/photoswipe-ui-default.js"></script>
<script src="{{ site.baseurl | prepend: site.url }}/js/post.js"></script>
<script src="{{ "/js/jquery-1.12.0.min.js" | absolute_url }}"></script>
<script src="{{ "/js/jquery.fitvids.js" | absolute_url }}"></script>
<script src="{{ "/js/prism.js" | absolute_url }}"></script>
<script src="{{ "/js/photoswipe.js" | absolute_url }}"></script>
<script src="{{ "/js/photoswipe-ui-default.js" | absolute_url }}"></script>
<script src="{{ "/js/post.js" | absolute_url }}"></script>
2 changes: 1 addition & 1 deletion _includes/twitter-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{% if page.url %}
{% capture page_url %}{{ page.url | replace:'/index.html','/' | absolute_url }}{% endcapture %}
<meta name="twitter:url" content="{{ site.baseurl | prepend: site.url }}">
<meta name="twitter:url" content="{{ "" | absolute_url }}">
{% endif %}

<meta name="twitter:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
Expand Down
2 changes: 1 addition & 1 deletion _layouts/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endunless %}
{% endfor %}

<a href="{{ site.baseurl | prepend: site.url }}/" class="logo-readium"><span class="logo">{{ author.initial | slice: 0, 2 | downcase }}</span></a>
<a href="{{ "/" | absolute_url }}" class="logo-readium"><span class="logo">{{ author.initial | slice: 0, 2 | downcase }}</span></a>

<section class="author-profile" itemprop="author" itemscope itemtype="http://schema.org/Person">
{% if author.cover %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
</div>
</body>

<script src="{{ site.baseurl | prepend: site.url }}/js/global.js"></script>
<script src="{{ "/js/global.js" | absolute_url}}"></script>
</script>
</html>
2 changes: 1 addition & 1 deletion _layouts/headless.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
</div>
</body>

<script src="{{ site.baseurl | prepend: site.url }}/js/global.js"></script>
<script src="{{ "/js/global.js" | absolute_url}}"></script>
</html>
2 changes: 1 addition & 1 deletion api/posts.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"title": "{{ post.title }}",
"category": "{{ post.category }}",
"url": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
"url": "{{ post.url | absolute_url }}",
"tags": {{ post.tags | jsonify }},
"date": "{{ post.date }}",
"language": "{% if post.language %}{{ post.language | downcase }}{% else %}{{ site.language | downcase }}{% endif %}"
Expand Down
8 changes: 4 additions & 4 deletions feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ layout: null
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ "" | absolute_url }}/</link>
<link>{{ "/" | absolute_url }}</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll Av{{ jekyll.version }}</generator>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
<link>{{ post.url | absolute_url}}</link>
<guid isPermaLink="true">{{ post.url | absolute_url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
Expand Down

0 comments on commit 9a073a7

Please sign in to comment.