5aed689b7896

Add a dict of links to the context and use it.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 15 Jan 2010 19:52:47 -0500
parents fcb06c420476
children ce99be93f9c9
branches/tags (none)
files content/blog/2009/01/deploying-site-fabric-and-mercurial.html content/blog/2009/01/going-open-source.html content/blog/2009/01/site-redesign.html content/blog/2009/03/mercurial-bash-prompts.html content/blog/2009/06/how-to-contribute-to-mercurial.html content/blog/2009/08/a-guide-to-branching-in-mercurial.html content/blog/2009/11/my-sitesprint-project-lindyhub.html content/projects/django-hoptoad.html content/projects/grabtweets.html content/projects/lindyjam-com.html content/projects/stevelosh-com.html content/projects/t.html content/resume/resume.html settings.py

Changes

--- a/content/blog/2009/01/deploying-site-fabric-and-mercurial.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/blog/2009/01/deploying-site-fabric-and-mercurial.html	Fri Jan 15 19:52:47 2010 -0500
@@ -23,7 +23,7 @@
 [Mint]: http://haveamint.com
 [Bird Feeder]: http://haveamint.com/peppermill/pepper/11/bird_feeder/
 [RSS feeds]: /rss/
-[Django]: http://djangoproject.com/
+[Django]: {{links.django}}
 
 [TOC]
 
@@ -132,7 +132,7 @@
 It's pretty specific to my needs but I'm sure it will give you an idea of
 where to start.
 
-[Fabric]: http://www.nongnu.org/fab/
+[Fabric]: {{links.fabric}}
 [WebFaction]: http://www.webfaction.com?affiliate=sjl
 
 	#!python
--- a/content/blog/2009/01/going-open-source.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/blog/2009/01/going-open-source.html	Fri Jan 15 19:52:47 2010 -0500
@@ -17,8 +17,8 @@
 there; instead I want to write about why I made the site open source at all.
 There are a couple of main reasons, and not *all* of them are selfish!
 
-[Mercurial]: http://www.selenic.com/mercurial/wiki/
-[Django]: http://djangoproject.com/
+[Mercurial]: {{links.mercurial}}
+[Django]: {{links.django}}
 [project page]: /projects/stevelosh-com
 
 I Get More Traffic
--- a/content/blog/2009/01/site-redesign.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/blog/2009/01/site-redesign.html	Fri Jan 15 19:52:47 2010 -0500
@@ -36,9 +36,9 @@
 
 Let me know what you think!
 
-[Python]: http://python.org/
-[Django]: http://djangoproject.com/
-[WebFaction]: http://webfaction.com/
+[Python]: {{links.python}}
+[Django]: {{links.django}}
+[WebFaction]: {{links.webfaction}}
 [Squarespace]: http://www.squarespace.com/
 [project page]: /projects/stevelosh-com
 
--- a/content/blog/2009/03/mercurial-bash-prompts.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/blog/2009/03/mercurial-bash-prompts.html	Fri Jan 15 19:52:47 2010 -0500
@@ -26,7 +26,7 @@
 much more elegantly. **Use that instead!**
 
 [guide]: http://www.ibm.com/developerworks/linux/library/l-tip-prompt/
-[Mercurial]: http://www.selenic.com/mercurial/wiki/
+[Mercurial]: {{links.mercurial}}
 [git version]: http://gist.github.com/31631
 
 My Starting Point
--- a/content/blog/2009/06/how-to-contribute-to-mercurial.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/blog/2009/06/how-to-contribute-to-mercurial.html	Fri Jan 15 19:52:47 2010 -0500
@@ -39,7 +39,7 @@
 between 15 and 45 minutes, depending on how comfortable you are with bash,
 Python, and Mercurial itself.
 
-[Python]: http://python.org/
+[Python]: {{links.python}}
 
 Join the Community
 ------------------
--- a/content/blog/2009/08/a-guide-to-branching-in-mercurial.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/blog/2009/08/a-guide-to-branching-in-mercurial.html	Fri Jan 15 19:52:47 2010 -0500
@@ -14,7 +14,7 @@
 channels on freenode a lot lately, and I've noticed a topic that comes up a
 lot is "how does [Mercurial][hg]'s branching differ from [git][]'s branching?"
 
-[hg]: http://mercurial.selenic.com/
+[hg]: {{links.mercurial}}
 [git]: http://git-scm.com/
 [hg-irc]: irc://irc.freenode.net/#mercurial
 [bb-irc]: irc://irc.freenode.net/#bitbucket
