Skip to content

Commit b60046a

Browse files
committed
Fixing paths, should now work properly locally
1 parent 23d21c4 commit b60046a

9 files changed

+25
-25
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ bootwatch: yeti
1616
# Build settings
1717
markdown: kramdown
1818
highlighter: rouge
19-
gems:
19+
plugins:
2020
- jekyll-feed
2121
- jekyll-redirect-from
2222
- jekyll-seo-tag

_includes/docs_nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h4 class="panel-title">
1313
{% for item in section.docs %}
1414
{% assign item_url = item | prepend:"/docs/" | append:"/" %}
1515
{% assign p = site.docs | where:"url", item_url | first %}
16-
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | prepend: site.baseurl }}">{{ p.title }}</a>
16+
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | relative_url }}">{{ p.title }}</a>
1717
{% endfor %}
1818
</ul>
1919
</div>

_includes/docs_v7_nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h4 class="panel-title">
1313
{% for item in section.docs_v7 %}
1414
{% assign item_url = item | prepend:"/docs_v7/" | append:"/" %}
1515
{% assign p = site.docs_v7 | where:"url", item_url | first %}
16-
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | prepend: site.baseurl }}">{{ p.title }}</a>
16+
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | relative_url }}">{{ p.title }}</a>
1717
{% endfor %}
1818
</ul>
1919
</div>

_includes/head.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
1616

1717

18-
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
19-
<link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | prepend: site.baseurl }}">
18+
<link rel="stylesheet" href="{{ "/css/main.css" | relative_url}}">
19+
<link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | relative_url }}">
2020

21-
<link rel="shortcut icon" href="{{ "/favicon.ico?1" | prepend: site.baseurl }}">
21+
<link rel="shortcut icon" href="{{ "/favicon.ico?1" | relative_url }}">
2222

23-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
24-
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
23+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | relative_url }}">
24+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | relative_url }}" />
2525
</head>

_includes/js_files.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var baseurl = '{{ site.baseurl }}'
33
</script>
44
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
5-
<script src="{{ "/js/bootstrap.min.js" | prepend: site.baseurl }} "></script>
6-
<script src="{{ "/js/typeahead.bundle.min.js" | prepend: site.baseurl }} "></script>
5+
<script src="{{ "/js/bootstrap.min.js" | relative_url }} "></script>
6+
<script src="{{ "/js/typeahead.bundle.min.js" | relative_url }} "></script>
77

8-
<script src="{{ "/js/main.js" | prepend: site.baseurl }} "></script>
8+
<script src="{{ "/js/main.js" | relative_url }} "></script>

_includes/section_docs_v7_nav.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{% assign previous = forloop.index0 | minus: 1 %}
2525
{% assign previous_page = docs_v7[previous] | prepend:"/docs_v7/" | append:"/" %}
2626
<li class="previous">
27-
<a href="{{ previous_page | prepend: site.baseurl }}">
27+
<a href="{{ previous_page | relative_url }}">
2828
<span aria-hidden="true">&larr;</span> Previous
2929
</a>
3030
</li>
@@ -40,7 +40,7 @@
4040
{% assign next = forloop.index0 | plus: 1 %}
4141
{% assign next_page = docs_v7[next] | prepend:"/docsv_7/" | append:"/" %}
4242
<li class="next">
43-
<a href="{{ next_page | prepend: site.baseurl }}">
43+
<a href="{{ next_page | relative_url }}">
4444
Next <span aria-hidden="true">&rarr;</span>
4545
</a>
4646
</li>

_includes/section_nav.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{% assign previous = forloop.index0 | minus: 1 %}
2525
{% assign previous_page = docs[previous] | prepend:"/docs/" | append:"/" %}
2626
<li class="previous">
27-
<a href="{{ previous_page | prepend: site.baseurl }}">
27+
<a href="{{ previous_page | relative_url }}">
2828
<span aria-hidden="true">&larr;</span> Previous
2929
</a>
3030
</li>
@@ -40,7 +40,7 @@
4040
{% assign next = forloop.index0 | plus: 1 %}
4141
{% assign next_page = docs[next] | prepend:"/docs/" | append:"/" %}
4242
<li class="next">
43-
<a href="{{ next_page | prepend: site.baseurl }}">
43+
<a href="{{ next_page | relative_url }}">
4444
Next <span aria-hidden="true">&rarr;</span>
4545
</a>
4646
</li>

