Skip to content

Commit

Permalink
site fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroneg committed May 16, 2018
1 parent 3468ecf commit a5879c2
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.yml
@@ -1 +1,3 @@
theme: jekyll-theme-hacker
plugins:
- "jekyll-github-metadata"
1 change: 1 addition & 0 deletions _includes/footer.html
@@ -0,0 +1 @@
<p>This site is open source. <a href="{% raw %}{% github_edit_link %}{% endraw %}" class="btn btn-github"><span class="icon"></span>Improve this page</a></p>
45 changes: 45 additions & 0 deletions _layouts/default.html
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">

{% seo %}
</head>

<body>

<header>
<div class="container">
<h1><a href="{{ site.url }}">AaronEG</a></h1>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>

<section id="downloads">
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download as .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download as .tar.gz</a>
{% endif %}
</section>
</div>
</header>

<div class="container">
<section id="main_content">
{{ content }}
</section>
</div>

{% if site.google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body>
</html>
17 changes: 17 additions & 0 deletions _layouts/post.html
@@ -0,0 +1,17 @@
---
layout: default
---

<small>{{ page.date | date: "%-d %B %Y" }}</small>
<h1>{{ page.title }}</h1>

<p class="view">by {{ page.author | default: site.author }}</p>

{{content}}

{% if page.tags %}
<small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
{% endif %}

{% include footer.html %}
</html>

0 comments on commit a5879c2

Please sign in to comment.