Skip to content

Commit

Permalink
Fixing baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfarsson committed Feb 18, 2019
1 parent d0db04a commit 3409735
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ title: Permuta Triangle
email: [email protected]
description: >- # this means to ignore newlines until "baseurl:"
A research group focused on the combinatorics of permutation patterns.
baseurl: "" # the subpath of your site, e.g. /blog
baseurl: "/PermutaTriangle" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: ulfarsson
github_username: PermutaTriangle
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>{{ page.title }}</h1>
{{ page.date | date_to_string }}
{% assign author = site.authors | where: 'short_name', page.author | first %}
{% if author %}
- <a href="{{ author.url }}">{{ author.first_name }}</a>
- <a href="{{site.baseurl}}{{ author.url }}">{{ author.first_name }}</a>
{% endif %}
</p>

Expand Down
2 changes: 1 addition & 1 deletion blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>Latest Posts</h1>
<ul>
{% for post in site.posts %}
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<h2><a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a></h2>
<p>{{ post.date | date_to_string }}</p>
<p>{{ post.excerpt }}</p>
</li>
Expand Down
8 changes: 4 additions & 4 deletions members.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2>Members</h2>
{% for author in site.authors %}
{% if author.status == 'member' %}
<li>
<h2><a href="{{ author.url }}">{{ author.name }}</a></h2>
<h2><a href="{{site.baseurl}}{{ author.url }}">{{ author.name }}</a></h2>
<h3>{{ author.position }}</h3>
<p>{{ author.content | markdownify }}</p>
</li>
Expand All @@ -21,7 +21,7 @@ <h2>Collaborators</h2>
{% for author in site.authors %}
{% if author.status == 'collaborator' %}
<li>
<h2><a href="{{ author.url }}">{{ author.name }}</a></h2>
<h2><a href="{{site.baseurl}}{{ author.url }}">{{ author.name }}</a></h2>
<h3>{{ author.position }}</h3>
<p>{{ author.content | markdownify }}</p>
</li>
Expand All @@ -34,7 +34,7 @@ <h2>Students</h2>
{% for author in site.authors %}
{% if author.status == 'student' %}
<li>
<h2><a href="{{ author.url }}">{{ author.name }}</a></h2>
<h2><a href="{{site.baseurl}}{{ author.url }}">{{ author.name }}</a></h2>
<h3>{{ author.position }}</h3>
<p>{{ author.content | markdownify }}</p>
</li>
Expand All @@ -47,7 +47,7 @@ <h2>Former students</h2>
{% for author in site.authors %}
{% if author.status == 'former_student' %}
<li>
<h2><a href="{{ author.url }}">{{ author.name }}</a></h2>
<h2><a href="{{site.baseurl}}{{ author.url }}">{{ author.name }}</a></h2>
<h3>{{ author.position }}</h3>
<p>{{ author.content | markdownify }}</p>
</li>
Expand Down
2 changes: 1 addition & 1 deletion papers.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>{{ page.title }}</h1>
{% for paper in sorted %}
{% if paper.type != 'outside' %}
<li>
<h2><a href="{{ paper.url }}">{{ paper.title }}</a></h2>
<h2><a href="{{site.baseurl}}{{ paper.url }}">{{ paper.title }}</a></h2>
<p>{{ paper.journal }}</p>
<p>{{ paper.excerpt }}</p>
</li>
Expand Down
2 changes: 1 addition & 1 deletion programs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>{{ page.title }}</h1>
{% for program in sorted %}
{% if program.type != 'outside' %}
<li>
<h2><a href="{{ program.url }}">{{ program.title }}</a></h2>
<h2><a href="{{site.baseurl}}{{ program.url }}">{{ program.title }}</a></h2>
<p>{{ program.repo }}</p>
<p>{{ program.excerpt }}</p>
</li>
Expand Down
2 changes: 1 addition & 1 deletion projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>{{ page.title }}</h1>
{% assign sorted = site.projects | sort: 'date' | reverse %}
{% for project in sorted %}
<li>
<h2><a href="{{ project.url }}">{{ project.title }}</a></h2>
<h2><a href="{{site.baseurl}}{{ project.url }}">{{ project.title }}</a></h2>
<p>{{ project.excerpt }}</p>
</li>
{% endfor %}
Expand Down

0 comments on commit 3409735

Please sign in to comment.