Skip to content

Commit 66d0bde

Browse files
committed
put the base template in the repository
1 parent a7bb6da commit 66d0bde

File tree

3 files changed

+157
-6
lines changed

3 files changed

+157
-6
lines changed

.hgignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ distribute*.egg
77
distribute*.tar.gz
88
docs/build
99
docs/website
10-
sphinx/web/templates/base.html
1110
tests/catch_output
1211
tests/testpackage/build
1312
tests/testpackage/dist

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ html:
3636

3737
# Website copy of documentation
3838
.PHONY: website
39-
website: docs/sphinx/web/templates/base.html
39+
website:
40+
[ ~/Devel/doughellmann/doughellmann/templates/base.html -nt docs/sphinx/web/templates/base.html ] && (echo "Updating base.html" ; cp ~/Devel/doughellmann/doughellmann/templates/base.html docs/sphinx/web/templates/base.html) || exit 0
4041
rm -rf docs/website
4142
(cd docs && $(MAKE) html SPHINXOPTS="-c sphinx/web" BUILDDIR="website")
4243

@@ -48,10 +49,6 @@ installwebsite: website
4849
register:
4950
python setup.py register
5051

51-
# Copy the base template from my website build directory
52-
docs/sphinx/web/templates/base.html: ~/Devel/doughellmann/doughellmann/templates/base.html
53-
cp $< $@
54-
5552
# Testing
5653
TEST_SCRIPTS=$(wildcard tests/test*.sh)
5754

