Skip to content

Commit

Permalink
Updated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvaeth committed Sep 8, 2016
1 parent 10aeade commit 43227da
Show file tree
Hide file tree
Showing 8 changed files with 159 additions and 7 deletions.
1 change: 0 additions & 1 deletion Gemfile
@@ -1,7 +1,6 @@
source "https://rubygems.org"

group :jekyll_plugins do
gem "jekyll-paginate"
gem "jekyll-sitemap"
gem "octopress-autoprefixer"
end
98 changes: 97 additions & 1 deletion README.md
@@ -1 +1,97 @@
# 🏆 – A Jekyll Theme
# 🏆 – A Blog Theme for Jekyll
Trophy is a blog theme for Jekyll built using HTML, Sass, and JavaScript (no jQuery). External stylesheets and libraries included are Google Fonts, Font Awesome, Normalize.CSS, and WOW.js.

## Screenshots

## Installation
All dependencies are saved in the ````Gemfile````. Run ````bundle install```` (Install [Bundler](http://bundler.io/) if it is not already) after cloning the repo.

## Edit Theme
I made everything as easy as possible to edit. Most things can be found in the ````_config.yml````, but if more editing is required digging through the code will be required. The ````head.html```` file is in the ````_includes```` folder and the Sass variables are found in the ````_base.scss```` file in the ````_sass```` folder.

### _config.yml

#### Site Settings
email:
baseurl: ""
paginate: 5
paginate_path: "/blog/page-:num"

* ````email```` - Your email for the contact card and the footer
* ````baseurl```` - Path of blog if adding this on to another website
* ````paginate```` - Number of blog posts per page
* ````paginate_path```` - URL structure of paginated pages

#### SEO Settings
title:
description:
url: ""
twitter_username:
default_img:

* ````title```` - Title of blog
* ````description```` - Description of blog (recommended to not go over 160 characters)
* ````url```` - URL of main website
* ````twitter_username```` - Twitter username
* ````default_img```` - Image that will appear when posting links on social networks

#### Profile Settings
name:
profile_img:
profile:
social:
github:

* ````name```` - Full name for SEO purposes
* ````profile_img```` - Image for the profile card (size to 2000x1200px)
* ````profile```` - Short description that will be in the profile card
* ````social```` - List of social networks for icons in the contact card and the footer ([Font Awesome](http://fontawesome.io/) is used, so only match the name of the icon, but do not include ````fa-````)


#### Build Settings
include: ["_categories"]
permalink: /:year/:month/:day/:title/

* ````include```` - Folders that are not automatically included in Jekyll
* ````permalink```` - URL structure of blog posts

### _posts
---
layout: post
title: ""
date:
categories:
description:
image:
image-sm:
---

This is the YAML front matter block for blog posts.
* ````layout```` - This field will always be post
* ````title```` - The title of the blog post
* ````date```` - The date that will appear on the blog post
* ````categories```` - Optional field that can be entered as an array or a list
* ````description```` - Optional field for SEO (recommended to not go over 160 characters)
* ````image```` - The blog theme was designed for 2000x1200px images (optimize your images because this is a picture heavy theme)
* ````image-sm```` - Optional field for card layouts for image optimization and page speed (designed for 500x300px images)

### _categories
---
layout: default
title: New Category
description:
permalink: /category/new-category/
---
{% include category.html %}

Jekyll does not have anything built in for categories, so I made making new categories as simple as possible.
* ````layout```` - This field will always be default
* ````title```` - Name of the category
* ````description```` - Optional field for SEO (recommended to not go over 160 characters)
* ````permalink```` - URL for the category

## Issues


## License
Trophy is licensed under the MIT License.
5 changes: 2 additions & 3 deletions _config.yml
@@ -1,11 +1,10 @@
# Site settings
headline: A Jekyll Blog Theme
email: thomas.vaeth@gmail.com
baseurl: "/trophy"
paginate: 5
paginate_path: "/blog/page-:num"

# SEO
# SEO settings
title: Trophy
description: Trophy is a Jekyll blog theme by Thomas Vaeth in Seattle, Washington.
url: "http://thomasvaeth.com"
Expand Down Expand Up @@ -34,4 +33,4 @@ sass:
style: compressed

# Gems
gems: [jekyll-paginate, jekyll-sitemap, octopress-autoprefixer]
gems: [jekyll-sitemap, octopress-autoprefixer]
2 changes: 1 addition & 1 deletion _includes/head.html
Expand Up @@ -15,7 +15,7 @@
<meta name="twitter:card" content="summary">
<meta name="twitter:description" content="{% if page.description %}{{ page.description | escape }}{% else %}{{ site.description }}{% endif %}">
<meta name="twitter:title" content="{% if page.title %}{{ page.title | escape }} | {{ site.title }}{% else %}{{ site.title | escape }}{% endif %}">
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
<meta name="twitter:url" content="{{ page.url | prepend: site.baseurl | prepend: site.url }}">
<meta name="twitter:site" content="{{ site.title }}">
<meta name="twitter:creator" content="@{{ site.twitter_username }}">
<meta name="twitter:domain" content="{{ site.url }}">
Expand Down
4 changes: 4 additions & 0 deletions _layouts/post.html
Expand Up @@ -4,6 +4,10 @@
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">

<header class="section-padding--lg mast">
<a class="nav nav--white" href="{{ site.baseurl }}">
<i class="fa fa-lg fa-arrow-left"></i>
<span>Back to Posts</span>
</a>
<figure class="absolute-bg mast__img" style="background-image: url('{{ page.image }}');"></figure>
<div class="mast__container">
<span><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time></span>
Expand Down
4 changes: 3 additions & 1 deletion _sass/_base.scss
Expand Up @@ -84,7 +84,9 @@ a {
text-decoration: none;
transition: color 0.4s ease-in-out;

&:hover {
&:hover,
&:active,
&:focus {
color: $color-alpha;
}
}
Expand Down
48 changes: 48 additions & 0 deletions _sass/_components.scss
Expand Up @@ -295,6 +295,54 @@
}
}

/**
* Navigation
*/
.nav {
@extend %letter-spacing;

position: absolute;
top: 1em;
left: 2em;
z-index: 99;

display: flex;
align-items: center;

font-family: $font-body;
transition: left 0.4s ease-in-out;

&:hover,
&:active,
&:focus {
left: 1em;
}

i {
margin-right: 0.5em;
}

&--black {
color: $color-black;

&:hover,
&:active,
&:focus {
color: $color-black;
}
}

&--white {
color: $color-white;

&:hover,
&:active,
&:focus {
color: $color-white;
}
}
}

/**
* Post
*/
Expand Down
4 changes: 4 additions & 0 deletions archive.html
Expand Up @@ -5,6 +5,10 @@
permalink: /archive/
---
<section class="archives" itemscope itemtype="http://schema.org/Blog">
<a class="nav nav--black" href="{{ site.baseurl }}">
<i class="fa fa-lg fa-arrow-left"></i>
<span>Back to Posts</span>
</a>
<header class="archives__header">
<span>Archive</span>
</header>
Expand Down

0 comments on commit 43227da

Please sign in to comment.