Configure baseurl
This commit is contained in:
parent
00d4d90f62
commit
e06bbeaa03
6 changed files with 10 additions and 10 deletions
|
@ -31,7 +31,7 @@ To test your site locally, run this in your site's root directory
|
||||||
$ jekyll serve --watch
|
$ 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
|
## Contributing
|
||||||
Found a bug or have a suggestion? Feel free to create an issue or make a pull request!
|
Found a bug or have a suggestion? Feel free to create an issue or make a pull request!
|
||||||
|
|
|
@ -4,8 +4,8 @@ permalink: /:year-:month-:day/:title
|
||||||
# Setup
|
# Setup
|
||||||
title: Tale
|
title: Tale
|
||||||
paginate: 5
|
paginate: 5
|
||||||
baseurl: ""
|
baseurl: "/tale"
|
||||||
url: "https://chesterhow.github.io/tale"
|
url: "https://chesterhow.github.io"
|
||||||
|
|
||||||
# Assets
|
# Assets
|
||||||
sass:
|
sass:
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<h2 class="nav-title">{{ site.title }}</h2>
|
<h2 class="nav-title">{{ site.title }}</h2>
|
||||||
</a>
|
</a>
|
||||||
<ul>
|
<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>
|
<li><a href="{{ site.baseurl }}/">Posts</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -21,10 +21,10 @@ layout: default
|
||||||
|
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
{% if page.next.url %}
|
{% if page.next.url %}
|
||||||
<a href="{{ page.next.url | prepend: site.url }}" class="left arrow">←</a>
|
<a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">←</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.previous.url %}
|
{% if page.previous.url %}
|
||||||
<a href="{{ page.previous.url | prepend: site.url }}" class="right arrow">→</a>
|
<a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">→</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a href="#" class="top">Top</a>
|
<a href="#" class="top">Top</a>
|
||||||
|
|
|
@ -13,7 +13,7 @@ Tale is minimal [Jekyll](https://jekyllrb.com/) theme curated for storytellers.
|
||||||
- Markdown and HTML text formatting
|
- Markdown and HTML text formatting
|
||||||
- Pagination of posts
|
- 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
|
## Browser Support
|
||||||
Tale works on most if not all modern browsers, including Chrome, Safari and Firefox 👍🏼
|
Tale works on most if not all modern browsers, including Chrome, Safari and Firefox 👍🏼
|
||||||
|
|
|
@ -5,7 +5,7 @@ title: Home
|
||||||
|
|
||||||
<div class="catalogue">
|
<div class="catalogue">
|
||||||
{% for post in paginator.posts %}
|
{% 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>
|
<div>
|
||||||
<time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
|
<time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
|
||||||
<h1 class="catalogue-title">{{ post.title }}</h1>
|
<h1 class="catalogue-title">{{ post.title }}</h1>
|
||||||
|
@ -22,10 +22,10 @@ title: Home
|
||||||
|
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
{% if paginator.previous_page %}
|
{% if paginator.previous_page %}
|
||||||
<a href="{{ paginator.previous_page_path | prepend: site.url }}" class="left arrow">←</a>
|
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">←</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if paginator.next_page %}
|
{% if paginator.next_page %}
|
||||||
<a href="{{ paginator.next_page_path | prepend: site.url }}" class="right arrow">→</a>
|
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">→</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span>{{ paginator.page }}</span>
|
<span>{{ paginator.page }}</span>
|
||||||
|
|
Loading…
Reference in a new issue