Skip to content

Commit

Permalink
Import Swift theme for Jekyll
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Sep 1, 2015
1 parent 3f84302 commit 569373a
Show file tree
Hide file tree
Showing 28 changed files with 10,059 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_site
.sass-cache
23 changes: 23 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
The MIT License (MIT)

Copyright for Swift theme for Jekyll (c) 2014 Pranav Raj S
Copyright for other parts of the website (c) 2015 "Destructive Voice" team members

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.

44 changes: 44 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Site settings
title: Swift
description: A clean minimal Theme for Jekyll
email: pranav@maangalabs.com
baseurl: /dvteam.org
#url: "http://localhost:4000" # the base hostname & protocol for your site
#favicon
favicon: /favicon.png

#feed
feedburner_username: maangalabs
#twitter
twitter_username: pranavrajs
github_username: pranavrajs

#linkedin
linkedin_username: pranavrajs

#google analytics
google_analytics_id : UA-53386152-2
#gplus
gplus_username: 101893920934936418705

#fb_username
fb_username: pranav.tayberrycreative

#permalink /blog/2014/11/11/this-is-a-sample-post
permalink: /blog/:year/:month/:day/:title
# Build settings
markdown: kramdown

#Disqus configuration
disqus_short_name: maangalabscom
disqus_show_comment_count: true

#Can be used for multiple author blogs ! Add name to post For more visit the sample
authors:
pranavrajs:
display_name: Pranav Raj S
email: pranavrajs@gmail.com
fb: pranav.tayberrycreative
linkedin: pranavrajs
twitter: pranavrajs
github: pranavrajs
57 changes: 57 additions & 0 deletions _includes/author_block.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{% assign author = site.authors[page.author] %}
<!-- Output author details if some exist. -->
{% if author %}
<div class="author_block col-md-12">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-2">
<p>Written by <strong>{{ author.display_name }}</strong></p>
</div>
<div class="col-md-3">
<ul>
<li><a href="http://github.com/{{ author.github }}" target="_blank"><i class="fa fa-github"></i></a></li>
<li><a href="http://facebook.com/{{ author.facebook }}" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a href="http://twitter.com/{{ author.twitter }}" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="http://in.linkedin.com/in/{{ author.linkedin }}" target="_blank"><i class="fa fa-linkedin"></i></a></li>
<li><a href="mailto:{{author.email}}" target="_blank"><i class="fa fa-send-o"></i></a></li>
</ul>
</div>
<div class="col-md-4">

{% if page.github_repo_username %}
<div class="col-md-12">
<a class= "btn-primary btn-large" style="padding:10px; line-height: 44px; margin-left:-24px; text-decoration:none;" href = "//github.com/{{ page.github_repo_username }}/{{page.github_repo}}" target="_blank">Download Source</a>
<iframe style = "line-height:44px"src="http://ghbtns.com/github-btn.html?user={{ page.github_repo_username }}&repo={{page.github_repo}}&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
</div>
{% endif %}

</div>
<div class="col-md-2"></div>
</div>
</div>
{% endif %}
{% if page.comments %}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ site.disqus_short_name }}'; // required: replace example with your forum shortname
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + 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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{% endif %}
<ul class="pager">
{% if page.previous.url %}
<li class="previous"><a class="basic-alignment left"
href="{{page.previous.url}}" title="Previous Post:
{{page.previous.title}}">&laquo; {{page.previous.title}}</a></li>
{% endif %}
<li><a href="/blog/archives">Blog Archives</a></li>
{% if page.next.url %}
<li class="next"><a class="basic-alignment right" href="{{page.next.url}}"
title="Next Post: {{page.next.title}}">{{page.next.title}}
&raquo;</a></li>
{% endif %}
</ul>
8 changes: 8 additions & 0 deletions _includes/endfooter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="row end_footer">
<div class="col-md-1"></div>
<div class="col-md-6">
<p>Copyright &copy; {{ site.title }} 2014</p>
</div>
<div class="col-md-4"></div>
<div class="col-md-1"></div>
</div>
50 changes: 50 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!-- Footer -->
<div class="row footer">
<div class="col-md-1"></div>
<div class="col-md-10">
<div class="row">
<div class="col-md-3">
<h4>Recent Posts</h4>
<ul>
{% for post in site.posts limit:4 %}
<li><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
<div class="col-md-3 col-md-offset-1">
<h4>Github Repositories</h4>
<ul>
{% if site.github_username %}
<li>
<a href="https://github.com/{{ site.github_username }}">
<span class="username">{{ site.github_username }}</span>
</a>
</li>
{% endif %}
</ul>
</div>
<div class="col-md-3 col-md-offset-1">

<h4>Follow Us Here</h4>
{% if site.gplus_username %}

