Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
This is blog theme compatible with Jekyll-Bootstrap

<http://jekyllbootstrap.com> for usage.
<http://jekyllbootstrap.com> for usage.

website : <http://lincolnge.github.io>

### Install Themes

$ rake theme:install git="[email protected]:lincolnge/theme-twitter-lin.git"


The installer uses git to download the Theme Package and then installs it. If you have obtained a Theme Package in another way, such as zip download, you can manually place it into your ./_theme_packages folder and then run the installer with the name of the theme.

$ rake theme:install name="twitter-lin"


### Switch Themes

$ rake theme:switch name="twitter-lin"
128 changes: 128 additions & 0 deletions _includes/themes/twitter-lin/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
{% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
<meta name="author" content="{{ site.author.name }}">

<!-- Enable responsive viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{ ASSET_PATH }}/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" type="text/css" href="{{ ASSET_PATH }}/css-social-buttons/css/zocial.stripped.css">


<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!-- Le styles -->
<link href="{{ ASSET_PATH }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">

<!-- Le fav and touch icons -->
<!-- Update these with your own images
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
-->

<!-- atom & rss feed -->
<link href="{{ BASE_PATH }}{{ site.JB.atom_path }}" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed">
<link href="{{ BASE_PATH }}{{ site.JB.rss_path }}" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed">

</head>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="{{ ASSET_PATH }}/bootstrap/js/bootstrap.min.js"></script>

<body>
<nav class="navbar navbar-fixed-top navbar-default" role="navigation">
<div class="container-narrow navbar-inner">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ HOME_PATH }}">{{ site.title }}</a>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-left">
{% assign pages_list = site.pages %}
{% assign group = 'navigation' %}
{% include JB/pages_list %}
</ul>

<ul class="nav navbar-nav navbar-right">
<li class="divider-vertical"></li>
{% if site.author.github %}
<li>
<a href="https://github.com/{{ site.author.github }}" class="zocial github icon" target="_blank">
<span class="hidden-desktop">Github</span>
</a>
</li>
{% endif %}
{% if site.author.googleplus %}
<li>
<a href="https://plus.google.com/{{ site.author.googleplus }}" class="zocial googleplus icon" target="_blank">
<span class="hidden-desktop">Google+</span>
</a>
</li>
{% endif %}
{% if site.author.twitter %}
<li>
<a href="https://twitter.com/{{ site.author.twitter }}" class="zocial twitter icon" target="_blank">
<span class="hidden-desktop">Twitter</span>
</a>
</li>
{% endif %}
{% if site.author.facebook %}
<li>
<a href="http://www.facebook.com/{{ site.author.facebook }}" class="zocial facebook icon" target="_blank">
<span class="hidden-desktop">Facebook</span>
</a>
</li>
{% endif %}
{% if site.author.linkedin %}
<li>
<a href="http://www.linkedin.com/in/{{ site.author.linkedin }}" class="zocial linkedin icon" target="_blank">
<span class="hidden-desktop">LinkedIn</span>
</a>
</li>
{% endif %}
{% if site.author.feedburner %}
<li>
<a href="http://feeds.feedburner.com/{{ site.author.feedburner }}" class="zocial rss icon" target="_blank">
<span class="hidden-desktop">FeedBurner</span>
</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>
<nav class="navbar" role="navigation"></nav>
<div class="container-narrow">

<div class="content">
{{ content }}
</div>
<hr>
<footer>
<p>&copy; {{ site.time | date: '%Y' }} {{ site.author.name }}
with help from <a href="http://jekyllbootstrap.com" target="_blank" title="The Definitive Jekyll Blogging Framework">Jekyll Bootstrap</a>
and <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter-lin Bootstrap</a>
</p>
</footer>

</div>

{% include JB/analytics %}
</body>
</html>
9 changes: 9 additions & 0 deletions _includes/themes/twitter-lin/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="page-header">
<h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% endif %}</h1>
</div>

<div class="row-fluid">
<div class="span12">
{{ content }}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
<div class="page-header">
<h1>{{ page.title }} <small>Supporting tagline</small></h1>
<h1>{{ page.title }} {% if page.tagline %}<small>{{page.tagline}}</small>{% endif %}</h1>
</div>

<div class="row">
<div class="span10">
{{ content }}
<div class="row-fluid post-full">
<div class="span12">
<div class="date">
<span>{{ page.date | date_to_long_string }}</span>
</div>
<div class="content">
{{ content }}
</div>

{% unless page.categories == empty %}
<ul class="tag_box inline">
<li><i class="icon-folder-open"></i></li>
{% assign categories_list = page.categories %}
{% include JB/categories_list %}
</ul>
{% endunless %}

{% unless page.tags == empty %}
<ul class="tag_box inline">
<li><i class="icon-tags"></i></li>
{% assign tags_list = page.tags %}
{% include JB/tags_list %}
</ul>
{% endunless %}

<hr>
<div class="pagination">
<div class="pager">
<ul>
{% if page.previous %}
<li class="prev"><a href="{{ BASE_PATH }}{{ page.previous.url }}" title="{{ page.previous.title }}">&larr; Previous</a></li>
Expand All @@ -24,17 +46,4 @@ <h1>{{ page.title }} <small>Supporting tagline</small></h1>
<hr>
{% include JB/comments %}
</div>

<div class="span4">
<h4>Published</h4>
<div class="date"><span>{{ page.date | date_to_long_string }}</span></div>

{% unless page.tags == empty %}
<h4>Tags</h4>
<ul class="tag_box">
{% assign tags_list = page.tags %}
{% include JB/tags_list %}
</ul>
{% endunless %}
</div>
</div>
2 changes: 2 additions & 0 deletions _includes/themes/twitter-lin/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
theme :
name : twitter-lin
59 changes: 0 additions & 59 deletions _includes/themes/twitter/default.html

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/themes/twitter/page.html

This file was deleted.

2 changes: 0 additions & 2 deletions _includes/themes/twitter/settings.yml

This file was deleted.

Loading