]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - phd_site.tmpl
Fix: Remove duplicate import
[phdru.name/phdru.name.git] / phd_site.tmpl
index 0388f0bf8b86c863e4e7b22e6daa9bf982fee006..9f6422d2f4c758805c005f467b40d3722c98fb3f 100644 (file)
@@ -12,7 +12,6 @@
 #attr $Next = None
 #attr $Last = None
 #attr $Refresh = None
-#import time
 #attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime())
 #attr $local_time = time.localtime()
 #attr $styles = None
 <html>
 <!-- THIS PAGE IS AUTOMATICALLY GENERATED USING CheetahTemplate. DO NOT EDIT. -->
 <head>
+#if $path.startswith("/Russian/")
+<meta HTTP-Equiv="Content-Type" content="text/html; charset=koi8-r">
+#else
 <meta HTTP-Equiv="Content-Type" content="text/html">
+#end if
 <meta HTTP-Equiv="Content-Location" content="http://phdru.name$path">
 <meta HTTP-Equiv="Last-Modified" content="$last_modified_en">
 <title>$Title</title>
@@ -50,6 +53,7 @@
 <meta name="copyright" content="&copy; $full_copyright PhiloSoft Design">
 <link rel="copyright" href="$copy_href" title="&copy; $full_copyright PhiloSoft Design">
 #end if
+<link rel="canonical" href="http://phdru.name$path">
 <link rev="made" href="mailto:phd@phdru.name">
 <meta name="generator" content="CheetahTemplate">
 <meta name="robots" content="index, follow">
@@ -113,6 +117,32 @@ $style
 #silent $breadcrumbs.append('<a href="' + $root + $subpath + '/">' + $path_components[i]+ '</a>')
 #end for
 #echo " / ".join($breadcrumbs)
+#if $path.startswith("/Russian/blog/")
+#set $prev_key, $prev_blog_post, $next_key, $next_blog_post = $find_near_blog_posts()
+#if $prev_blog_post
+#set $prev_href = $root + "Russian/blog/" + '/'.join($prev_key + ($prev_blog_post[0].replace('.tmpl', '.html'),))
+#set $prev_title = $prev_blog_post[1].decode('koi8-r')
+#end if
+#if $next_blog_post
+#set $next_href = $root + "Russian/blog/" + '/'.join($next_key + ($next_blog_post[0].replace('.tmpl', '.html'),))
+#set $next_title = $next_blog_post[1].decode('koi8-r')
+#end if
+<br>
+<table width="100%">
+  <tr>
+#if $prev_blog_post
+    <td style="text-align: left" width="50%">&lt;-- <a href="$prev_href">$prev_title</a></td>
+#else
+    <td style="text-align: left" width="50%">&nbsp;</td>
+#end if
+#if $next_blog_post
+    <td style="text-align: right" width="50%"><a href="$next_href">$next_title</a> --&gt;</td>
+#else
+    <td style="text-align: right" width="50%">&nbsp;</td>
+#end if
+  </tr>
+</table>
+#end if
 </p>
 $body
 #def link_tag($tag)