diff options
author | Nick White <git@njw.me.uk> | 2010-04-29 09:42:34 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-04-29 09:42:34 +0100 |
commit | de5a6d39938d70b07ee7380839b1116dcf26b518 (patch) | |
tree | f40153ecde54ff2327cfff6b98e7c361c593c46f | |
parent | 07b8dc7830fb845c3bd29d76a0c2bca8eff939b6 (diff) | |
download | njw-website-de5a6d39938d70b07ee7380839b1116dcf26b518.tar.bz2 njw-website-de5a6d39938d70b07ee7380839b1116dcf26b518.zip |
A hundred tiny improvements
-rw-r--r-- | COPYING | 7 | ||||
-rw-r--r-- | Makefile | 23 | ||||
-rw-r--r-- | card.ttl | 5 | ||||
-rw-r--r-- | graphics/candles.ico | bin | 3262 -> 0 bytes | |||
-rw-r--r-- | includes/footer.xml | 9 | ||||
-rw-r--r-- | includes/header-index.xml | 16 | ||||
-rw-r--r-- | includes/header.xml | 7 | ||||
-rw-r--r-- | includes/style.css | 19 | ||||
-rw-r--r-- | index.txt | 2 | ||||
-rwxr-xr-x | makerss.sh | 2 |
10 files changed, 19 insertions, 71 deletions
@@ -7,13 +7,6 @@ The text on this website is Copyright 2009-2010 Nick White. It is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. -The icon on this website (candles.ico) is a modified version of the -photograph "Candles in Love 07406" which is Copyright 2006 Nevit Dilmen, -and is available from -http://commons.wikimedia.org/wiki/File:Candles_in_Love_07406.jpg. It is -licensed under the Creative Commons Attribution-Share Alike 3.0 Unported -license. - ------------------------------------------------------------------------------ GNU AFFERO GENERAL PUBLIC LICENSE @@ -15,27 +15,22 @@ all: $(TARGETS) $(GZIP) $(TARGETS): includes/header.xml includes/footer.xml $(RSS): $(PAGES) makerss.sh - @echo making $@ - @sh makerss.sh $(SITENAME) $(FOAF) $* > $@ - -index.xml: index.txt includes/header-index.xml includes/footer.xml - @echo making $@ - @sed "s/TITLE/`head -n 1 < $<`/" < includes/header-index.xml > $@ - @$(MARKDOWN) $< >> $@ - @sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@ + echo making $@ + sh makerss.sh $(SITENAME) $(FOAF) $* > $@ .txt.xml: - @echo making $@ - @sed "s/TITLE/`head -n 1 < $<`/" < includes/header.xml > $@ - @$(MARKDOWN) $< >> $@ - @sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@ + echo making $@ + sed "s/TITLE/`head -n 1 < $<`/" < includes/header.xml > $@ + $(MARKDOWN) $< >> $@ + sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@ # not POSIX compatible %.gz: % - @echo compressing $< - @gzip < $< > $@ + echo compressing $< + gzip < $< > $@ clean: rm -f -- $(TARGETS) $(GZIP) .SUFFIXES: .txt .xml .rdf .gz +.SILENT: @@ -15,11 +15,10 @@ foaf:givenName "Nick"; foaf:nick "njw"; foaf:homepage <http://njw.me.uk>; - foaf:openid <http://njw.me.uk>; foaf:mbox_sha1sum "6401a28665a1feaecd7f4e5591dc5eadf285eeec"; - wot:hasKey :key. + wot:hasKey :gpgkey. -:key a wot:PubKey; +:gpgkey a wot:PubKey; wot:hex_id "04E4653F"; wot:pubkeyAddress <http://njw.me.uk/04E4653F.gpg.asc>; wot:fingerprint "9732D7C7A441D79EFDF094F61F48567404E4653F". diff --git a/graphics/candles.ico b/graphics/candles.ico Binary files differdeleted file mode 100644 index b755041..0000000 --- a/graphics/candles.ico +++ /dev/null diff --git a/includes/footer.xml b/includes/footer.xml index 58f2471..9604247 100644 --- a/includes/footer.xml +++ b/includes/footer.xml @@ -1,13 +1,8 @@ <div id="footer"> -<div id="moddate"> -<p>Last updated: MODDATE</p> -</div> +<p id="moddate">Last updated: MODDATE</p> -<div id="copyright"> -<p>The text on this website is licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">Creative Commons Attribution-Share Alike 3.0 License</a>.</p> -<p>The code used to build this website is released under the <a href="http://www.gnu.org/licenses/agpl.html" rel="license">GNU Affero General Public License</a>. It is available in a <a href="http://git.njw.me.uk/cgit/cgit.cgi/njw-website/">git repository</a>.</p> -</div> +<p id="copyright">The text on this website is licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">Creative Commons Attribution-Share Alike 3.0 License</a>. The <a href="http://git.njw.me.uk/cgit/cgit.cgi/njw-website/">code used to build this website</a> is released under the <a href="http://www.gnu.org/licenses/agpl.html" rel="license">GNU Affero General Public License</a>.</p> </div> diff --git a/includes/header-index.xml b/includes/header-index.xml deleted file mode 100644 index d6cb771..0000000 --- a/includes/header-index.xml +++ /dev/null @@ -1,16 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" - "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> - -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> -<head> - <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> - <title>TITLE</title> - <link rel="stylesheet" type="text/css" href="/includes/style" /> - <link rel="icon" href="/graphics/candles.ico" /> - <link rel="alternate" title="rss" type="text/turtle" href="/index.ttl" /> - <link rel="meta" title="foaf" type="text/turtle" href="/card#i" /> - <link rel="openid.server" href="http://certifi.ca/_serve" /> - <link rel="openid.delegate" href="http://certifi.ca/njw" /> -</head> - -<body> diff --git a/includes/header.xml b/includes/header.xml index 0b90e1f..d96175d 100644 --- a/includes/header.xml +++ b/includes/header.xml @@ -1,13 +1,12 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <title>TITLE</title> <link rel="stylesheet" type="text/css" href="/includes/style" /> - <link rel="icon" href="/graphics/candles.ico" /> - <link rel="alternate" title="rss" type="text/turtle" href="/index.ttl" /> + <link rel="alternate" title="RSS" type="text/turtle" href="/index.ttl" /> + <link rel="meta" title="FOAF" type="text/turtle" href="/card#i" /> </head> <body> diff --git a/includes/style.css b/includes/style.css index 84ec65b..1382be0 100644 --- a/includes/style.css +++ b/includes/style.css @@ -19,25 +19,8 @@ h2 { a { text-decoration: none; } -a:hover { color: #5555dd; } - -p a:hover { text-decoration: underline; } - div#footer { border-top: thin solid black; - margin: 6ex auto 1ex; + margin-top: 6ex; font-size: xx-small; } - -div#copyright { - border: thin solid #777; - background-color: #eee; - color: black; - padding: 0.4ex 1em; - margin: auto 2%; -} - -div#copyright p { - margin-top: 0.2ex; - margin-bottom: 0.2ex; -} @@ -5,7 +5,7 @@ Nick J. White (njw) ----------------------------------------------------------------------- More information about the [free software](http://www.gnu.org/philosophy/free-sw.html) projects I -I have been and am involved with. +have been and am involved with. [Web Development](webdevelopment) ----------------------------------------------------------------------- @@ -17,7 +17,6 @@ cat << EOF rss:link <${siteurl}>; dc:creator <${creator}>; cc:license <http://creativecommons.org/licenses/by-sa/3.0/>; - rss:items [ a rdf:Seq; EOF @@ -32,6 +31,7 @@ for item in $items; do moddate=`ls -lc --time-style=+%Y-%m-%d ./${item}.txt|awk '{print $6}'` link="${siteurl}${item}" cat << EOF + <${link}> a rss:item; rss:title "${title}"; rss:link <${link}>; |