_includes/topnav.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
<span class="icon-bar"></span>
88
<span class="icon-bar"></span>
99
</button>
10-
<a class="navbar-brand" href="{{ site.baseurl }}/">
11-
<span><img src="{{site.baseurl}}/img/logonav.png"></span>
10+
<a class="navbar-brand" href="{{ / | relative_url }}/">
11+
<span><img src="{{ "/img/logonav.png" | relative_url}}"></span>
1212
</a>
1313
</div>
1414
<div id="navbar" class="collapse navbar-collapse">
1515
<ul class="nav navbar-nav">
16-
<li {% if page.sectionid=='download' %} class="active" {% endif %}><a href="{{ "/download.html" | prepend: site.baseurl }}">Download</a></li>
17-
<li {% if page.sectionid=='docs' %} class="active" {% endif %}><a href="{{ "/publications.html" | prepend: site.baseurl }}">Publications</a></li>
18-
<li {% if page.sectionid=='docs' %} class="active" {% endif %}><a href="{{ "/docs/home/" | prepend: site.baseurl }}">Docs</a></li>
19-
<li {% if page.sectionid=='tutorials' %} class="active" {% endif %}><a href="{{ "/tutorials/home/" | prepend: site.baseurl }}">Tutorials</a></li>
20-
<li {% if page.sectionid=='vandv' %} class="active" {% endif %}><a href="{{ "/vandv/home/" | prepend: site.baseurl }}">V&V</a></li>
21-
<li {% if page.sectionid=='forum' %} class="active" {% endif %}><a href="{{ "https://www.cfd-online.com/Forums/su2/" | prepend: site.baseurl }}">Forum</a></li>
22-
<li {% if page.sectionid=='develop' %} class="active" {% endif %}><a href="{{ "/develop.html" | prepend: site.baseurl }}">Develop</a></li>
16+
<li {% if page.sectionid=='download' %} class="active" {% endif %}><a href="{{ "/download.html" | relative_url }}">Download</a></li>
17+
<li {% if page.sectionid=='publications' %} class="active" {% endif %}><a href="{{ "/publications.html" | relative_url }}">Publications</a></li>
18+
<li {% if page.sectionid=='docs' %} class="active" {% endif %}><a href="{{ "/docs/home/" | relative_url }}">Docs</a></li>
19+
<li {% if page.sectionid=='tutorials' %} class="active" {% endif %}><a href="{{ "/tutorials/home/" | relative_url }}">Tutorials</a></li>
20+
<li {% if page.sectionid=='vandv' %} class="active" {% endif %}><a href="{{ "/vandv/home/" | relative_url }}">V&V</a></li>
21+
<li {% if page.sectionid=='forum' %} class="active" {% endif %}><a href="{{ "https://www.cfd-online.com/Forums/su2/" }}">Forum</a></li>
22+
<li {% if page.sectionid=='develop' %} class="active" {% endif %}><a href="{{ "/develop.html" relative_url }}">Develop</a></li>
2323
</ul>
2424
<div class="navbar-right">
2525
<ul class="nav navbar-nav">

allposts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="inner-content">
1010
<h1>All Posts</h1> {% for page in site.posts %}
1111
<p>
12-
<strong><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></strong>
12+
<strong><a href="{{ page.url | relative_url }}">{{ page.title }}</a></strong>
1313
<span>on {{ page.date | date: "%B %e, %Y" }} {% if page.author %} by {{ page.author }}{% endif %}</span>
1414
</p>
1515
{% endfor %}

0 commit comments

Comments
 (0)