Skip to content

Commit

Permalink
Configure baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterhow committed Oct 7, 2017
1 parent 00d4d90 commit e06bbea
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To test your site locally, run this in your site's root directory
$ jekyll serve --watch
```

Head to http://localhost:4000 to see your site in action.
Head to http://localhost:4000/tale/ to see your site in action.

## Contributing
Found a bug or have a suggestion? Feel free to create an issue or make a pull request!
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ permalink: /:year-:month-:day/:title
# Setup
title: Tale
paginate: 5
baseurl: ""
url: "https://chesterhow.github.io/tale"
baseurl: "/tale"
url: "https://chesterhow.github.io"

# Assets
sass:
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<h2 class="nav-title">{{ site.title }}</h2>
</a>
<ul>
<li><a href="{{ '/about' | prepend: site.url }}">About</a></li>
<li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
<li><a href="{{ site.baseurl }}/">Posts</a></li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ <h1 class="post-title">{{ page.title }}</h1>

<div class="pagination">
{% if page.next.url %}
<a href="{{ page.next.url | prepend: site.url }}" class="left arrow">&#8592;</a>
<a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">&#8592;</a>
{% endif %}
{% if page.previous.url %}
<a href="{{ page.previous.url | prepend: site.url }}" class="right arrow">&#8594;</a>
<a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
{% endif %}

<a href="#" class="top">Top</a>
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-03-29-introducing-tale.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Tale is minimal [Jekyll](https://jekyllrb.com/) theme curated for storytellers.
- Markdown and HTML text formatting
- Pagination of posts

Head over to the [Example Content]({{ site.url }}/2017-03-16/example-content) post for a showcase of Tale's text formatting features.
Head over to the [Example Content]({{ site.baseurl }}/2017-03-16/example-content) post for a showcase of Tale's text formatting features.

## Browser Support
Tale works on most if not all modern browsers, including Chrome, Safari and Firefox 👍🏼
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="catalogue">
{% for post in paginator.posts %}
<a href="{{ post.url | prepend: site.url }}" class="catalogue-item">
<a href="{{ post.url | prepend: site.baseurl }}" class="catalogue-item">
<div>
<time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
<h1 class="catalogue-title">{{ post.title }}</h1>
Expand All @@ -22,10 +22,10 @@ <h1 class="catalogue-title">{{ post.title }}</h1>

<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.url }}" class="left arrow">&#8592;</a>
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">&#8592;</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.url }}" class="right arrow">&#8594;</a>
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
{% endif %}

<span>{{ paginator.page }}</span>
Expand Down

0 comments on commit e06bbea

Please sign in to comment.