Skip to content

Commit

Permalink
Using the type theme from https://github.com/rohanchandra/type-theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbordet committed Feb 2, 2015
1 parent 98325f8 commit 761c85e
Show file tree
Hide file tree
Showing 32 changed files with 1,385 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: page
title: "Page not found"
permalink: /404.html
hide: true
---
Sorry, the requested page wasn't found on the server.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Rohan Chandra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Type Theme

![Default Type Theme blog](https://cloud.githubusercontent.com/assets/816965/5142407/19742e48-71d6-11e4-8d9d-fdfe010784f0.png)

A free and open-source [Jekyll](http://jekyllrb.com) theme. Great for blogs and easy to customize.

## Get Started

[Demo](https://rohanchandra.github.io/type-theme/)

[Using Type](https://rohanchandra.github.io/project/type/)

## License
The MIT License (MIT)
67 changes: 67 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# SITE CONFIGURATION
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://example.com" # the base hostname & protocol for your site

# THEME-SPECIFIC CONFIGURATION
theme:
# Meta
title: Type Theme
avatar: avatar.png
gravatar: # email md5 hash
description: "A website with blog posts and pages" # used by search engines

# Header and footer text
header_text: >
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p>Remove all header text in <code>_config.yml</code> to disable this feature.</p>
footer_text: >
Powered by <a href="http://jekyllrb.com">Jekyll</a> with <a href="https://rohanchandra.github.io/project/type/">Type Theme</a>
# Icons
rss: false
email_address: # full email address, e.g. "[email protected]"
behance:
bitbucket:
dribbble:
facebook:
flickr:
github: "rohanchandra/type-theme"
google_plus:
instagram:
linkedin: # full URL
pinterest:
reddit:
soundcloud:
stack_exchange: # full URL
steam:
tumblr:
twitter: "twitter"
wordpress:
youtube:

# Scripts
google_analytics: # tracking id, e.g. "UA-000000-01"
disqus_shortname:

# Localization strings
str_follow_on: "Follow on"
str_rss_follow: "Follow RSS feed"
str_email: "Email"
str_next: "Next"
str_prev: "Prev"
str_continue_reading: "Continue reading"

# Colors, typography and padding
# Open the "_sass > base" folder, and open "_variables.scss"

# PAGINATION
paginate: 5
paginate_path: "blog/page:num"

# BUILD SETTINGS
markdown: kramdown
highlighter: pygments
sass:
sass_dir: _sass
style: :compressed
10 changes: 10 additions & 0 deletions _includes/disqus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ site.theme.disqus_shortname }}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if site.theme.footer_text %}
<footer class="site-footer">
<p class="text">{{ site.theme.footer_text }}</p>
</footer>
{% endif %}
37 changes: 37 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme.title }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme.description }}{% endif %}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- CSS -->
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">

<!--Favicon-->
<link rel="shortcut icon" href="{{ "/favicon.ico" | prepend: site.baseurl }}" type="image/x-icon">

<!-- Canonical -->
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

<!-- RSS -->
<link rel="alternate" type="application/atom+xml" title="{{ site.theme.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />

<!-- Font Awesome -->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

<!-- Google Fonts -->
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,700italic,400italic" rel="stylesheet" type="text/css">

