Skip to content

Commit

Permalink
Updated front page (hero+1st post), added ads to posts
Browse files Browse the repository at this point in the history
  • Loading branch information
rytis committed Mar 30, 2012
1 parent af819d6 commit a7d0b7b
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 41 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Expand Up @@ -10,7 +10,7 @@ pygments: true
# so be sure to set them if your theme uses them. # so be sure to set them if your theme uses them.
# #
title : SysAdminPy title : SysAdminPy
tagline: Python powered system administration tagline: Professional System Administration with Python
author : author :
name : Rytis Sileika name : Rytis Sileika
email : rytis.sileika@gmail.com email : rytis.sileika@gmail.com
Expand Down
12 changes: 12 additions & 0 deletions _includes/SysAdminPy/adwords_160_600
@@ -0,0 +1,12 @@
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6853046748807872";
/* 160x600 */
google_ad_slot = "7763453227";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

4 changes: 4 additions & 0 deletions _includes/themes/twitter/default.html
Expand Up @@ -2,7 +2,11 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
{% if page.title %}
<title>{{ page.title }}</title> <title>{{ page.title }}</title>
{% else %}
<title>{{ site.tagline }} | {{ site.title }}</title>
{% endif %}
{% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %} {% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
<meta name="author" content="{{ site.author.name }}"> <meta name="author" content="{{ site.author.name }}">


Expand Down
2 changes: 2 additions & 0 deletions _includes/themes/twitter/page.html
@@ -1,6 +1,8 @@
{% if page.title %}
<div class="page-header"> <div class="page-header">
<h1>{{ page.title }} <small>{{ page.tagline }}</small></h1> <h1>{{ page.title }} <small>{{ page.tagline }}</small></h1>
</div> </div>
{% endif %}


<div class="row"> <div class="row">
<div class="span12"> <div class="span12">
Expand Down
3 changes: 3 additions & 0 deletions _includes/themes/twitter/post.html
Expand Up @@ -36,5 +36,8 @@ <h4>Tags</h4>
{% include JB/tags_list %} {% include JB/tags_list %}
</ul> </ul>
{% endunless %} {% endunless %}

{% include SysAdminPy/adwords_160_600 %}

</div> </div>
</div> </div>
Binary file added assets/images/book-cover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 25 additions & 40 deletions index.md
@@ -1,45 +1,30 @@
--- ---
layout: page layout: page
title: Hello World!
--- ---
{% include JB/setup %} {% include JB/setup %}


Read [Jekyll Quick Start](http://jekyllbootstrap.com/usage/jekyll-quick-start.html) <div class="hero-unit">

<div class="row">
Complete usage and documentation available at: [Jekyll Bootstrap](http://jekyllbootstrap.com) <div class="span8">

<p>This is a website for the Pro Python System Administration book, written by Rytis Sileika and published by <a href="http://www.apress.com/">Apress</a>. Some of the projects described in the book are avialable on <a href="https://www.github.com/rytis/">GitHub</a>.</p>
## Update Author Attributes <p><a href="http://www.amazon.com/gp/product/1430226056?ie=UTF8&tag=sysadminpy-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1430226056" class="btn btn-primary btn-large">Buy from Amazon (US) &raquo;</a>&nbsp;<a href="http://www.amazon.co.uk/gp/product/1430226056?ie=UTF8&tag=sysadminpy-21&linkCode=as2&camp=1634&creative=19450&creativeASIN=1430226056" class="btn btn-primary btn-large">Buy from Amazon (UK) &raquo;</a></p>

</div>
In `_config.yml` remember to specify your own data: <div class="span2">

<p><img src="/assets/images/book-cover.png" width="150"></p>
title : My Blog =) <p><script type="text/javascript" src="http://books.google.com/books/previewlib.js"></script>

<script type="text/javascript">
author : GBS_insertPreviewButtonPopup('ISBN:1-4302-2605-6');
name : Name Lastname </script>
email : blah@email.test </p>
github : username </div>
twitter : username </div>

</div>
The theme should reference these variables whenever needed.

## Latest blog post
## Sample Posts

{% assign latest_post = site.posts.first %}
This blog contains sample posts which help stage pages and blog data.
When you don't need the samples anymore just delete the `_posts/core-samples` folder. ### <a href="{{ BASE_PATH }}{{ latest_post.url }}">{{ latest_post.title }}</a>

<h6>{{ latest_post.date | date_to_string }}</h6>
$ rm -rf _posts/core-samples

{{ latest_post.content }}
Here's a sample "posts list".

<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>

## To-Do

This theme is still unfinished. If you'd like to be added as a contributor, [please fork](http://github.com/plusjade/jekyll-bootstrap)!
We need to clean up the themes, make theme usage guides with theme-specific markup examples.


0 comments on commit a7d0b7b

Please sign in to comment.