X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_site.tmpl;h=c170a28251544ed488c89514b7ff0624f65e00fa;hb=c979d8e477cde0da0e4ed7accbdf68066f3fa04e;hp=003c5b90d8255beea7b5717ece9c106197fc6599;hpb=090d227e18bc2fe43ba7c63d0b241cddaaed07cc;p=phdru.name%2Fphdru.name.git
diff --git a/phd_site.tmpl b/phd_site.tmpl
index 003c5b9..c170a28 100644
--- a/phd_site.tmpl
+++ b/phd_site.tmpl
@@ -23,7 +23,11 @@
+#if $path.startswith("/Russian/")
+
+#else
+#end if
$Title
@@ -50,6 +54,7 @@
#end if
+
@@ -95,7 +100,7 @@ $style
#end for
#end if
-#if not $root
+#if not $root and $path.endswith('index.html')
@@ -113,6 +118,32 @@ $style
#silent $breadcrumbs.append('' + $path_components[i]+ '')
#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
+
+
+
+#if $prev_blog_post
+ <-- $prev_title |
+#else
+ |
+#end if
+#if $next_blog_post
+ $next_title --> |
+#else
+ |
+#end if
+
+
+#end if
$body
#def link_tag($tag)
@@ -120,7 +151,8 @@ $body
#end def
#if $Tag
-#if isinstance($Tag, basestring)
+#from Cheetah.compat import string_type
+#if isinstance($Tag, string_type)
#if $path.startswith("/Russian/")
ôÅÇ:
#else