--- a/content/blog/2009/11/my-sitesprint-project-lindyhub.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/blog/2009/11/my-sitesprint-project-lindyhub.html	Fri Jan 15 19:52:47 2010 -0500
@@ -174,11 +174,11 @@
 I'm happy to go further in depth if you're curious -- let me know with a
 comment.
 
-[Django]: http://www.djangoproject.com/
-[Python]: http://python.org/
-[WebFaction]: http://www.webfaction.com/?affiliate=sjl
+[Django]: {{links.django}}
+[Python]: {{links.python}}
+[WebFaction]: {{links.webfaction}}
 [PostgreSQL]: http://www.postgresql.org/
-[Aardvark Legs]: http://fecklessmind.com/2009/01/20/aardvark-css-framework/
+[Aardvark Legs]: {{links.aardvarklegs}}
 [jQuery]: http://jquery.com/
 
 If You're Interested, Follow My Progress!
--- a/content/projects/django-hoptoad.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/projects/django-hoptoad.html	Fri Jan 15 19:52:47 2010 -0500
@@ -14,7 +14,7 @@
 
 You can get it from [the repository on BitBucket][repo].
 
-[Django]: http://djangoproject.com/
+[Django]: {{links.django}}
 [Hoptoad]: http://hoptoadapp.com/
 [ponies]: http://djangopony.com/
 [repo]: http://bitbucket.org/sjl/django-hoptoad/
@@ -31,7 +31,7 @@
 * [Django][] 1.0+
 * A [Hoptoad][] account
 
-[Python]: http://python.org/
+[Python]: {{links.python}}
 [PyYAML]: http://pyyaml.org/
 
 Installation
@@ -61,7 +61,7 @@
 
     python -c 'import hoptoad'
 
-[Mercurial]: http://mercurial.selenic.com/
+[Mercurial]: {{links.mercurial}}
 [tip-dl]: http://bitbucket.org/sjl/django-hoptoad/get/tip.zip
 
 Usage
--- a/content/projects/grabtweets.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/projects/grabtweets.html	Fri Jan 15 19:52:47 2010 -0500
@@ -59,7 +59,7 @@
 
     $ grabtweets.py -p FILE
 
-[Python]: http://python.org/
+[Python]: {{links.python}}
 [download]: http://bitbucket.org/sjl/grabtweets/get/tip.zip
 
 Problems, Contributing, etc
--- a/content/projects/lindyjam-com.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/projects/lindyjam-com.html	Fri Jan 15 19:52:47 2010 -0500
@@ -81,7 +81,7 @@
 of that and discuss the articles.
 
 [Blog]: http://lindyjam.com/blog/
-[Markdown]: http://daringfireball.net/projects/markdown/
+[Markdown]: {{links.markdown}}
 
 ### Links
 
@@ -136,11 +136,11 @@
 You can browse or download the code from the [Mercurial repository][] on
 BitBucket.
 
-[Django]: http://djangoproject.com/
-[Fabric]: http://www.nongnu.org/fab/
+[Django]: {{links.django}}
+[Fabric]: {{links.fabric}}
 [jQuery]: http://jquery.com/
 [Blueprint]: http://www.blueprintcss.org/
-[WebFaction]: http://www.webfaction.com/signup?affiliate=sjl
+[WebFaction]: {{links.webfaction}}
 [Mercurial repository]: http://bitbucket.org/sjl/lindyjam/
 
 Feedback
--- a/content/projects/stevelosh-com.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/projects/stevelosh-com.html	Fri Jan 15 19:52:47 2010 -0500
@@ -85,17 +85,17 @@
 
 [Squarespace]: http://www.squarespace.com/
 [Python]: http://python.org
-[Django]: http://djangoproject.com
+[Django]: {{links.django}}
 [Blueprint]: http://www.blueprintcss.org/
-[Markdown]: http://daringfireball.net/projects/markdown/
+[Markdown]: {{links.markdown}}
 [WMD]: http://wmd-editor.com/
 [jQuery]: http://jquery.com
 [form validation]: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 [TextMate]: http://macromates.com/
-[Mercurial]: http://www.selenic.com/mercurial/wiki/
+[Mercurial]: {{links.mercurial}}
 [Bitbucket.org]: http://www.bitbucket.org/