<!-- Place this tag where you want the widget to render. -->
<div class="g-page" data-width="273" data-href="//plus.google.com/u/0/{{ site.gplus_username }}" data-theme="dark" data-layout="landscape" style="border:0px;" data-rel="publisher"></div>

<!-- Place this tag after the last widget tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
{% endif %}
<!-- <img class="footer-logo" src="img/maanga-logo.png"/> -->

</div>
</div>
</div>
<div class="col-md-1"></div>
</div>
<!-- End Footer -->
14 changes: 14 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width initial-scale=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 %}">
<meta name="google-translate-customization" content="b9870a0c7376df54-aa35852016e6a5cc-ga0a0d80f6c171f17-e"></meta>
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link href="{{site.baseurl}}{{ site.favicon}}" rel="icon">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/atom.xml" | prepend: site.baseurl | prepend: site.url }}" />
</head>
37 changes: 37 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<div class="col-md-12 navbar navbar-inverse navbar-fixed-top">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ site.baseurl }}/">{{ site.title }}</a>
</div>
<div class="navbar-collapse collapse navbar-inverse-collapse">
<ul class="nav navbar-nav">
{% for page in site.pages %}
{% if page.title %}
<li><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}

<!-- <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Pages<b class="caret"></b></a>
<ul class="dropdown-menu">
{% for page in site.pages %}
{% if page.title %}
<li><a href="{{ page.url | prepend: site.baseurl }}" style="text-transform : uppercase;">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
--> </ul>

<ul class="nav navbar-nav navbar-right left-syms">
<li><a href="https://facebook.com/{{site.fb_username}}" target="_blank"><i class="fa fa-facebook-square"></i> <span>Facebook</span></a></li>
<li><a href="http://github.com/{{ site.github_username}}" target="_blank"><i class="fa fa-github"></i> <span>Github</span></a></li>
<li><a href="//twitter.com/{{site.twitter_username}}" target="_blank"><i class="fa fa-twitter"></i> <span>Twitter</span></a></li>
<li><a href="{{ "/atom.xml" | prepend: site.baseurl | prepend: site.url }}" target="_blank"><i class="fa fa-rss"></i> <span>RSS Feed</span></a></li>
</ul>
</div>
</div>
32 changes: 32 additions & 0 deletions _includes/include_js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/prettify.js"></script>
<script>
[].forEach.call(document.getElementsByTagName("pre"), function(el) {
el.classList.add("prettyprint");
});

prettyPrint();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{site.google_analytics_id}}']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

<style>
pre.prettyprint {

font-size: 13px;
font-family: "Open Sans";
padding: 8px 12px;
border: 1px solid #bbb;
border-radius: 4px;
}
</style>
36 changes: 36 additions & 0 deletions _includes/sharer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{% if site.fb_username %}
<div class="fb_share">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=354997024639145&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-share-button" data-layout="button_count"></div>
</div>
{% endif %}

{% if site.twitter_username %}
<div class="twitter_share">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="{{ site.twitter_username }}" data-hashtags="sailsjs">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
{% endif %}

{% if site.linkedin_username %}
<div class="linkedin_share">
<script src="//platform.linkedin.com/in.js" type="text/javascript">
lang: en_US
</script>
<script type="IN/Share" data-counter="right"></script>
</div>
{% endif %}

{% if site.gplus_username %}
<div class="g_share">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-plus" data-action="share" data-annotation="bubble"></div>
</div>
{% endif %}
15 changes: 15 additions & 0 deletions _layouts/category_archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: default
---
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">


<h1>Category archive for {{ page.category }}</h1>
<article class="blog-post-small blog-post-content">
{{ content }}
</article>
</div>
<div class="col-md-1"></div>
</div>
41 changes: 41 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>

{% include head.html %}

<body>
{% include header.html %}

<div class="col-md-12 blog-theme-class">
<!-- Top Blog Header -->
<div class="row jumb-bot">
<div class="col-md-1"></div>
<div class="jumbotron jumb-bot-jumbu col-md-10">

<h1>{{site.title}}</h1>
<p>{{site.description}}</p>
</div>
<div class="col-md-1"></div>
</div>
</div>
<div class="col-md-12">
{{ content }}
</div>
<div class="col-md-12 share-div">
<div class="col-md-1"></div>
<div class="col-md-10">
{% include sharer.html %}
</div>
<div class="col-md-1"></div>
</div>
<div class="col-md-12">
{% include footer.html %}
</div>
<div class="col-md-12">
{% include endfooter.html %}
</div>
{% include include_js.html %}

</body>

</html>
17 changes: 17 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: default
---
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">


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


<article class="blog-post-small blog-post-content">
{{ content }}
</article>
</div>
<div class="col-md-1"></div>
</div>
Loading

0 comments on commit 569373a

Please sign in to comment.