Skip to content

Commit 5bdbd6c

Browse files
committed
New theme using Lagrange
1 parent 2186cac commit 5bdbd6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1032
-291
lines changed

Diff for: _config.yml

+23-27
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
1-
# Site settings
2-
title: OpenSatKit
3-
header-img: img/wallup.jpg
4-
5-
copyright_name: OpenSatKit
6-
description: "An open-source kit for satelite software"
7-
baseurl: ""
8-
url: "http://opensatkit.github.io"
9-
github_username: OpenSatKit
10-
email_username: [email protected]
1+
# Site Settings
2+
description: "Provides a complete open source desktop solution for learning how to use NASA's core flight system (cFS). The kit uses Ball Aerospace's COSMOS command and telemetry system, NASA's cFS, and a NASA dynamic simulator called 42. "
3+
github-wiki-url: https://github.com/OpenSatKit/OpenSatKit/wiki
4+
5+
baseurl: "/blog-proto"
6+
#url: "http://dmccomas.github.io"
7+
github:
8+
wiki-url: https://github.com/OpenSatKit/OpenSatKit/wiki
9+
issues-url: https://github.com/OpenSatKit/OpenSatKit/issues
10+
url: https://dmccomas.github.io/blog-proto
11+
# url: https://github.com/OpenSatKit/OpenSatKit/
12+
# username: OpenSatKit
1113

12-
# Google Analytics
13-
# To enable google analytics, uncomment below line with a valid Google Tracking ID
14-
# google_tracking_id:
14+
paginate: 5
1515

1616
# Build settings
17-
pagination:
18-
enabled: true
19-
per_page: 5
20-
permalink: '/page/:num/'
21-
title: ':title - :num of :max'
22-
limit: 0
23-
sort_field: 'date'
24-
sort_reverse: true
17+
markdown: kramdown
18+
highlighter: rouge
19+
permalink: none
20+
plugins: [jekyll-paginate, jekyll-sitemap, jekyll-feed]
2521

26-
markdown: kramdown
27-
highlighter: rouge
28-
permalink: pretty
29-
exclude: ["less","node_modules","Gruntfile.js","package.json","README.md","Gemfile","Gemfile.lock","deploy.sh","LICENSE"]
30-
include: ["_pages"]
22+
# Customise feed settings (uncommenting following two fields to customise feed title and description)
23+
#title: "Lagrange-Custom"
24+
#description: "a minimalist Jekyll theme-Custom"
3125

32-
gems: [jekyll-paginate-v2, jekyll-feed, jekyll-lunr-js-search]
26+
# RSS 2.0 can be used instead of Atom by uncommenting following two lines
27+
#feed:
28+
# path: rss-feed.xml

Diff for: _data/authors.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
primary:
2+
name: 'David McComas'
3+
#twitter: paululele

Diff for: _data/settings.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
title: OpenSatKit
2+
tagline: Core Flight System (cFS) starter kit
3+
4+
# Authors documented under _data
5+
6+
# Change to true for Disqus comments
7+
disqus:
8+
comments: false
9+
disqus_shortname: 'https-lenpaul-github-io-lagrange'
10+
11+
google-ID: 'UA-80213386-1'
12+
13+
menu:
14+
- {name: 'About', path: 'menu', url: 'about.html'}
15+
- {name: 'Blog', path: 'menu', url: 'blog.html'}
16+
- {name: 'Contact', path: 'menu', url: 'contact.html'}
17+
18+
social:
19+
- {icon: 'github', link: 'https://www.github.com/dmccomas'}
20+
- {icon: 'linkedin', link: 'http://www.linkedin.com/in/david-mccomas-08995b135/'}
21+
- {icon: 'envelope', link: 'mailto:[email protected]'}
22+
- {icon: 'rss-square', link: 'feed.xml'}
23+
#dcm - {icon: 'twitter', link: 'https://twitter.com/paululele'}
24+
25+
# Available social icons are powered by Font Awesome, so you can use any icon that they offer

Diff for: _includes/disqus.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<section class="disqus">
2+
<div id="disqus_thread"></div>
3+
<script type="text/javascript">
4+
var disqus_shortname = "{{ site.data.settings.disqus.disqus_shortname }}";
5+
var disqus_identifier = "{{ page.url }}";
6+
(function() {
7+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
8+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
9+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
10+
})();
11+
</script>
12+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
13+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
14+
</section>

Diff for: _includes/footer.html

