Skip to content

Commit def9aa6

Browse files
committed
refactor summary into markdown
1 parent 99cea90 commit def9aa6

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

_config.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ social:
5050
#forumbee:
5151
#tripadvisor:
5252
#amazon:
53-
languages:
54-
- Javascript:
55-
name: JS
56-
icon: javascript-plain.svg
57-
- Python:
58-
name: Python
59-
icon: python-original.svg
6053

6154
# Build settings
6255
markdown: kramdown

_posts/landing/2016-01-01-summary.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: About CodeRoad
3+
languages:
4+
- Javascript:
5+
name: JS
6+
icon: javascript-plain.svg
7+
- Python:
8+
name: Python
9+
icon: python-original.svg
10+
categories:
11+
- summary
12+
---
13+
14+
CodeRoad is a coding education platform aimed at creating interactive coding lessons. CodeRoad makes it easy to create, share, edit, and publish video-game-like tutorials that run alongside your code in the editor. It currently works with Javascript & Python, with more languages to come.

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ <h2>{{ site.title }}</h2>
1515
</section>
1616

1717
<!-- One -->
18+
{% for summary in site.categories.summary %}
1819
<section id="one" class="wrapper style1 special">
1920
<div class="inner">
2021
<header class="major">
21-
<h2>About CodeRoad</h2>
22-
<p>CodeRoad is a coding education platform aimed at creating interactive coding lessons. CodeRoad makes it easy to create, share, edit, and publish video-game-like tutorials that run alongside your code in the editor. It currently works with Javascript & Python, with more languages to come.</p>
22+
<h2>{{summary.title}}</h2>
23+
{{summary.content}}
2324
</header>
2425
<ul class="icons major">
25-
{% for lang in site.languages %}
26+
{% for lang in summary.languages %}
2627
{% include language-icon.html language=lang.name icon=lang.icon %}
2728
{% endfor %}
2829
</ul>
2930
</div>
3031
</section>
32+
{% endfor %}
3133

3234
<!-- Two -->
3335
<section id="two" class="wrapper alt style2">

0 commit comments

Comments
 (0)