<!-- Google Analytics -->
{% if site.theme.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.theme.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</head>
34 changes: 34 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<header class="site-header">

<div class="branding">
{% if site.theme.gravatar %}
<a href="{{ site.baseurl }}/">
<img class="avatar" src="https://secure.gravatar.com/avatar/{{ site.theme.gravatar }}?s=100" alt=""/>
</a>
{% else if site.theme.avatar %}
<a href="{{ site.baseurl }}/">
<img class="avatar" src="/img/{{ site.theme.avatar }}" alt=""/>
</a>
{% endif %}

<h1 class="site-title">
<a href="{{ site.baseurl }}/">{{ site.theme.title }}</a>
</h1>
</div>

<nav class="site-nav">
<ul>
{% for page in site.pages %}
{% if page.title and page.hide != true %}
<li>
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
</li>
{% endif %}
{% endfor %}

<!-- Social icons from Font Awesome, if enabled -->
{% include icons.html %}
</ul>
</nav>

</header>
159 changes: 159 additions & 0 deletions _includes/icons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{% if site.theme.rss %}
<li>
<a href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" title="{{ site.theme.str_rss_follow }}">
<i class="fa fa-fw fa-rss"></i>
</a>
</li>
{% endif %}

{% if site.theme.email_address %}
<li>
<a href="mailto:{{ site.theme.email_address }}" title="{{ site.theme.str_email }}">
<i class="fa fa-fw fa-envelope"></i>
</a>
</li>
{% endif %}

{% if site.theme.behance %}
<li>
<a href="https://www.behance.net/{{ site.theme.behance }}" title="{{ site.theme.str_follow_on }} Behance">
<i class="fa fa-fw fa-behance"></i>
</a>
</li>
{% endif %}

{% if site.theme.bitbucket %}
<li>
<a href="https://bitbucket.org/{{ site.theme.bitbucket }}" title="{{ site.theme.str_follow_on }} Bitbucket">
<i class="fa fa-fw fa-bitbucket"></i>
</a>
</li>
{% endif %}

{% if site.theme.dribbble %}
<li>
<a href="https://dribbble.com/{{ site.theme.dribbble }}" title="{{ site.theme.str_follow_on }} Dribbble">
<i class="fa fa-fw fa-dribbble"></i>
</a>
</li>
{% endif %}

{% if site.theme.facebook %}
<li>
<a href="https://www.facebook.com/{{ site.theme.facebook }}" title="{{ site.theme.str_follow_on }} Facebook">
<i class="fa fa-fw fa-facebook"></i>
</a>
</li>
{% endif %}

{% if site.theme.flickr %}
<li>
<a href="https://www.flickr.com/photos/{{ site.theme.flickr }}" title="{{ site.theme.str_follow_on }} Flickr">
<i class="fa fa-fw fa-flickr"></i>
</a>
</li>
{% endif %}

{% if site.theme.github %}
<li>
<a href="https://github.com/{{ site.theme.github }}" title="{{ site.theme.str_follow_on }} GitHub">
<i class="fa fa-fw fa-github"></i>
</a>
</li>
{% endif %}

{% if site.theme.google_plus %}
<li>
<a href="https://plus.google.com/{{ site.theme.google_plus }}" title="{{ site.theme.str_follow_on }} Google+">
<i class="fa fa-fw fa-google-plus"></i>
</a>
</li>
{% endif %}

{% if site.theme.instagram %}
<li>
<a href="http://instagram.com/{{ site.theme.instagram }}" title="{{ site.theme.str_follow_on }} Instagram">
<i class="fa fa-fw fa-instagram"></i>
</a>
</li>
{% endif %}

{% if site.theme.linkedin %}
<li>
<a href="{{ site.theme.linkedin }}" title="{{ site.theme.str_follow_on }} LinkedIn">
<i class="fa fa-fw fa-linkedin"></i>
</a>
</li>
{% endif %}

{% if site.theme.pinterest %}
<li>
<a href="http://www.pinterest.com/{{ site.theme.pinterest }}" title="{{ site.theme.str_follow_on }} Pinterest">
<i class="fa fa-fw fa-pinterest"></i>
</a>
</li>
{% endif %}

{% if site.theme.reddit %}
<li>
<a href="https://www.reddit.com/user/{{ site.theme.reddit }}" title="{{ site.theme.str_follow_on }} Reddit">
<i class="fa fa-fw fa-reddit"></i>
</a>
</li>
{% endif %}

{% if site.theme.soundcloud %}
<li>
<a href="https://soundcloud.com/{{ site.theme.soundcloud }}" title="{{ site.theme.str_follow_on }} SoundCloud">
<i class="fa fa-fw fa-soundcloud"></i>
</a>
</li>
{% endif %}

{% if site.theme.stack_exchange %}
<li>
<a href="{{ site.theme.stack_exchange }}" title="{{ site.theme.str_follow_on }} Stack Exchange">
<i class="fa fa-fw fa-stack-exchange"></i>
</a>
</li>
{% endif %}

{% if site.theme.steam %}
<li>
<a href="http://steamcommunity.com/id/{{ site.theme.steam }}" title="{{ site.theme.str_follow_on }} Steam">
<i class="fa fa-fw fa-steam"></i>
</a>
</li>
{% endif %}

{% if site.theme.tumblr %}
<li>
<a href="https://{{ site.theme.tumblr }}.tumblr.com/" title="{{ site.theme.str_follow_on }} Tumblr">
<i class="fa fa-fw fa-tumblr"></i>
</a>
</li>
{% endif %}

{% if site.theme.twitter %}
<li>
<a href="https://twitter.com/{{ site.theme.twitter }}" title="{{ site.theme.str_follow_on }} Twitter">
<i class="fa fa-fw fa-twitter"></i>
</a>
</li>
{% endif %}

{% if site.theme.wordpress %}
<li>
<a href="https://{{ site.theme.wordpress }}.wordpress.com/" title="{{ site.theme.str_follow_on }} WordPress">
<i class="fa fa-fw fa-wordpress"></i>
</a>
</li>
{% endif %}

{% if site.theme.youtube %}
<li>
<a href="https://www.youtube.com/user/{{ site.theme.youtube }}" title="{{ site.theme.str_follow_on }} YouTube">
<i class="fa fa-fw fa-youtube"></i>
</a>
</li>
{% endif %}
16 changes: 16 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html class="no-js">

{% include head.html %}

<body>
{% include header.html %}

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

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

</html>
Loading

0 comments on commit 761c85e

Please sign in to comment.