+5-98
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,6 @@
1-
<!-- Footer -->
2-
<footer>
3-
<div class="container">
4-
<div class="row" style="text-align: center; align-items: center">
5-
6-
<form action="/search" method="get" style="width:90%; max-width: 300px; margin: 0 auto">
7-
<div class="input-group">
8-
<input type="text" class="form-control" id="search-query" name="q" autocomplete="off" placeholder="Search">
9-
<span class="input-group-btn">
10-
<input type="submit" class="btn " value="Go" style="padding: 6px 12px">
11-
</span>
12-
</div>
13-
</form>
14-
15-
<br>
16-
</div>
17-
<div class="row">
18-
19-
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
20-
<ul class="list-inline text-center">
21-
22-
<li>
23-
<a href="{{ "/feed.xml" | prepend: site.baseurl }}">
24-
<span class="fa-stack fa-lg">
25-
<i class="fa fa-circle fa-stack-2x"></i>
26-
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
27-
</span>
28-
</a>
29-
</li>
30-
{% if site.twitter_username %}
31-
<li>
32-
<a href="https://twitter.com/{{ site.twitter_username }}">
33-
<span class="fa-stack fa-lg">
34-
<i class="fa fa-circle fa-stack-2x"></i>
35-
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
36-
</span>
37-
</a>
38-
</li>
39-
{% endif %}
40-
{% if site.facebook_username %}
41-
<li>
42-
<a href="https://www.facebook.com/{{ site.facebook_username }}">
43-
<span class="fa-stack fa-lg">
44-
<i class="fa fa-circle fa-stack-2x"></i>
45-
<i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
46-
</span>
47-
</a>
48-
</li>
49-
{% endif %}
50-
{% if site.github_username %}
51-
<li>
52-
<a href="https://github.com/{{ site.github_username }}">
53-
<span class="fa-stack fa-lg">
54-
<i class="fa fa-circle fa-stack-2x"></i>
55-
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
56-
</span>
57-
</a>
58-
</li>
59-
{% endif %}
60-
{% if site.email_username %}
61-
<li>
62-
<a href="mailto:{{ site.email_username }}">
63-
<span class="fa-stack fa-lg">
64-
<i class="fa fa-circle fa-stack-2x"></i>
65-
<i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
66-
</span>
67-
</a>
68-
</li>
69-
{% endif %}
70-
</ul>
71-
<p class="copyright text-muted">{{ site.copyright_name }} {{ site.time | date: '%Y' }}</p>
72-
</div>
73-
</div>
74-
</div>
1+
<footer class="footer">
2+
{% for item in site.data.settings.social %}
3+
<a href="{{ item.link }}" target="_blank"><i class="fa fa-{{ item.icon }}" aria-hidden="true"></i></a>
4+
{% endfor %}
5+
<div class="post-date"><a href="{{ site.github.url }}/menu/about.html">{{ site.data.settings.title }} | {{ site.data.settings.tagline }} by {{ site.data.authors.primary.name }}</a></div>
756
</footer>
76-
77-
78-
<script src="/js/search.min.js" type="text/javascript" charset="utf-8"></script>
79-
80-
<!-- jQuery -->
81-
<!-- <script src="{{ "/js/jquery.min.js " | prepend: site.baseurl }}"></script> -->
82-
83-
<!-- Bootstrap Core JavaScript -->
84-
<script src="{{ "/js/bootstrap.min.js " | prepend: site.baseurl }}"></script>
85-
86-
<!-- Custom Theme JavaScript -->
87-
<script src="{{ "/js/open-sat-kit.min.js " | prepend: site.baseurl }}"></script>
88-
89-
<script type="text/javascript">
90-
$(function() {
91-
$('#search-query').lunrSearch({
92-
indexUrl : '/js/index.json', // url for the .json file containing search index data
93-
results : '#search-results', // selector for containing search results element
94-
template : '#search-results-template', // selector for Mustache.js template
95-
titleMsg : '<h1>Search results<h1>', // message attached in front of results (can be empty)
96-
emptyMsg : '<p>Nothing found.</p>' // shown message if search returns no results
97-
});
98-
});
99-
</script>

Diff for: _includes/google-analytics.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', '{{ site.data.settings.google-ID }}', 'auto');
8+
ga('send', 'pageview');
9+
</script>

Diff for: _includes/head.html

+29-32
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
11
<head>
22

