Skip to content

Commit 2d46569

Browse files
committed
Add project layout, make default layout more configurable
1 parent 54d7c0c commit 2d46569

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

_layouts/default.html

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,27 @@ <h1>
2424
<p>{{ site.description }}</p>
2525

2626
<p class="view">
27-
<a href="https://github.com/geocoder-php/Geocoder">View the Project on GitHub <small>geocoder-php/Geocoder</small></a>
27+
<a href="https://github.com/geocoder-php/{% if page.project_name %}{{ page.project_name }}{% else %}Geocoder{% endif %}">
28+
View the Project on GitHub <small>geocoder-php/{% if page.project_name %}{{ page.project_name }}{% else %}Geocoder{% endif %}</small>
29+
</a>
2830
</p>
2931

3032
<ul>
31-
<li><a href="{{ site.github_base_url }}{{ site.name }}/zipball/master">Download <strong>ZIP File</strong></a></li>
32-
<li><a href="{{ site.github_base_url }}{{ site.name }}/tarball/master">Download <strong>TAR Ball</strong></a></li>
33-
<li><a href="{{ site.github_base_url }}{{ site.name }}">View On <strong>GitHub</strong></a></li>
33+
<li>
34+
<a href="{{ site.github_base_url }}{% if page.project_name %}{{ page.project_name }}{% else %}{{ site.name }}{% endif %}/zipball/master">
35+
Download <strong>ZIP File</strong>
36+
</a>
37+
</li>
38+
<li>
39+
<a href="{{ site.github_base_url }}{% if page.project_name %}{{ page.project_name }}{% else %}{{ site.name }}{% endif %}/tarball/master">
40+
Download <strong>TAR Ball</strong>
41+
</a>
42+
</li>
43+
<li>
44+
<a href="{{ site.github_base_url }}{% if page.project_name %}{{ page.project_name }}{% else %}{{ site.name }}{% endif %}">
45+
View On <strong>GitHub</strong>
46+
</a>
47+
</li>
3448
</ul>
3549
</header>
3650

@@ -39,7 +53,9 @@ <h1>
3953
<footer>
4054
<p>
4155
This project is maintained by <a href="https://github.com/willdurand">William Durand</a> and
42-
<a href="{{ site.github_base_url }}?tab=members">awesome people</a>.
56+
<a href="{{ site.github_base_url }}{% if page.project_name %}{{ page.project_name }}/contributors{% else %}?tab=members{% endif %}">
57+
awesome people
58+
</a>.
4359
</p>
4460
<p>
4561
<small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small>

_layouts/project.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
---
4+
5+
<section>
6+
{{ content }}
7+
</section>

0 commit comments

Comments
 (0)