Skip to content

Commit b51fee6

Browse files
committed
blog setup + navbar
1 parent 3a84a9c commit b51fee6

39 files changed

+192
-98
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
_site
2+
.jekyll-metadata

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
gem 'github-pages'
2-
gem 'jekyll-paginate'
2+
# gem 'jekyll-paginate'
33
gem 'jekyll-compose', group: [:jekyll_plugins]
44
source 'https://rubygems.org'

Gemfile.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ PLATFORMS
128128
DEPENDENCIES
129129
github-pages
130130
jekyll-compose
131-
jekyll-paginate
132131

133132
BUNDLED WITH
134133
1.11.2

_config.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,29 @@
33
# ----------------------- #
44

55
url: https://coderoad.github.io
6+
permalink: /:categoryies/:title
67
title: CodeRoad
78
email: coderoadapp@gmail.com
89
author: Shawn McKay
910
description: > # "Free interactive coding tutorials inside of the Atom editor. Build your own tutorials using the coderoad-cli and tools developers already know: markdown and unit tests.
11+
12+
# info
1013
image: https://coderoad.github.io/img/coderoad-header.jpg
1114
atomVersion: 0.5.4
1215
cliVersion: 0.3.26
1316
video: DbLpdgrYVOU
1417

18+
# tutorials
19+
tutorials:
20+
- title: JavaScript Functional School
21+
description: A fun look at functional programming concepts in JavaScript
22+
icon: github
23+
url: https://github.com/coderoad/coderoad-functional-school
24+
instructions: npm i --save coderoad-functional-school
25+
26+
1527
# Blog
1628
blogurl: '/blog'
17-
paginate: 5
1829
name: Shawn McKay
1930
bio: >
2031
About me
@@ -39,18 +50,7 @@ kramdown:
3950
input: GFM
4051
syntax_highlighter: rouge
4152
parse_block_html: true
42-
permalink: pretty
43-
44-
gems:
45-
- jekyll-paginate
4653

4754
# ----------------------- #
4855
# 3rd Party Settings #
4956
# ----------------------- #
50-
51-
tutorials:
52-
- title: JavaScript Functional School
53-
description: A fun look at functional programming concepts in JavaScript
54-
icon: github
55-
url: https://github.com/coderoad/coderoad-functional-school
56-
instructions: npm i --save coderoad-functional-school

_includes/blog/feed.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: null
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6+
<channel>
7+
<title>{{ site.title | xml_escape }}</title>
8+
<description>{{ site.description | xml_escape }}</description>
9+
<link>{{ site.url }}{{ site.baseurl }}/</link>
10+
<atom:link href="{{ "blog/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
11+
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
12+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
13+
<generator>Jekyll v{{ jekyll.version }}</generator>
14+
{% for post in site.categories.blog limit:10 %}
15+
<item>
16+
<title>{{ post.title | xml_escape }}</title>
17+
<description>{{ post.content | xml_escape }}</description>
18+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
19+
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
20+
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
21+
{% for tag in post.tags %}
22+
<category>{{ tag | xml_escape }}</category>
23+
{% endfor %}
24+
{% for cat in post.categories %}
25+
<category>{{ cat | xml_escape }}</category>
26+
{% endfor %}
27+
</item>
28+
{% endfor %}
29+
</channel>
30+
</rss>

_includes/blog/footer.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<footer class="site-footer">
2-
<a class="subscribe" href="{{ "/feed.xml" | prepend: site.baseurl }}"> <span class="tooltip"> <i class="fa fa-rss"></i> Subscribe!</span></a>
32
<div class="inner">
43
<section class="copyright">All content copyright <a href="mailto:{{ site.email}}">{{ site.name }}</a> &copy; {{ site.time | date: '%Y' }} &bull; All rights reserved.</section>
54
<section class="poweredby">Made with <a href="http://jekyllrb.com"> Jekyll</a> and <a href="https://github.com/ageitgey/amplify">Amplify</a></section>

_includes/blog/head.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<head>
22
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
33
<link href='https://fonts.googleapis.com/css?family=Lora:400,700' rel='stylesheet' type='text/css'>
4-
<script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script>
54

65
<meta charset="utf-8">
76
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -10,8 +9,8 @@
109
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
1110
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
1211

13-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
14-
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
12+
<link rel="canonical" href="{{ page.url | replace:'blog.html','' | prepend: site.baseurl | prepend: site.url }}">
13+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "blog/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
1514

1615
<script type="application/ld+json">
1716
{% include blog/metadata.json %}
@@ -28,4 +27,6 @@
2827

2928
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
3029
<script async src="https://cdn.ampproject.org/v0.js"></script>
30+
<script async src="/js/jquery-1.11.0.js"></script>
31+
<script async src="/js/bootstrap.min.js"></script>
3132
</head>

_includes/blog/header.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

_includes/blog/nav.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!-- Navigation -->
2+
<nav class="navbar navbar-default navbar-collapse" role="navigation">
3+
<div class="container">
4+
<!-- Brand and toggle get grouped for better mobile display -->
5+
<div class="navbar-header page-scroll">
6+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
7+
<span class="sr-only">Toggle navigation</span>
8+
<span class="icon-bar"></span>
9+
<span class="icon-bar"></span>
10+
<span class="icon-bar"></span>
11+
</button>
12+
<a class="navbar-brand page-scroll" href="/">{{ site.title }}</a>
13+
</div>
14+
<!-- Collect the nav links, forms, and other content for toggling -->
15+
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
16+
<ul class="nav navbar-nav navbar-right">
17+
<li>
18+
<a class="page-scroll" href="/">Home</a>
19+
</li>
20+
<li>
21+
<a class="page-scroll" href="/build">Build</a>
22+
</li>
23+
<li>
24+
<a class="page-scroll" href="/docs">Docs</a>
25+
</li>
26+
</ul>
27+
</div>
28+
<!-- /.navbar-collapse -->
29+
</div>
30+
<!-- /.container -->
31+
</nav>

_includes/blog/styles.scss

Lines changed: 14 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)