docs/sphinx/web/templates/base.html

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<title>{% block title %}Doug Hellmann{% endblock %}</title>
6+
{% block head_before_css %}
7+
{% endblock %}
8+
<link href="/static/css/leaves.css" rel="stylesheet" type="text/css" />
9+
{% block head_after_css %}
10+
{% endblock %}
11+
{% block head %}
12+
{% endblock %}
13+
<meta name="verify-v1" content="5saTcOa2HLac4V85yUg3SARfun1PqT5Upu7IR/6fpv4="/>
14+
</head>
15+
<body>
16+
17+
<div id="container">
18+
19+
<div id="header">
20+
<h1>{% block page_heading %}Doug Hellmann{% endblock %}</h1>
21+
<p>{% block page_subheading %}{% endblock %}</p>
22+
<a id="admin-link" href="/admin/">admin</a>
23+
</div>
24+
25+
<div id="sidebar_left_wrapper">
26+
27+
<div id="navigation">
28+
<ul id="navlist">
29+
<li><a href="/">Home</a></li>
30+
<li><a href="/PyMOTW/">PyMOTW</a></li>
31+
<li><a href="http://blog.doughellmann.com/" target="_">Blog</a></li>
32+
<li><a href="/articles/">Articles</a></li>
33+
<li><a href="/projects/">Projects</a></li>
34+
<li><a href="http://code.doughellmann.com/" target="_">Code</a></li>
35+
<li><a href="/about/">About</a></li>
36+
</ul>
37+
</div>
38+
39+
{% block sidebar_l %}
40+
{% endblock %}
41+
</div>
42+
43+
<div id="sidebar">
44+
{% block sidebar %}
45+
46+
<h2>Sidebar</h2>
47+
<p>You have reached the sidebar, put news, links, or anything textual in here. I think I'll drag on with typing nonsense text, until you feel really really sleepy. Of course, you wouldn't waste time reading this. Some Latin would be more useful.</p>
48+
{% endblock %}
49+
50+
<p class="ads">
51+
<script type="text/javascript"><!--
52+
google_ad_client = "pub-3205160560229413";
53+
google_ad_width = 120;
54+
google_ad_height = 600;
55+
google_ad_format = "120x600_as";
56+
google_ad_type = "text";
57+
//2007-10-27: www.doughellmann.com
58+
google_ad_channel = "0828653884";
59+
google_color_border = "FFFFFF";
60+
google_color_bg = "FFFFFF";
61+
google_color_link = "CC6714";
62+
google_color_text = "000000";
63+
google_color_url = "999999";
64+
google_ui_features = "rc:0";
65+
//-->
66+
</script>
67+
<script type="text/javascript"
68+
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
69+
</script>
70+
</p>
71+
72+
</div>
73+
74+
<div id="content">
75+
{% block content %}
76+
{% block relbar1 %}{% endblock %}
77+
78+
<h2>Welcome to Leaves.</h2>
79+
<p>Welcome to Leaves, a static, 3 column layout made with your usual CSS and XHTML. It is able to correctly accommodate any font size increases or shrinkages (Is that a word?). It seems to work fine in Firefox, Opera, Internet Explorer and Safari. It's more minimal than other designs, because I think images (drop shadows, giant header images) are being obsessively over used these days. I think it detracts from the content and shoves way too much information to a viewer all at the same time, so here you go: Leaves, a minimalist design. Feel free to massacre or change the design to your liking. Well, I guess it's time for some more Latin. <strong>If you want me to create a custom design for you, feel free to drop me a line anytime at [email protected] </strong></p>
80+
81+
{% block relbar2 %}{% endblock %}
82+
{% endblock %}
83+
84+
{% block addthis %}
85+
<div id="addthis"><a href="http://www.addthis.com/bookmark.php" onclick="addthis_url = location.href; addthis_title = document.title; return addthis_click(this);" target="_blank"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" border="0" alt="Bookmark and Share" /></a><script type="text/javascript">var addthis_pub = "dhellmann";</script><script type="text/javascript" src="http://s7.addthis.com/js/widget.php?v=10"></script></div>
86+
{% endblock %}
87+
88+
{% block comments %}
89+
<!-- Disqus -->
90+
<div id="disqus_wrapper">
91+
<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/doughellmann/embed.js"></script><noscript><a href="http://doughellmann.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
92+
</div>
93+
{% endblock %}
94+
</div>
95+
96+
<div id="footer_ads">
97+
98+
<p><script type="text/javascript"><!--
99+
google_ad_client = "pub-3205160560229413";
100+
google_ad_width = 728;
101+
google_ad_height = 90;
102+
google_ad_format = "728x90_as";
103+
google_ad_type = "text";
104+
//2007-10-21: www.doughellmann.com
105+
google_ad_channel = "0828653884";
106+
google_color_border = "FFFFFF";
107+
google_color_bg = "FFFFFF";
108+
google_color_link = "CC6714";
109+
google_color_text = "000000";
110+
google_color_url = "999999";
111+
google_ui_features = "rc:0";
112+
//-->
113+
</script>
114+
<script type="text/javascript"
115+
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
116+
</script></p>
117+
</div>
118+
119+
<div id="footer">
120+
{% block footer %}
121+
122+
<p>Copyright Doug Hellmann | Design based on "Leaves" by <a href="http://smallpark.org">SmallPark</a></p>
123+
124+
<script src="http://www.google-analytics.com/urchin.js"
125+
type="text/javascript">
126+
</script>
127+
<script type="text/javascript">
128+
_uacct = "UA-1847381-1";
129+
urchinTracker();
130+
</script>
131+
132+
{% endblock %}
133+
</div>
134+
135+
</div>
136+
137+
<!-- Disqus -->
138+
<script type="text/javascript">
139+
//<![CDATA[
140+
(function() {
141+
var links = document.getElementsByTagName('a');
142+
var query = '?';
143+
for(var i = 0; i < links.length; i++) {
144+
if(links[i].href.indexOf('#disqus_thread') >= 0) {
145+
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
146+
}
147+
}
148+
document.write('<script type="text/javascript" src="http://disqus.com/forums/doughellmann/get_num_replies.js' + query + '"></' + 'script>');
149+
})();
150+
//]]>
151+
</script>
152+
153+
154+
</body>
155+
</html>

0 commit comments

Comments
 (0)