3-
<meta charset="utf-8">
4-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<meta name="description" content="{{ site.description }}">
7-
8-
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
9-
10-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11-
12-
<!-- Bootstrap Core CSS -->
13-
<link rel="stylesheet" href="{{ "/css/bootstrap.min.css" | prepend: site.baseurl }}">
14-
15-
<!-- Custom CSS -->
16-
<link rel="stylesheet" href="{{ "/css/open-sat-kit.min.css" | prepend: site.baseurl }}">
17-
18-
<!-- Pygments Github CSS -->
19-
<link rel="stylesheet" href="{{ "/css/syntax.css" | prepend: site.baseurl }}">
20-
21-
<!-- Custom Fonts -->
22-
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
23-
<link href='//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
24-
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
25-
26-
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
27-
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
28-
<!--[if lt IE 9]>
29-
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
30-
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
31-
<![endif]-->
32-
33-
{% feed_meta %}
34-
3+
<title>
4+
{% if page.title == "Home" %}
5+
{{ site.data.settings.title }} | {{ site.data.settings.tagline }}
6+
{% else %}
7+
{{ page.title }} | {{ site.data.settings.title }}
8+
{% endif %}
9+
</title>
10+
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
13+
<link rel="stylesheet" href="{{ site.github.url }}/assets/css/main.css">
14+
<link rel="stylesheet" href="{{ site.github.url }}/assets/css/syntax.css">
15+
<!-- RSS-v2.0
16+
<link href="{{ site.github.url }}/feed.xml" type="application/rss+xml" rel="alternate" title="{{ site.data.settings.title }} | {{ site.data.settings.tagline }}"/>
17+
//-->
18+
19+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700%7CPT+Sans:400">
20+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro">
21+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Quattrocento+Sans">
22+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
23+
24+
<script type="text/javascript" async
25+
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
26+
</script>
27+
28+
{% include google-analytics.html %}
29+
<!-- Use Atom -->
30+
{% feed_meta %}
31+
3532
</head>

Diff for: _includes/header.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<header class="masthead">
2+
<h3 class="masthead-title">
3+
<a href="{{ site.github.url }}/">{{ site.data.settings.title }}</a>
4+
<small class="masthead-subtitle">{{ site.data.settings.tagline }}</small>
5+
{% include menu.html %}
6+
</h3>
7+
</header>

Diff for: _includes/menu.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div class="menu">
2+
<nav class="menu-content">
3+
{% for item in site.data.settings.menu %}
4+
<a href="{{ site.github.url }}/{{ item.path }}/{{ item.url }}">{{ item.name }}</a>
5+
{% endfor %}
6+
</nav>
7+
<nav class="social-icons">
8+
{% for item in site.data.settings.social %}
9+
<a href="{{ item.link }}" target="_blank"><i class="fa fa-{{ item.icon }}" aria-hidden="true"></i></a>
10+
{% endfor %}
11+
</nav>
12+
</div>

Diff for: _includes/read-time.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% if post.layout != post %}
2+
{% assign words = post.content | strip_html | number_of_words %}
3+
{% if words < 180 %}
4+
less than 1 minute read
5+
{% elsif words < 360 %}
6+
1 minute read
7+
{% else %}
8+
{{ words | divided_by:180 }} minute read
9+
{% endif %}
10+
{% endif %}
11+
12+
{% if post.layout == post %}
13+
{% assign words = content | number_of_words %}
14+
{% if words < 180 %}
15+
less than 1 minute read
16+
{% elsif words < 360 %}
17+
1 minute read
18+
{% else %}
19+
{{ words | divided_by:180 }} minute read
20+
{% endif %}
21+
{% endif %}

Diff for: _includes/related-posts.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="related">
2+
<h1 >You may also enjoy:</h1>
3+
{% assign listed_posts_urls = page.url | split: ' ' %}
4+
<ul class="related-posts">
5+
{% for tag in page.tags %}
6+
{% for mypost in site.tags[tag] limit:3 %}
7+
{% if listed_posts_urls contains mypost.url %}
8+
{% else %}
9+
<li>
10+
<h3>
11+
<a href="{{ site.github.url }}{{ mypost.url }}">
12+
{{ mypost.title }}
13+
<!--<img src="{{ site.url }}{{ site.baseurl }}/images/{{ mypost.image.teaser }}">-->
14+
<!--<small>{{ mypost.date | date: "%B %-d, %Y" }}</small>-->
15+
</a>
16+
</h3>
17+
</li>
18+
{% assign listed_posts_urls = listed_posts_urls | push: mypost.url %}
19+
{% endif %}
20+
{% endfor %}
21+
{% endfor %}
22+
</ul>
23+
</div>

Diff for: _includes/social-sharing.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="post-date">Feel free to share!</div>
2+
<div class="sharing-icons">
3+
<a href="https://twitter.com/intent/tweet?text={{ page.title }}&amp;url={{ site.github.url }}{{ page.url }}&amp;via={{ site.data.authors.primary.twitter }}" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a>
4+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.github.url }}{{ page.url }}&amp;title={{ page.title }}" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a>
5+
<a href="https://plus.google.com/share?url={{ site.github.url }}{{ page.url }}" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
6+
</div>
7+
</div>

Diff for: _layouts/default.html

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
1+
<!doctype html>
2+
<html>
33

44
{% include head.html %}
55

66
<body>
77

8-
{% include nav.html %}
8+
<div class="container">
9+
{% include header.html %}
910

10-
{{ content }}
11+
<div class="post-container">
12+
{{ content }}
13+
</div>
1114

1215
{% include footer.html %}
1316

14-
{% include ga.html %}
17+
</div>
1518

1619
</body>
17-
1820
</html>

0 commit comments

Comments
 (0)