Skip to content

Commit 652a75e

Browse files
committed
cleanup url mess
1 parent 7fc7cec commit 652a75e

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h2 class="footer-heading">{{ site.title }}</h2>
1212
<div class="footer-col footer-col-2">
1313
<p>
1414
<a href="https://github.com/intellij-rust/intellij-rust.github.io" class="icon-fork"></a>
15-
<a href="{{ '/feed.xml' | prepend: site.baseurl }}" class="icon-rss"></a>
15+
<a href="{{ site.github.url }}/feed.xml" class="icon-rss"></a>
1616
</p>
1717
</div>
1818
</div>

_includes/head.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
77
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
88

9-
<link rel="stylesheet" href="{{ "/assets/main.css" | prepend: site.baseurl }}">
10-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.github.url }}">
11-
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.github.url }}">
9+
<link rel="stylesheet" href="{{ site.github.url }}/assets/main.css">
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.github.url }}">
11+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.github.url }}">
1212
</head>

_includes/header.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<header class="site-header">
22
<div class="wrapper">
3-
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
3+
<a class="site-title" href="{{ site.github.url }}/">{{ site.title }}</a>
44
<nav class="site-nav">
55
<a href="#" class="menu-icon icon-three-bars"></a>
66
<div class="trigger">
7-
<a class="page-link" href="{{ site.baseurl }}/thisweek/">What's New</a>
8-
<a class="page-link" href="{{ site.baseurl }}/features/">Features</a>
9-
<a class="page-link" href="{{ site.baseurl }}/docs/">Docs</a>
7+
<a class="page-link" href="{{ site.github.url }}/thisweek/">What's New</a>
8+
<a class="page-link" href="{{ site.github.url }}/features/">Features</a>
9+
<a class="page-link" href="{{ site.github.url }}/docs/">Docs</a>
1010
</div>
1111
</nav>
1212
</div>

_layouts/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
{% include footer.html %}
1313

14-
<script src="/assets/main.js"></script>
14+
<script src="{{ site.github.url }}/assets/main.js"></script>
1515

1616
</body>
1717

_layouts/doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% assign sorted_pages = (site.docs | sort: 'order', 'last') %}
99
{% for page in sorted_pages %}
1010
<li>
11-
<a href="{{ page.url | site.baseurl }}">{{ page.title }}</a>
11+
<a href="{{ site.github.url }}{{ page.url }}">{{ page.title }}</a>
1212
</li>
1313
{% endfor %}
1414
</ul>

features.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class: features-page
1010
{% include h title="Code Completion<abbr class=\"wip\" title=\"Work In Progress\">WIP</abbr>" %}
1111

1212
intellij-rust features built from scratch code completion, leveraging IntelliJ
13-
Platform capabilities. <kbd>Ctrl+Space</kbd> invokes completion. We [do not](https://intellij-rust.github.io/docs/faq.html#racer)
13+
Platform capabilities. <kbd>Ctrl+Space</kbd> invokes completion. We [do not]({{ site.github.url }}/docs/faq.html#racer)
1414
plan to use `racer`. A decent amount of completion intelligence is already implemented,
1515
but there is definitely a lot more to do. Here are some examples of what works and
1616
what does not work (as of **June 20**).

feed.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ layout: null
66
<channel>
77
<title>{{ site.title | xml_escape }}</title>
88
<description>{{ site.description | xml_escape }}</description>
9-
<link>{{ site.github.url }}{{ site.baseurl }}/</link>
10-
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.github.url }}" rel="self" type="application/rss+xml"/>
9+
<link>{{ site.github.url }}/</link>
10+
<atom:link href="{{ "/feed.xml" | prepend: site.github.url }}" rel="self" type="application/rss+xml"/>
1111
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
1212
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
1313
<generator>Jekyll v{{ jekyll.version }}</generator>
@@ -16,8 +16,8 @@ layout: null
1616
<title>{{ post.title | xml_escape }}</title>
1717
<description>{{ post.content | xml_escape }}</description>
1818
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
19-
<link>{{ post.url | prepend: site.baseurl | prepend: site.github.url }}</link>
20-
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.github.url }}</guid>
19+
<link>{{ post.url | prepend: site.github.url }}</link>
20+
<guid isPermaLink="true">{{ post.url | prepend: site.github.url }}</guid>
2121
{% for tag in post.tags %}
2222
<category>{{ tag | xml_escape }}</category>
2323
{% endfor %}

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>{{ site.title }}</h1>
1515
<p class="desc">{{ site.description }}<sup>*</sup></p>
1616
<p class="preview-note"><sup>*</sup>work-in-progress, expect bugs and missing features</p>
1717
<div id="download">
18-
<a id="download-stable" href="{{ site.base.url }}/install.html">Install</a>
18+
<a id="download-stable" href="{{ site.github.url }}/install.html">Install</a>
1919
<div id="install-pane">
2020
{{ install-content[2] | markdownify }}
2121
<a id="install-pane-close" href="#">&times;</a>
@@ -30,8 +30,8 @@ <h1>{{ site.title }}</h1>
3030
<div class="wrapper">
3131
<h1 class="square">What is intellij-rust</h1>
3232
<div class="showcase-pic">
33-
<img src="/assets/ir-completion.png" class="completion"/>
34-
<img src="/assets/ir-intention.png" class="intention">
33+
<img src="{{ site.github.url }}/assets/ir-completion.png" class="completion"/>
34+
<img src="{{ site.github.url }}/assets/ir-intention.png" class="intention">
3535
</div>
3636
<section>
3737
<h2>Intelligent Rust</h2>
@@ -46,8 +46,8 @@ <h2>Corroded IDEA</h2>
4646
</section>
4747

4848
<ul class="fancy-link-row">
49-
<li><a href="/features/" class="fancy-link">All Features</a></li>
50-
<li><a href="/docs/quick-start.html" class="fancy-link">Quick Start</a></li>
49+
<li><a href="{{ site.github.url }}/features/" class="fancy-link">All Features</a></li>
50+
<li><a href="{{ site.github.url }}/docs/quick-start.html" class="fancy-link">Quick Start</a></li>
5151
</ul>
5252
</div>
5353
</div>
@@ -57,9 +57,9 @@ <h2>Corroded IDEA</h2>
5757
<h1 class="square">What's new</h1>
5858
{% assign post = site.posts.first %}
5959
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
60-
<h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
60+
<h2><a class="post-link" href="{{ post.url | prepend: site.github.url }}">{{ post.title }}</a></h2>
6161
<article>{{ post.content }}</article>
62-
<div class="center"><a href="/thisweek/" class="fancy-link">Previous editions</a>
62+
<div class="center"><a href="{{ site.github.url }}/thisweek/" class="fancy-link">Previous editions</a>
6363
</div>
6464
</div>
6565
</div>

thisweek.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% for post in site.posts %}
1010
<tr>
1111
<td><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%-d %b %Y" }}</time></td>
12-
<td><h2><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2></td>
12+
<td><h2><a href="{{ post.url | prepend: site.github.url }}">{{ post.title }}</a></h2></td>
1313
</tr>
1414
{% endfor %}
1515
</table>

0 commit comments

Comments
 (0)