-[Fabric]: http://www.nongnu.org/fab/
+[Fabric]: {{links.fabric}}
 [Mint]: http://haveamint.com/
-[WebFaction]: http://www.webfaction.com/signup?affiliate=sjl
+[WebFaction]: {{links.webfaction}}
 
 {% endblock %}
\ No newline at end of file
--- a/content/projects/t.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/projects/t.html	Fri Jan 15 19:52:47 2010 -0500
@@ -83,7 +83,7 @@
 `t` requires [Python][] 2.5 or newer, and some form of UNIX-like shell (bash
 works well). It works on Linux, OS X, and Windows (with [Cygwin][]).
 
-[Python]: http://python.org/
+[Python]: {{links.python}}
 [Cygwin]: http://www.cygwin.com/
 
 Installing and setting up `t` will take about one minute.
--- a/content/resume/resume.html	Fri Jan 15 19:41:31 2010 -0500
+++ b/content/resume/resume.html	Fri Jan 15 19:52:47 2010 -0500
@@ -45,7 +45,7 @@
 [XML]: http://www.w3.org/XML/
 [CSS]: http://www.w3.org/TR/CSS/
 [JSON]: http://www.json.org/
-[Markdown]: http://daringfireball.net/projects/markdown/
+[Markdown]: {{links.markdown}}
 [Jinja2]: http://jinja.pocoo.org/2/
 [R]: http://www.r-project.org/
 
@@ -61,13 +61,13 @@
 
 When writing [JavaScript][] I use [jQuery][] to eliminate a lot of the tediousness and create elegant code.
 
-[Django]: http://www.djangoproject.com/
-[CherryPy]: http://www.cherrypy.org/
+[Django]: {{links.django}}
+[CherryPy]: {{links.cherrypy}}
 [Blueprint]: http://www.blueprintcss.org/
 [Tripoli]: http://devkick.com/lab/tripoli/
-[aardvark legs]: http://fecklessmind.com/2009/01/20/aardvark-css-framework/
+[aardvark legs]: {{links.aardvarklegs}}
 [Hyde]: http://github.com/lakshmivyas/hyde
-[Blatter]: http://bitbucket.org/jek/blatter/
+[Blatter]: {{links.blatter}}
 [jQuery]: http://jquery.com/
 
 ### Version Control
@@ -78,7 +78,7 @@
 
 I know my way around [Subversion][], [CVS][], and [git][] as well.
 
-[Mercurial]: http://www.selenic.com/mercurial/
+[Mercurial]: {{links.mercurial}}
 [BitBucket]: http://bitbucket.org/
 [Subversion]: http://subversion.tigris.org/
 [CVS]: http://www.nongnu.org/cvs/
@@ -96,7 +96,7 @@
 [Mac OS X]: http://www.apple.com/macosx/
 [TextMate]: http://macromates.com/
 [SSH]: http://en.wikipedia.org/wiki/Secure_Shell
-[fabric]: http://www.nongnu.org/fab/
+[fabric]: {{links.fabric}}
 [Linux]: http://www.linux.org/
 [Windows]: http://www.microsoft.com/WINDOWS/
 [vim]: http://www.vim.org/
--- a/settings.py	Fri Jan 15 19:41:31 2010 -0500
+++ b/settings.py	Fri Jan 15 19:52:47 2010 -0500
@@ -61,7 +61,21 @@
 }
 
 CONTEXT = {
-    'GENERATE_CLEAN_URLS': GENERATE_CLEAN_URLS
+    'GENERATE_CLEAN_URLS': GENERATE_CLEAN_URLS,
+    'links': {
+        'python': 'http://python.org/',
+        'django': 'http://www.djangoproject.com/',
+        'cherrypy': 'http://cherrypy.org/',
+        'hyde': 'http://github.com/lakshmivyas/hyde/',
+        'markdown': 'http://daringfireball.net/projects/markdown/',
+        'fabric': 'http://fabfile.org/',
+        'blatter': 'http://bitbucket.org/jek/blatter/',
+        'webfaction': 'http://www.webfaction.com?affiliate=sjl',
+        'mercurial': 'http://mercurial.selenic.com/',
+        'aardvarklegs': 'http://fecklessmind.com/2009/01/20/aardvark-css-framework/',
+        'hgtip': 'http://hgtip.com/',
+        'lesscss': 'http://lesscss.org/',
+    },
 }
 
 FILTER = {