Permalink
Browse files

chisel now a single repo., uncoupled from static site, thereby removi…

…ng duplication.
  • Loading branch information...
1 parent ae02ad1 commit b6c442a02b94a8dfc8417d733228e9b4e1094501 @ckunte committed Jun 7, 2012
View
0 .gitignore 100755 → 100644
No changes.
View
1 README.markdown 100755 → 100644
@@ -19,7 +19,6 @@ This fork includes the following over David's original script:
Chisel keeps it simple and stupid. And so, there is
- No taxonomy support, i.e., no categories, and no tags.
-- No plugin support.
- No built-in search. (When you carry an entire copy of your site on your hard drive, I think you don't need one; use grep, Spotlight or find instead. If you are inclined to create a search, go ahead and do it. It isn't too complicated. Just like populating the RSS feed file or the Archive file, it is possible to update an index for new posts in a JSON enclosure, and query it.)
### What it does best
View
23 chisel.py 100755 → 100644
@@ -19,10 +19,21 @@
import datetime
#Settings
-BASEURL = "http://ckunte.github.com/" #end with slash
-SOURCE = "../posts/" #end with slash
-DESTINATION = "../www/" #end with slash
-HOME_SHOW = 15 #numer of entries to show on homepage
+# For folders that look like the following (this is primarily
+# done to keep native post files and the generated html files
+# separate; don't have to be -- just my personal preference):
+# Sites
+# /chisel (the generator)
+# /posts (markdown post files)
+# /ckunte.github.com (the generated html site from post files)
+# the locations are used thus:
+#
+BASEURL = "http://log.ckunte.net/" #end with slash
+# The following tells chisel where to look for native posts:
+SOURCE = "../ckunte.github.com/_posts/" #end with slash
+# The following tells chisel where to generate site:
+DESTINATION = "../ckunte.github.com/" #end with slash
+HOME_SHOW = 3 #numer of entries to show on homepage
TEMPLATE_PATH = "./templates/"
TEMPLATE_OPTIONS = {}
TEMPLATES = {
@@ -38,7 +49,7 @@
FORMAT = lambda text: markdown.markdown(text, ['footnotes','smartypants',])
RSS = PyRSS2Gen.RSS2(
title = "Logbook",
- link = BASEURL + "feed.xml",
+ link = BASEURL + "rss.xml",
description = "Offshore structures engineer",
lastBuildDate = datetime.datetime.now(),
items = [])
@@ -106,7 +117,7 @@ def generate_rss(f, e):
"""Generate rss"""
for file in f[:10]:
RSS.items.append(PyRSS2Gen.RSSItem(title=file['title'], link=BASEURL + file['url'], description=file['content'], author="ckunte", guid = PyRSS2Gen.Guid(BASEURL + file['url']), pubDate=datetime.datetime(file['year'], file['month'], file['day'])))
- RSS.write_xml(open(DESTINATION + "feed.xml", "w"))
+ RSS.write_xml(open(DESTINATION + "rss.xml", "w"))
@step
def master_archive(f, e):
View
21 templates/archive.html 100755 → 100644
@@ -4,15 +4,14 @@
{% endblock %}
{% block post %}
-
- <h2>Archive</h2>
- {% for year, year_list in entries|groupby('year')|reverse %}
- {% for month, month_list in year_list|groupby('month')|reverse %}
- {% for day, day_list in month_list|groupby('day')|reverse %}
- {% for entry in day_list %}
- <p><small>{{ entry.pretty_date }}</small> &ndash; <a href="/{{ entry.url }}">{{ entry.title }}</a></p>
- {% endfor %}
- {% endfor %}
- {% endfor %}
- {% endfor %}
+ <h2>Archive</h2>
+ {% for year, year_list in entries|groupby('year')|reverse %}
+ {% for month, month_list in year_list|groupby('month')|reverse %}
+ {% for day, day_list in month_list|groupby('day')|reverse %}
+ {% for entry in day_list %}
+ <p><small>{{ entry.pretty_date }}</small>&nbsp;&ndash;&nbsp;<a href="/{{ entry.url }}">{{ entry.title }}</a></p>
+ {% endfor %}
+ {% endfor %}
+ {% endfor %}
+ {% endfor %}
{% endblock %}
View
36 templates/base.html 100755 → 100644
@@ -1,30 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- <meta http-equiv="Content-Language" content="en-us">
+ <meta charset="utf-8">
<title>Logbook{%block title %}{% endblock %}</title>
- <meta http-equiv="imagetoolbar" content="false">
- <meta name="description" content="The personal site by ckunte.">
- <meta name="viewport" content="width=800">
- <meta name="DC.title" content="Logbook">
- <meta name="DC.subject" content="personal, family, kids, holidays, musings">
- <meta name="DC.creator" content="ckunte">
- <link rel="stylesheet" type="text/css" href="/css/style.css">
- <link rel="alternate" type="application/rss+xml" title="Logbook RSS" href="/feed.xml">
+ <meta name="author" content="Chyetanya Kunte">
+ <meta name="description" content="A personal site of Chyetanya Kunte.">
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
+ <meta name="robots" content="index, follow, noarchive, noimageindex, noimageclick">
+ <meta name="viewport" content="width=702">
+ <link rel="stylesheet" href="/css/style.css" type="text/css">
+ <link rel="alternate" type="application/rss+xml" title="Logbook RSS" href="/rss.xml">
+ <meta name="y_key" content="97c7f89953fc7f59">
+ <meta name="google-site-verification" content="v-I00TV-8pMM0mspIOJAXlWwaEdkafJZPzS9LC3r3zc">
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-52041-13']);
+ _gaq.push(['_setDomainName', 'ckunte.net']);
+ _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>
</head>
<body>
<div id="wrap">
<div id="content">
- <h1><a href="/" title="Logbook Home"><img src="/images/avatar.png"></a></h1>
+ <h1><a href="/" title="Logbook Home"><img src="/images/avatar.png" alt=""></a></h1>
<p class="desc">fsck -vf /dev/hdc1 > log</p>
<p class="spacer">&nbsp;</p>
<div id="left">
<div id="nav">
<ul>
<li><a href="/colophon.html" title="About this site">Colophon</a></li>
<li><a href="https://github.com/ckunte" title="Code">Code</a></li>
- <li><a href="/feed.xml" title="RSS">RSS</a></li>
+ <li><a href="/rss.xml" title="RSS">RSS</a></li>
</ul>
</div><!-- /nav -->
</div><!-- /left -->
@@ -7,13 +7,15 @@
{% block post %}
<div class="regular">
<h2>Colophon</h2>
- <p>Logbook is a journal of personal opinion<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup>, an occasional <a href="https://github.com/ckunte" title="The author's public code repository on the web.">code</a> scrap, and a coffee-table picture book. Written in Markdown and powered by <a href="https://github.com/ckunte/chisel">Chisel</a>, it is a personal site produced for a unit audience (family and a handful of friends) that knows the author and this site’s URL well.</p>
+ <p>Logbook is a journal of personal opinion<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup>, an occasional <a href="https://github.com/ckunte" title="The author's public code repository on the web.">code</a> scrap, and a coffee-table picture book. Generated by <a title="Author's fork of David Zhou's original Chisel." href="https://github.com/ckunte/chisel">Chisel</a>, version controlled by <a href="http://git-scm.com/">Git</a>, and served by <a href="https://github.com/blog/272-github-pages">GitHub</a>, it is a personal site produced for a unit audience (family and a handful of friends) that knows the author and this site’s URL well.</p>
<h3>Author</h3>
<p><img src="http://media.tumblr.com/tumblr_m444tstzWD1qawedd.jpg" alt=""/></p>
- <p>Dad to two lovely kids, bike nut, dilettante <a href="/tagged/python" title="Python is a beautiful, and simple programming language.">python</a> coder, the author is a 40 years old engineer much into offshore structures and turret-mooring systems. Outside of work, this is his creative outlet.</p>
+ <p>Dad to two lovely kids, bike nut, dilettante <a href="http://www.python.org/" title="Python is a beautiful, and simple programming language.">python</a> coder, the author is a 40 years old engineer much into offshore structures and turret-mooring systems. Outside of work, this is his creative outlet.</p>
+
+ <p>To contact, please write to log at ckunte dot net.</p>
<div class="footnote">
<hr>
View
0 templates/detail.html 100755 → 100644
No changes.
View
0 templates/home.html 100755 → 100644
No changes.

0 comments on commit b6c442a

Please sign in to comment.