Skip to content

Commit

Permalink
Initial themes-jekyll commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mushishi78 committed Nov 10, 2015
1 parent 024175f commit 350dec3
Show file tree
Hide file tree
Showing 88 changed files with 771 additions and 18,114 deletions.
26 changes: 1 addition & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
# Jekyll and Ruby specific.
.sass-cache
_site/*
_site
Gemfile.lock
Gemfile

# Bundler related.
.bundle
vendor/bundle/

# Other.
*.orig
*.core
*.rej
*~
*.swp
*.log
*.tmp
*.bak
.*\#.*\#$

# OS garbage.
Thumbs.db
.DS_Store

# IntelliJ IDEA
.idea/*
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'jekyll'
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
gem 'github-pages'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Have a theme you want to share?

* Fork the site on GitHub
* Create a new post in the `_posts` directory and fill out the relevant YAML fields
* Make a 250x200 thumbnail and drop it in the thumbnails directory. List its filename in the post's markdown file.
* Make a thumbnail and drop it in the thumbnails directory. List its filename in the post's markdown file.
* Test it out, then push your changes up and open a pull request.


Expand Down
27 changes: 15 additions & 12 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Jekyll Themes
url: http://matt.harzewski.com
description: Insert tagline here

permalink: /themes/:title/

highlighter: pygments
paginate: 20

description: A directory of the best-looking themes for Jekyll blogs
url: 'https://themes-jekyll.github.io/jekyll-themes'
baseurl: ''
github: 'https://github.com/themes-jekyll/themes-jekyll.github.io'
permalink: /:title/
markdown: rdiscount
rdiscount:
extensions: ['smart']

exclude: ['README.md', 'Gemfile.lock', 'Gemfile', 'Rakefile', 'vendor']
gems:
- jekyll-sitemap
- jekyll-feed
sass:
sass_dir: /assets/_sass
style: :compressed
exclude:
- Gemfile
- Gemfile.lock
- README.md
11 changes: 11 additions & 0 deletions _layouts/compress.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
#
# Jekyll layout that compresses HTML
# v1.1.1
# http://jch.penibelst.de/
# © 2015 Anatol Broder
# MIT License
#
---

{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if site.compress_html.comments.size == 2 %}{% assign _comment_befores = _content | split: site.compress_html.comments.first %}{% for _comment_before in _comment_befores %}{% assign _comment_content = _comment_before | split: site.compress_html.comments.last | first %}{% if _comment_content %}{% capture _comment %}{{ site.compress_html.comments.first }}{{ _comment_content }}{{ site.compress_html.comments.last }}{% endcapture %}{% assign _content = _content | remove: _comment %}{% endif %}{% endfor %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% case _pres.size %}{% when 2 %}{% capture _content %}{{ _content }}<pre{{ _pres.first }}</pre>{{ _pres.last | split: " " | join: " " }}{% endcapture %}{% when 1 %}{% capture _content %}{{ _content }}{{ _pres.last | split: " " | join: " " }}{% endcapture %}{% endcase %}{% endfor %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head heading base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{{ _content }}{% endif %}
158 changes: 42 additions & 116 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,119 +1,45 @@
---
layout: compress
---
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://fonts.googleapis.com/css?family=Playball" rel="stylesheet">
<link href="/assets/css/jekyllthemes.css" rel="stylesheet" />
<link href="/assets/css/syntax.css" rel="stylesheet" />
</head>


<body>



<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', 'UA-735643-13', 'jekyllthemes.org');
ga('send', 'pageview');
</script>



<header id="header">
<div class="wrap">

<h1 id="logo"><a href="/">{{ site.name }}</a></h1>

</div>
</header>



<div id="pagecontainer" class="container">



<!--<div class="hero-unit">
<p><strong>Need a design for your <a href="http://jekyllrb.com/">Jekyll</a> blog?</strong> Whether you're looking for a fresh theme to drop in and go, or to use as a starting point for customization, you'll find the best ones available right here.</p>
</div>-->



<div class="widebanner row">
<div class="span12">
<div class="banner72" id="banner72">

<script type="text/javascript"><!--

var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

google_ad_client = "ca-pub-7611360452853908";

if (width > 769) {
google_ad_slot = "6552835850";
google_ad_width = 728;
google_ad_height = 90;
} else {
var el = document.getElementById("banner72");
el.parentNode.removeChild(el);
}

//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

</div>
</div>
</div>



<div id="content">


{{ content }}


</div>


</div>



<footer id="footer">
<div class="container">
<div class="row">

<div class="span5 copyright">
Copyright &copy; {{ site.time | date: '%Y' }} Matt Harzewski. Powered by <a href="http://jekyllrb.com">Jekyll</a>.
<br /><br />
<iframe src="http://ghbtns.com/github-btn.html?user=mattvh&repo=jekyllthemes&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=mattvh&repo=jekyllthemes&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
<br /><br />
</div>

<div class="span7">
<h3>Want to Submit a Theme?</h3>
<ul>
<li>Fork the site on GitHub</li>
<li>Create a new post in the <code>_posts</code> directory and fill out the relevant YAML fields</li>
<li>Make a 250x200 thumbnail and drop it in the <code>thumbnails</code> directory. List its filename in the post's markdown file.</li>
<li>Test it out, then push your changes up and open a pull request.</li>
</ul>
</div>

</div>
</div>
</footer>



</body>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta name='description' content='{{ site.description }}'>

<title>
{{ site.name }}
{% if page.title %}| {{ page.title }}{% endif %}
</title>

<link href='{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'index.html', '' }}' rel='canonical'>
<link href='//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css' rel='stylesheet'>
<link href='//fonts.googleapis.com/css?family=Roboto|Playball' rel='stylesheet'>
<link href='{{ site.baseurl }}/assets/app.css' rel='stylesheet'>

<!--[if lte IE 8]>
<script src='//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js'></script>
<script src='//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js'></script>
<![endif]-->
</head>
<body>
<header>
<a href='{{ site.baseurl }}/'>
<h1 id='logo'>{{ site.name }}</h1>
</a>
<nav role='navigation'>
<ul>
<li><a href='{{ site.baseurl }}/contributing'>Contributing</a></li>
&bull;
<li><a href='{{ site.github }}' target='_blank'>GitHub</a></li>
&bull;
<li><a href='{{ site.baseurl }}/feed.xml'>RSS</a></li>
</ul>
</nav>
</header>
{{ content }}
<script src='{{ site.baseurl }}/assets/app.js'></script>
</body>
</html>
7 changes: 7 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: default
---
<main class='page'>
<h1>{{ page.title }}</h1>
{{ content }}
</main>
75 changes: 40 additions & 35 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,43 @@
---
layout: default
---

<div id="post" class="container">

<div class="postthumb"><img src="/thumbnails/{{ page.thumbnail }}" /></div>

<h1>{{ page.title }}</h1>

<div class="meta clearfix">
<strong>Author:</strong> {{ page.author }}

{% if page.license %}
<br /><strong>License:</strong> {{ page.license }}
{% endif %}

<br /><br />
{% if page.homepage %}
<a class="btn" href="{{ page.homepage }}"><i class="icon-home"></i> Homepage</a>
{% endif %}
{% if page.download %}
<a class="btn" href="{{ page.download }}"><i class="icon-download-alt"></i> Download</a>
{% endif %}
{% if page.demo %}
<a class="btn" href="{{ page.demo }}"><i class="icon-road"></i> Demo</a>
{% endif %}
{% if page.license_link %}
<a class="btn" href="{{ page.license_link }}"><i class="icon-file"></i> License</a>
{% endif %}
</div>


<div class="post-content">
{{ content }}
</div>

</div>
<main class='post'>
<section class='thumbnail-wrapper'>
<img src='{{ site.baseurl }}/thumbnails/{{ page.thumbnail }}' class='thumbnail'>
</section>
<section>
<h1>{{ page.title }}</h1>
<dl>
<dt>Author:</dt>
<dd>{{ page.author }}</dd>
<dt>License:</dt>
<dd>{{ page.license }}</dd>
</dl>
<nav>
{% if page.homepage %}
<a class='btn' href='{{ page.homepage }}'>
<i class='glyphicon glyphicon-home'></i> Homepage
</a>
{% endif %}
{% if page.download %}
<a class='btn' href='{{ page.download }}'>
<i class='glyphicon glyphicon-download-alt'></i> Download
</a>
{% endif %}
{% if page.demo %}
<a class='btn' href='{{ page.demo }}'>
<i class='glyphicon glyphicon-road'></i> Demo
</a>
{% endif %}
{% if page.license_link %}
<a class='btn' href='{{ page.license_link }}'>
<i class='glyphicon glyphicon-file'></i> License
</a>
{% endif %}
</nav>
</section>
<hr />
<article>
{{ content }}
</article>
</main>
Empty file added assets/_js/index.js
Empty file.
12 changes: 12 additions & 0 deletions assets/_sass/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
a, a:hover, a:focus { text-decoration: none; }
button, textarea, a:focus { outline: none; }
li { padding: 5px 0; }
main { margin: 25px 0; }
hr { border-top-color: #ccc; }

body {
background: #eee;
font-family: 'Roboto', sans-serif;
}

.page { padding: 25px 15% }
31 changes: 31 additions & 0 deletions assets/_sass/_btn.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.btn {
display: inline-block;
padding: 4px 12px;
margin-bottom: 5px;
font-size: 14px;
line-height: 20px;
text-align: center;
vertical-align: middle;
cursor: pointer;
color: #333333;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
background-color: #f5f5f5;
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
border: 1px solid #cccccc;
border-bottom-color: #b3b3b3;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
}
Loading

0 comments on commit 350dec3

Please sign in to comment.