Skip to content

Commit 7c12265

Browse files
committed
add repo links to pages
1 parent f8daec6 commit 7c12265

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

_layouts/page.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
<header>
88
<h2>{{ page.title }}</h2>
99
<p>{{ page.tagline }}</p>
10+
{% if page.repo %}
11+
<a target="_blank" href="{{ page.repo }}" class="icon fa-github fa-2x">
12+
<span class="label">{{ page.title }} repo</span>
13+
</a>
14+
{% endif %}
1015
</header>
1116

1217
<section class="wrapper style5">

_sass/_custom.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
padding-top: 75px;
33
padding-bottom: 75px;
44
}
5+
6+
.fa-2x:hover {
7+
opacity: 0.85;
8+
}

atom-coderoad.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: page
33
title: Atom-CodeRoad
44
tagline: Play Interactive Tutorials
5+
repo: //github.com/coderoad/atom-coderoad
56
---
67

78
{% for doc in site.categories.atom-coderoad reversed %}

builder-coderoad.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: page
33
title: Builder-CodeRoad
44
tagline: Create Interactive Tutorials
5+
repo: //github.com/coderoad/builder-coderoad
56
---
67

78
{% for doc in site.categories.builder-coderoad reversed %}

0 commit comments

Comments
 (0)