Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated front page (hero+1st post), added ads to posts

  • Loading branch information...
commit a7d0b7b1008e80ab0c370013853e19ea07e5174b 1 parent af819d6
@rytis authored
View
2  _config.yml
@@ -10,7 +10,7 @@ pygments: true
# so be sure to set them if your theme uses them.
#
title : SysAdminPy
-tagline: Python powered system administration
+tagline: Professional System Administration with Python
author :
name : Rytis Sileika
email : rytis.sileika@gmail.com
View
12 _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>
+
View
4 _includes/themes/twitter/default.html
@@ -2,7 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8">
+ {% if page.title %}
<title>{{ page.title }}</title>
+ {% else %}
+ <title>{{ site.tagline }} | {{ site.title }}</title>
+ {% endif %}
{% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
<meta name="author" content="{{ site.author.name }}">
View
2  _includes/themes/twitter/page.html
@@ -1,6 +1,8 @@
+{% if page.title %}
<div class="page-header">
<h1>{{ page.title }} <small>{{ page.tagline }}</small></h1>
</div>
+{% endif %}
<div class="row">
<div class="span12">
View
3  _includes/themes/twitter/post.html
@@ -36,5 +36,8 @@
{% include JB/tags_list %}
</ul>
{% endunless %}
+
+ {% include SysAdminPy/adwords_160_600 %}
+
</div>
</div>
View
BIN  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.
View
65 index.md
@@ -1,45 +1,30 @@
---
layout: page
-title: Hello World!
---
{% include JB/setup %}
-Read [Jekyll Quick Start](http://jekyllbootstrap.com/usage/jekyll-quick-start.html)
-
-Complete usage and documentation available at: [Jekyll Bootstrap](http://jekyllbootstrap.com)
-
-## Update Author Attributes
-
-In `_config.yml` remember to specify your own data:
-
- title : My Blog =)
-
- author :
- name : Name Lastname
- email : blah@email.test
- github : username
- twitter : username
-
-The theme should reference these variables whenever needed.
-
-## Sample Posts
-
-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.
-
- $ rm -rf _posts/core-samples
-
-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.
-
-
+<div class="hero-unit">
+ <div class="row">
+ <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>
+ <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>
+ <div class="span2">
+ <p><img src="/assets/images/book-cover.png" width="150"></p>
+ <p><script type="text/javascript" src="http://books.google.com/books/previewlib.js"></script>
+ <script type="text/javascript">
+ GBS_insertPreviewButtonPopup('ISBN:1-4302-2605-6');
+ </script>
+ </p>
+ </div>
+ </div>
+</div>
+
+## Latest blog post
+
+{% assign latest_post = site.posts.first %}
+
+### <a href="{{ BASE_PATH }}{{ latest_post.url }}">{{ latest_post.title }}</a>
+<h6>{{ latest_post.date | date_to_string }}</h6>
+
+{{ latest_post.content }}
Please sign in to comment.
Something went wrong with that request. Please try again.