Skip to content

Commit

Permalink
Add jekyll.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Williams committed Jan 15, 2015
1 parent 2393bdf commit f653978
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 44 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_site
.sass-cache
Gemfile
Gemfile*
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Site settings
title: Greg Jolley -- Amp project
email: [email protected]
description: > # this means to ignore newlines until "baseurl:"
Projects by Greg Jolley. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://gregjolley.github.io" # the base hostname & protocol for your site
github_username: gregjolley
55 changes: 55 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">

<link rel="stylesheet" href="{{ "/stylesheets/styles.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/stylesheets/pygment_trac.css" | prepend: site.baseurl }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>

<body>
<div class="wrapper">
<header>
<h1>Amplifier</h1>
<p>2014 project </p>

<div><a class="page-link" href="/{{ page.url | prepend: site.baseurl }}">Home</a></div>
{% for page in site.pages %}
{% if page.title %}
<div><a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></div>
{% endif %}
{% endfor %}
</p>

<!-- <p class="view"><a href="https://github.com/gregjolley/amplifier">View the Project on GitHub <small>gregjolley/amplifier</small></a></p> -->

<img src="/images/IMG_0015.JPG" alt="Amplifier">

<!-- <ul> -->
<!-- <li><a href="https://github.com/gregjolley/amplifier/zipball/master">Download <strong>ZIP File</strong></a></li> -->
<!-- <li><a href="https://github.com/gregjolley/amplifier/tarball/master">Download <strong>TAR Ball</strong></a></li> -->
<!-- <li><a href="https://github.com/gregjolley/amplifier">View On <strong>GitHub</strong></a></li> -->
<!-- </ul> -->

</header>
<section>

{{ content }}

</section>
<footer>
<p><small>Hosted on GitHub Pages &mdash; This project is maintained by <a href="https://github.com/gregjolley">Greg Jolley</a></small></p>
</footer>
</div>
<script src="javascripts/scale.fix.js"></script>

</body>
</html>
12 changes: 12 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default
---
<section>
<div class="post">

<h1 class="post-title">{{ page.title }}</h1>

{{ content }}

</div>
</section>
11 changes: 11 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: default
---
<div class="post">

<h1 class="post-title">{{ page.title }}</h1>
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>

{{ content }}

</div>
30 changes: 30 additions & 0 deletions feed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>
44 changes: 0 additions & 44 deletions index.html

This file was deleted.

0 comments on commit f653978

Please sign in to comment.