-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40c53b8
commit e2e7fad
Showing
18 changed files
with
89 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
source "https://rubygems.org" | ||
gem 'rouge' | ||
gem 'jekyll' | ||
gem 'jekyll-paginate' | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="home"> | ||
{% if site.theme_settings.header_text %} | ||
<div class="call-out" | ||
style="background-image: url('{{ site.baseurl }}/{{ site.theme_settings.header_text_feature_image }}')"> | ||
{{ site.theme_settings.header_text }} | ||
</div> | ||
{% endif %} | ||
|
||
<div class="posts"> | ||
{% for post in paginator.posts %} | ||
<div class="post-teaser"> | ||
<header> | ||
<h1> | ||
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}"> | ||
{{ post.title }} | ||
</a> | ||
</h1> | ||
<p class="meta"> | ||
{{ post.date | date: "%B %-d, %Y" }} | ||
</p> | ||
</header> | ||
<div class="excerpt"> | ||
{{ post.excerpt }} | ||
<a class="button" href="{{ post.url | prepend: site.baseurl }}"> | ||
{{ site.theme_settings.str_continue_reading }} | ||
</a> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% if paginator.total_pages > 1 %} | ||
<div class="pagination"> | ||
{% if paginator.previous_page %} | ||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" > | ||
<i class="fa fa-chevron-left"></i> | ||
{{ site.theme_settings.str_previous_page }} | ||
</a> | ||
{% endif %} | ||
{% if paginator.next_page %} | ||
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" > | ||
{{ site.theme_settings.str_next_page }} | ||
<i class="fa fa-chevron-right"></i> | ||
</a> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: post | ||
title: Feature images | ||
feature-img: "img/sample_feature_img.png" | ||
feature-img: "assets/img/sample_feature_img.png" | ||
--- | ||
This is an example of a post which includes a feature image specified in the front matter of the post. The feature image spans the full-width of the page, and is shown with the title on permalink pages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
--- | ||
--- | ||
// External | ||
@import 'external/reset'; | ||
@import 'external/syntax'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
--- | ||
|
||
@import "type-theme"; |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,3 @@ | ||
--- | ||
layout: default | ||
layout: home | ||
--- | ||
|
||
<div class="home"> | ||
{% if site.theme_settings.header_text %} | ||
<div class="call-out" | ||
style="background-image: url('{{ site.baseurl }}/{{ site.theme_settings.header_text_feature_image }}')"> | ||
{{ site.theme_settings.header_text }} | ||
</div> | ||
{% endif %} | ||
|
||
<div class="posts"> | ||
{% for post in paginator.posts %} | ||
<div class="post-teaser"> | ||
<header> | ||
<h1> | ||
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}"> | ||
{{ post.title }} | ||
</a> | ||
</h1> | ||
<p class="meta"> | ||
{{ post.date | date: "%B %-d, %Y" }} | ||
</p> | ||
</header> | ||
<div class="excerpt"> | ||
{{ post.excerpt }} | ||
<a class="button" href="{{ post.url | prepend: site.baseurl }}"> | ||
{{ site.theme_settings.str_continue_reading }} | ||
</a> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% if paginator.total_pages > 1 %} | ||
<div class="pagination"> | ||
{% if paginator.previous_page %} | ||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" > | ||
<i class="fa fa-chevron-left"></i> | ||
{{ site.theme_settings.str_previous_page }} | ||
</a> | ||
{% endif %} | ||
{% if paginator.next_page %} | ||
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" > | ||
{{ site.theme_settings.str_next_page }} | ||
<i class="fa fa-chevron-right"></i> | ||
</a> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# coding: utf-8 | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "jekyll-theme-type" | ||
spec.version = "1.0" | ||
spec.authors = ["Rohan Chandra"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = %q{A free and open-source Jekyll theme. Great for blogs and easy to customize.} | ||
spec.homepage = "https://github.com/rohanchandra/type-theme" | ||
spec.license = "MIT" | ||
|
||
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|_sass|LICENSE|README)}i) } | ||
|
||
spec.add_runtime_dependency "jekyll", "~> 3.4" | ||
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" | ||
|
||
spec.add_development_dependency "bundler", "~> 1.12" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
end |