Mercurial > blahgd > experimental
changeset 1075:fd4337f68e43
theme: turn the shipped theme into a proper theme example
It is silly to ship my blahg's theme with the software. For a couple of
years, it's been possible to specify the theme directory via the theme-dir
config option so there is no harm generalizing the shipped theme and
encouraging users to copy it and tweak it to taste.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 30 Jul 2020 16:53:56 -0400 |
parents | ad6be9989905 |
children | b8d7683ec05a |
files | theme/atom/index.tmpl theme/atom/story.tmpl theme/html/404.tmpl theme/html/archivepager.tmpl theme/html/error_comment_feed.tmpl theme/html/error_unsupported_feed_fmt.tmpl theme/html/footer.tmpl theme/html/header.tmpl theme/html/indexpager.tmpl theme/html/sidebar.tmpl theme/html/story.tmpl theme/rss2/index.tmpl theme/static/style.css |
diffstat | 13 files changed, 21 insertions(+), 46 deletions(-) [+] |
line wrap: on
line diff
--- a/theme/atom/index.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/atom/index.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -6,8 +6,8 @@ xml:base="{baseurl}/?feed=atom" > <updated>{lastupdate|zulu}</updated> - <title type="text">Josef "Jeff" Sipek</title> - <subtitle type="text">Wasting time effectively</subtitle> + <title type="text">Blahgd Example</title> + <subtitle type="text">Blahgd Example Subtitle</subtitle> <generator uri="http://hg.31bits.net/blahgd" version="{generatorversion}">blahgd</generator>
--- a/theme/atom/story.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/atom/story.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -1,6 +1,6 @@ <entry> <author> - <name>JeffPC</name> + <name>Author Name</name> <uri>{baseurl}</uri> </author> <title type="html"><![CDATA[{title}]]></title>
--- a/theme/html/404.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/404.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -1,9 +1,5 @@ {header} <h2>Page Not Found</h2> -<div class="post" id="error"> - <div class="storycontent"> -The page you requested could not be found. - </div> -</div> +<div>The page you requested could not be found.</div> {sidebar} {footer}
--- a/theme/html/archivepager.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/archivepager.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -1,8 +1,8 @@ -<div class="navigation"> +<div> {ifeq(moreposts,1)} - <div class="alignleft"><a href="?m={archid}&paged={prevpage}">« Older Entries</a></div> + <div><a href="?m={archid}&paged={prevpage}">« Older Entries</a></div> {endif()} {ifgt(curpage,0)} - <div class="alignright"><a href="?m={archid}&paged={nextpage}">Newer Entries »</a></div> + <div><a href="?m={archid}&paged={nextpage}">Newer Entries »</a></div> {endif()} </div>
--- a/theme/html/error_comment_feed.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/error_comment_feed.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -1,10 +1,8 @@ {header} <h2>Comment feed not yet supported</h2> -<div class="post" id="error"> - <div class="storycontent"> +<div> It turns out that there are some features that I never got around to implementing. You just found one of them. Eventually. - </div> </div> {sidebar} {footer}
--- a/theme/html/error_unsupported_feed_fmt.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/error_unsupported_feed_fmt.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -1,10 +1,8 @@ {header} <h2>Sorry, Atom & RSS2 only</h2> -<div class="post" id="error"> - <div class="storycontent"> +<div> Sorry, currently I support only Atom and RSS2 feeds. Feel free to contact me if you cannot live without some other feed format. - </div> </div> {sidebar} {footer}
--- a/theme/html/footer.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/footer.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -1,7 +1,7 @@ <!-- begin footer --> -<p class="credit"><cite>Powered by <a href='http://hg.31bits.net/blahgd' title='Powered by blahgd'><strong>blahgd</strong></a></cite></p> +<p><cite>Powered by <a href='http://hg.31bits.net/blahgd' title='Powered by blahgd'><strong>blahgd</strong></a></cite></p> </div>
--- a/theme/html/header.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/header.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -2,7 +2,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title>Josef “Jeff” Sipek » {title|escape}</title> + <title>Blahgd Example » {title|escape}</title> <meta name="generator" content="blahgd {generatorversion}"> {ifset(twitteruser)} {ifset(twittertitle)} @@ -31,7 +31,7 @@ <body> <div> -<h1 id="header"><a href="{baseurl}/">Josef “Jeff” Sipek</a></h1> +<h1 id="header"><a href="{baseurl}/">Blahgd Example</a></h1> <div id="content"> <!-- end header -->
--- a/theme/html/indexpager.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/indexpager.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -1,8 +1,8 @@ -<div class="navigation"> +<div> {ifeq(moreposts,1)} - <div class="alignleft"><a href="?paged={prevpage}">« Older Entries</a></div> + <div><a href="?paged={prevpage}">« Older Entries</a></div> {endif()} {ifgt(curpage,0)} - <div class="alignright"><a href="?paged={nextpage}">Newer Entries »</a></div> + <div><a href="?paged={nextpage}">Newer Entries »</a></div> {endif()} </div>
--- a/theme/html/sidebar.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/sidebar.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -3,19 +3,6 @@ <!-- begin sidebar --> <div id="sidebar"> -<div class="sbsection"> - <ul> - <li><a href="http://sandeen.net/wordpress/">Eric Sandeen</a></li> - <li><a href="http://blog.unixcat.org">Nur Hussein</a></li> - </ul> -</div> - -<div class="sbsection"> - <ul> - <li><a href="http://planet.lilug.org">Planet LILUG</a></li> - </ul> -</div> - <div class="sbsection"><span class="sbtitle">Tags:</span> <div class="tagcloud">{tagcloud%tagcloud}</div> </div>
--- a/theme/html/story.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/html/story.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -5,7 +5,7 @@ <ul> {tags%tag} </ul> - — JeffPC @ <span title="{time|zulu}">{time|date} {time|time}</span> + — Author @ <span title="{time|zulu}">{time|date} {time|time}</span> </div> {ifset(preview)}
--- a/theme/rss2/index.tmpl Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/rss2/index.tmpl Thu Jul 30 16:53:56 2020 -0400 @@ -4,11 +4,11 @@ xmlns:atom="http://www.w3.org/2005/Atom" > <channel> - <title>Josef "Jeff" Sipek</title> + <title>Blahgd Example</title> <atom:link href="{baseurl}/?feed=rss2" rel="self" type="application/rss+xml" /> <link>{baseurl}</link> <language>en</language> - <description>Josef "Jeff" Sipek</description> + <description>Blahgd Example description</description> <pubDate>{lastupdate|rfc822}</pubDate> {posts%story}
--- a/theme/static/style.css Tue Oct 18 09:33:52 2022 -0400 +++ b/theme/static/style.css Thu Jul 30 16:53:56 2020 -0400 @@ -8,7 +8,7 @@ } abbr, acronym { - border-bottom: 1px dashed #333333; + border-bottom: 1px dashed; cursor: help; } @@ -19,7 +19,7 @@ } body { - background-color: #ffffcc; + background-color: white; color: black; margin: 20px; font-size: 12pt; @@ -30,10 +30,6 @@ font-style: normal; } -h1, h2, h3, h4 { - color: #336699; -} - h1 { font-size: 22pt; } @@ -85,7 +81,7 @@ color: #336699; border-left: 1px dotted #ccc; border-top: 3px solid #e0e6e0; - padding: 20px 0 10px 30px; + padding: 20px 20px 10px 30px; position: absolute; right: 2px; top: 0;