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
Nikhil Gupta
authored and
Nikhil Gupta
committed
Oct 12, 2014
1 parent
cb36493
commit 77dea21
Showing
19 changed files
with
469 additions
and
3 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,5 @@ | ||
nikhil-theme | ||
============ | ||
this is a simple bootstrap pelican theme based on bootstrap [Narrow jumbotron](http://getbootstrap.com/examples/jumbotron-narrow/) template | ||
|
||
Clean bootstrap based theme for Pelican static site generator | ||
## Screenshot ## | ||
|
||
![screenshot](screenshot.png) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,118 @@ | ||
@import url(http://fonts.googleapis.com/css?family=Libre+Baskerville:400,700,400italic,700italic,300,300italic&subset=latin,latin-ext); | ||
|
||
@media (max-width: 776px) { | ||
.text-right { | ||
text-align: left; | ||
} | ||
} | ||
|
||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
font-family: 'Libre Baskerville', Garamond, serif; | ||
} | ||
|
||
.summary { | ||
display: inline; | ||
} | ||
|
||
/* Custom page footer */ | ||
body { | ||
/* Margin bottom by footer height */ | ||
margin-bottom: 80px; | ||
} | ||
|
||
.footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
height: 60px; | ||
background-color: #f5f5f5; | ||
} | ||
|
||
.footer-text { | ||
margin: 20px 0; | ||
} | ||
|
||
/* Customize container */ | ||
@media (min-width: 768px) { | ||
.container { | ||
max-width: 730px; | ||
} | ||
} | ||
|
||
.entry-content { | ||
padding:15px 0; | ||
line-height:1.8; | ||
} | ||
|
||
.comment { | ||
padding-top:15px; | ||
padding-bottom:15px; | ||
} | ||
|
||
/* code style */ | ||
.hightlight { background-color: #ffffcc } | ||
.c { color: #999988; font-style: italic } /* Comment */ | ||
.err { color: #a61717; background-color: #e3d2d2 } /* Error */ | ||
.k { color: #000000; font-weight: bold } /* Keyword */ | ||
.o { color: #000000; font-weight: bold } /* Operator */ | ||
.cm { color: #999988; font-style: italic } /* Comment.Multiline */ | ||
.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ | ||
.c1 { color: #999988; font-style: italic } /* Comment.Single */ | ||
.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ | ||
.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ | ||
.ge { color: #000000; font-style: italic } /* Generic.Emph */ | ||
.gr { color: #aa0000 } /* Generic.Error */ | ||
.gh { color: #999999 } /* Generic.Heading */ | ||
.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ | ||
.go { color: #888888 } /* Generic.Output */ | ||
.gp { color: #555555 } /* Generic.Prompt */ | ||
.gs { font-weight: bold } /* Generic.Strong */ | ||
.gu { color: #aaaaaa } /* Generic.Subheading */ | ||
.gt { color: #aa0000 } /* Generic.Traceback */ | ||
.kc { color: #000000; font-weight: bold } /* Keyword.Constant */ | ||
.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */ | ||
.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */ | ||
.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */ | ||
.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */ | ||
.kt { color: #445588; font-weight: bold } /* Keyword.Type */ | ||
.m { color: #009999 } /* Literal.Number */ | ||
.s { color: #d01040 } /* Literal.String */ | ||
.na { color: #008080 } /* Name.Attribute */ | ||
.nb { color: #0086B3 } /* Name.Builtin */ | ||
.nc { color: #445588; font-weight: bold } /* Name.Class */ | ||
.no { color: #008080 } /* Name.Constant */ | ||
.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */ | ||
.ni { color: #800080 } /* Name.Entity */ | ||
.ne { color: #990000; font-weight: bold } /* Name.Exception */ | ||
.nf { color: #990000; font-weight: bold } /* Name.Function */ | ||
.nl { color: #990000; font-weight: bold } /* Name.Label */ | ||
.nn { color: #555555 } /* Name.Namespace */ | ||
.nt { color: #000080 } /* Name.Tag */ | ||
.nv { color: #008080 } /* Name.Variable */ | ||
.ow { color: #000000; font-weight: bold } /* Operator.Word */ | ||
.w { color: #bbbbbb } /* Text.Whitespace */ | ||
.mf { color: #009999 } /* Literal.Number.Float */ | ||
.mh { color: #009999 } /* Literal.Number.Hex */ | ||
.mi { color: #009999 } /* Literal.Number.Integer */ | ||
.mo { color: #009999 } /* Literal.Number.Oct */ | ||
.sb { color: #d01040 } /* Literal.String.Backtick */ | ||
.sc { color: #d01040 } /* Literal.String.Char */ | ||
.sd { color: #d01040 } /* Literal.String.Doc */ | ||
.s2 { color: #d01040 } /* Literal.String.Double */ | ||
.se { color: #d01040 } /* Literal.String.Escape */ | ||
.sh { color: #d01040 } /* Literal.String.Heredoc */ | ||
.si { color: #d01040 } /* Literal.String.Interpol */ | ||
.sx { color: #d01040 } /* Literal.String.Other */ | ||
.sr { color: #009926 } /* Literal.String.Regex */ | ||
.s1 { color: #d01040 } /* Literal.String.Single */ | ||
.ss { color: #990073 } /* Literal.String.Symbol */ | ||
.bp { color: #999999 } /* Name.Builtin.Pseudo */ | ||
.vc { color: #008080 } /* Name.Variable.Class */ | ||
.vg { color: #008080 } /* Name.Variable.Global */ | ||
.vi { color: #008080 } /* Name.Variable.Instance */ | ||
.il { color: #009999 } /* Literal.Number.Integer.Long */ |
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,12 @@ | ||
{% if 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', '{{GOOGLE_ANALYTICS}}', 'auto'); | ||
ga('send', 'pageview'); | ||
|
||
</script> | ||
{% endif %} |
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,16 @@ | ||
{% extends "base.html" %} | ||
{% block archclass %} class="active"{%endblock%} | ||
{% block title %}Archives{%endblock%} | ||
{% block content %} | ||
|
||
<dl> | ||
{% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} | ||
<h3><a href="{{SITEURL}}/{{year}}" class="text">Archive for {{ year }}</a></h3> | ||
<ul class="archive-list"> | ||
{% for article in date_year %} | ||
<li><span class="text-muted">{{article.locale_date}} » </span><a href="{{ SITEURL }}/{{ article.url }}">{{article.title}}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} | ||
</dl> | ||
{% endblock %} |
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,33 @@ | ||
{% extends "base.html" %} | ||
{% block title %}{{ article.title }} - {{SITENAME}}{% endblock title %} | ||
{% block content %} | ||
<section id="content" class="article content"> | ||
<header> | ||
<h2 class="entry-title"> | ||
{{ article.title }} | ||
</h2> | ||
{% import 'translations.html' as translations with context %} | ||
{{ translations.translations_for(article) }} | ||
<div class="text-muted">{{ article.locale_date }}</div> | ||
</header> | ||
<!-- .entry-content --> | ||
<div class="entry-content"> | ||
{{ article.content }} | ||
</div> | ||
<!-- /.entry-content --> | ||
<footer class="post-info text-muted"> | ||
<button type="button" class="btn btn-default"> | ||
<a href="{{ SITEURL }}/{{ article.category.url }}"><div class="fa fa-lg fa-folder-open"></div> {{ article.category }}</a> | ||
</button> | ||
{% if article.tags %} | ||
{% for tag in article.tags %} | ||
<button type="button" class="btn btn-default"> | ||
<a href="{{ SITEURL }}/{{ tag.url }}"><div class="fa fa-lg fa-tag"></div> {{ tag }}</a> | ||
</button> | ||
{% endfor %} | ||
{% endif %} | ||
</footer> | ||
<!-- /.post-info --> | ||
{% include 'disqus.html' %} | ||
</section> | ||
{% endblock %} |
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,11 @@ | ||
{% extends "index.html" %} | ||
{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} | ||
{% block navclass %}{%endblock%} | ||
{% block content_title %} | ||
<ol class="breadcrumb"> | ||
<li><a href="{{SITEURL}}"><div class="fa fa-lg fa-home"></div><span class="hidden-xs"> Home</span></a></li> | ||
<li><a href="{{SITEURL}}/authors.html"><div class="fa fa-lg fa-pencil"></div><div class="fa fa-pencil"></div> Authors <span class="badge">{{ authors|count }}</span></a></li> | ||
<li class="active"><div class="fa fa-lg fa-pencil"></div> {{ author }} <span class="badge">{{ articles|count }}</span></li> | ||
</ol> | ||
{% endblock %} | ||
|
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,22 @@ | ||
{% extends "base.html" %} | ||
{% block title %}{{ SITENAME }} - Authors{% endblock %} | ||
{% block archclass %} class="active"{%endblock%} | ||
{% block content %} | ||
<ol class="breadcrumb"> | ||
<li><a href="{{SITEURL}}"><div class="fa fa-lg fa-home"></div><span class="hidden-xs"> Home</span></a></li> | ||
<li class="active"><div class="fa fa-lg fa-pencil"></div><div class="fa fa-pencil"></div> Authors <span class="badge">{{ authors|count }}</span></li> | ||
</ol> | ||
|
||
<ul class="list-inline"> | ||
{%- for author, articles in authors %} | ||
<li> | ||
<button type="button" class="btn btn-default"> | ||
<a href="{{ SITEURL }}/{{ author.url }}"> | ||
<div class="fa fa-lg fa-pencil"></div> {{ author }} <span class="badge">{{ articles|count }}</span> | ||
</a> | ||
</button> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} | ||
|
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,90 @@ | ||
<!DOCTYPE html> | ||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | ||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | ||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | ||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | ||
<head> | ||
{% block head %} | ||
<title>{% block title %}{{ SITENAME }}{% endblock %}</title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" /> | ||
<!--<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" rel="stylesheet" />--> | ||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" /> | ||
<link href="{{ SITEURL }}/theme/style.css" rel="stylesheet" /> | ||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | ||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | ||
<![endif]--> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{% if FEED_ALL_ATOM %} | ||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> | ||
{% endif %} | ||
{% if FEED_ALL_RSS %} | ||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" /> | ||
{% endif %} | ||
{% if FEED_ATOM %} | ||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" /> | ||
{% endif %} | ||
{% if FEED_RSS %} | ||
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> | ||
{% endif %} | ||
{% if CATEGORY_FEED_ATOM and category %} | ||
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" /> | ||
{% endif %} | ||
{% if CATEGORY_FEED_RSS and category %} | ||
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" /> | ||
{% endif %} | ||
{% if TAG_FEED_ATOM and tag %} | ||
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" /> | ||
{% endif %} | ||
{% if TAG_FEED_RSS and tag %} | ||
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" /> | ||
{% endif %} | ||
{% endblock head %} | ||
</head> | ||
<body id="index" class="archive"> | ||
<!--[if lt IE 7]> | ||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> | ||
<![endif]--> | ||
<nav class="navbar navbar-default" role="navigation"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="{{ SITEURL }}">{{ SITENAME }}</a> | ||
</div> | ||
<div class="collapse navbar-collapse navbar-right"> | ||
<ul class="nav navbar-nav"> | ||
{% for p in PAGES %} | ||
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> | ||
{% endfor %} | ||
{% for p in CATEGORIES %} | ||
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> | ||
{% endfor %} | ||
<li{% if author or tag %} class="active"{% endif %}{% block archclass %}{{ ARCHCLASS }}{% endblock archclass %}><a href="{{ SITEURL }}/tags.html">tags</a></li> | ||
</ul> | ||
</div> | ||
<!-- /.navbar-collapse --> | ||
</div> | ||
</nav> | ||
<div class="container"> | ||
{% block content %} | ||
{% endblock %} | ||
</div> | ||
<footer class="footer"> | ||
<div class="container"> | ||
<p class="footer-text">© <a href="{{SITEURL}}">{{SITENAME}}</a> powered by <a href="http://getpelican.com/">pelican</a> and <a href="http://nodotcom.org">nikhil</p> | ||
</div> | ||
</footer> | ||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script> | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | ||
{% include 'analytics.html' %} | ||
</body> | ||
</html> |
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,21 @@ | ||
{% extends "base.html" %} | ||
{% block title %}{{ SITENAME }} - Categories{% endblock %} | ||
{% block archclass %} class="active"{%endblock%} | ||
{% block content %} | ||
<ol class="breadcrumb"> | ||
<li><a href="{{SITEURL}}"><div class="fa fa-lg fa-home"></div><span class="hidden-xs"> Home</span></a></li> | ||
<li class="active"><div class="fa fa-lg fa-folder-open"></div> Categories <span class="badge">{{ categories|count }}</span></li> | ||
</ol> | ||
|
||
<ul class="list-inline"> | ||
{%- for category, articles in categories|sort %} | ||
<li> | ||
<button type="button" class="btn btn-default"> | ||
<a href="{{ SITEURL }}/{{ category.url }}"> | ||
<div class="fa fa-lg fa-folder"></div> {{ category }} <span class="badge">{{ articles|count }}</span> | ||
</a> | ||
</button> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |
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,12 @@ | ||
{% extends "index.html" %} | ||
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} | ||
{% block navclass %}{%endblock%} | ||
{% block archclass %} class="active"{%endblock%} | ||
{% block content_title %} | ||
<ol class="breadcrumb"> | ||
<li><a href="{{SITEURL}}"><div class="fa fa-lg fa-home"></div><span class="hidden-xs"> Home</span></a></li> | ||
<li><a href="{{SITEURL}}/categories.html"><div class="fa fa-lg fa-folder-open"></div> Categories <span class="badge">{{ categories|count }}</span></a></li> | ||
<li class="active"><div class="fa fa-lg fa-folder-open"></div> {{ category }} <span class="badge">{{ articles|count }}</span></li> | ||
</ol> | ||
{% endblock %} | ||
|
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,14 @@ | ||
{% if DISQUS_SITENAME %} | ||
<!-- Comment BEGIN --> | ||
<div id="disqus_thread"></div> | ||
<script type="text/javascript"> | ||
var disqus_shortname = '{{ DISQUS_SITENAME }}'; | ||
(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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
<!-- Comment END --> | ||
{% endif %} |
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,24 @@ | ||
{% extends "base.html" %} | ||
{% block navclass %}active{%endblock%} | ||
{% block content %} | ||
<section id="content" class="content"> | ||
{% block content_title %} | ||
{% endblock %} | ||
{% for article in articles_page.object_list %} | ||
<div class="row"> | ||
<div class="col-sm-3"> | ||
<span class="text-muted">{{article.locale_date}}</span> | ||
</div> | ||
<div class="col-sm-9"> | ||
<p> | ||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title|striptags }}</a> | ||
<br/> | ||
{{ article.summary|striptags }} | ||
</p> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
{% include 'pagination.html' %} | ||
</section> | ||
<!-- content --> | ||
{% endblock content %} |
Oops, something went wrong.