New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the absolute path to {{ site.baseurl }} to make hyperlinks and resources valid when published as a project page. #37
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ layout: nil | |
<feed xmlns="http://www.w3.org/2005/Atom"> | ||
|
||
<title>{{ site.title }}</title> | ||
<link href="{{ site.url }}/atom.xml" rel="self"/> | ||
<link href="{{ site.url }}/"/> | ||
<link href="{{ site.baseurl }}atom.xml" rel="self"/> | ||
<link href="{{ site.baseurl }}"/> | ||
<updated>{{ site.time | date_to_xmlschema }}</updated> | ||
<id>{{ site.url }}</id> | ||
<author> | ||
|
@@ -18,7 +18,7 @@ layout: nil | |
{% for post in site.posts %} | ||
<entry> | ||
<title>{{ post.title }}</title> | ||
<link href="{{ site.url }}{{ post.url }}"/> | ||
<link href="{{ site.baseurl }}.{{ post.url }}"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Misplaced period |
||
<updated>{{ post.date | date_to_xmlschema }}</updated> | ||
<id>{{ site.url }}{{ post.id }}</id> | ||
<content type="html">{{ post.content | xml_escape }}</content> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
{% for post in paginator.posts %} | ||
<div class="post"> | ||
<h1 class="post-title"> | ||
<a href="{{ post.url }}"> | ||
<a href="{{ site.baseurl }}.{{ post.url }}"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Misplaced period There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. emm... Yes, I tested this line without period. It works fine, but the address would appear two '/' in the address line, like |
||
{{ post.title }} | ||
</a> | ||
</h1> | ||
|
@@ -21,15 +21,15 @@ <h1 class="post-title"> | |
|
||
<div class="pagination"> | ||
{% if paginator.next_page %} | ||
<a class="pagination-item older" href="/page{{paginator.next_page}}">Older</a> | ||
<a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a> | ||
{% else %} | ||
<span class="pagination-item older">Older</span> | ||
{% endif %} | ||
{% if paginator.previous_page %} | ||
{% if paginator.page == 2 %} | ||
<a class="pagination-item newer" href="/">Newer</a> | ||
<a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a> | ||
{% else %} | ||
<a class="pagination-item newer" href="/page{{paginator.previous_page}}">Newer</a> | ||
<a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a> | ||
{% endif %} | ||
{% else %} | ||
<span class="pagination-item newer">Newer</span> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the dot here between these.