Skip to content

Commit 97f04ea

Browse files
committed
Introduced relative paths so urls for subpages are cleaner
1 parent 6deafe9 commit 97f04ea

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
_site
44
Gemfile
55
Gemfile.lock
6-
mobile-app-landing-page.gemspec
6+
automatic-app-landing-page.gemspec
77
*.gemspec

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ exclude:
135135
collections:
136136
pages:
137137
output: true
138+
permalink: /:path/
138139

139140
# Markdown rendering
140141
markdown: kramdown

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</div>
4242
<div class="footerLinks">
4343
{% for page in site.pages %}
44-
<a href="{{ page.url }}" target="_self">{{ page.title }}</a>
44+
<a href="{{ page.url | relative_url }}" target="_self">{{ page.title }}</a>
4545
{% endfor %}
4646
</div>
4747
</footer>

_includes/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
{% endif %}
1616

1717
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
18-
<link rel="stylesheet" href="../main.css">
19-
</head>
18+
<link rel="stylesheet" href="/main.css">
19+
</head>

0 commit comments

Comments
 (0)