Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Added root_url setting to handle local development.
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 28, 2013
1 parent a1a10f0 commit 660b924
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _config.dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
domain: null
root_url: null

assets:
baseurl: /assets/
Expand Down
2 changes: 1 addition & 1 deletion _config.testing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
domain: null
root_url: null

assets:
baseurl: /assets/
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Jekyll options.
name: Site Name
domain: http://razor-x.github.io/jekyll-and-zurb
root_url: http://razor-x.github.io/jekyll-and-zurb
markdown: redcarpet
pygments: true

Expand Down
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

<body>
<header>
<h1><a href="/">{{ site.name }}</a></h1>
<h1><a href="{{ site.root_url }}/">{{ site.name }}</a></h1>
</header>

{{ content }}

<footer>
{% if site.social.facebook.enabled %}
<div class="fb-like" data-href="{{ site.domain }}{{ page.url }}" data-width="450" data-layout="button_count" data-show-faces="false" data-send="false"></div>
<div class="fb-like" data-href="{{ site.root_url }}{{ page.url }}" data-width="450" data-layout="button_count" data-show-faces="false" data-send="false"></div>
{% endif %}

{% if site.social.google.enabled %}
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h1>blog posts</h1>
<ul class="posts">
{% for post in posts %}
<li>{{ post.date | date_to_string }} &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
<li>{{ post.date | date_to_string }} &raquo; <a href="{{ site.root_url }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>

Expand All @@ -31,12 +31,12 @@ <h1>blog posts</h1>
{% elsif page == 1 %}
<li><a href="/">{{ page }}</a></li>
{% else %}
<li><a href="{{ site.paginate_path | replace: ':num', page }}">{{ page }}</a></li>
<li><a href="{{ site.root_url }}{{ site.paginate_path | replace: ':num', page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}

{% if paginator.next_page %}
<li class="arrow"><a href="{{ paginator.next_page_path }}">&raquo;</a></li>
<li class="arrow"><a href="{{ site.root_url }}{{ paginator.next_page_path }}">&raquo;</a></li>
{% else %}
<li class="arrow unavailable"><a>&raquo;</a></li>
{% endif %}
Expand Down

0 comments on commit 660b924

Please sign in to comment.