#attr $Prev = None
#attr $Next = None
#attr $Last = None
-#attr $refresh = None
-#import time
+#attr $Refresh = None
#attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime())
-#attr $last_modified_ru = time.strftime("%d.%m.%Y в %T", time.localtime())
+#attr $local_time = time.localtime()
#attr $styles = None
#attr $alternates = None
#attr $Tag = ()
<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">
-<meta HTTP-Equiv="Content-Location" content="http://phdru.name$path">
+#end if
+<meta HTTP-Equiv="Content-Location" content="https://phdru.name$path">
<meta HTTP-Equiv="Last-Modified" content="$last_modified_en">
<title>$Title</title>
-#if $refresh:
-<meta HTTP-Equiv="Refresh" content="$refresh">
+#if $Refresh:
+<meta HTTP-Equiv="Refresh" content="$Refresh">
#end if
#if $Description
<meta name="description" content="$Description">
<meta name="copyright" content="© $full_copyright PhiloSoft Design">
<link rel="copyright" href="$copy_href" title="© $full_copyright PhiloSoft Design">
#end if
+<link rel="canonical" href="https://phdru.name$path">
<link rev="made" href="mailto:phd@phdru.name">
<meta name="generator" content="CheetahTemplate">
<meta name="robots" content="index, follow">
#end for
#end if
<link rel="shortcut icon" href="${root}favicon.ico">
-#if not $root
-<link rel="openid.delegate" href="http://phdru.name/">
-<link rel="openid2.local_id" href="http://phdru.name/">
-<link rel="openid.server" href="http://phdru.name/cgi-bin/poit.py">
-<link rel="openid2.provider" href="http://phdru.name/cgi-bin/poit.py">
-#end if
<meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
</head>
<body bgcolor="#CCCCCC" text="#000000"
link="#0000bb" vlink="#551a8b" alink="#ff0000">
+<p class="small">
+#set $path_components = $path.split('/')[1:-1]
+#set $breadcrumbs = ['<a href="' + $root + '">phdru.name</a>']
+#for $i in range(len($path_components))
+#set $subpath = '/'.join($path_components[:i+1])
+#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%"><-- <a href="$prev_href">$prev_title</a></td>
+#else
+ <td style="text-align: left" width="50%"> </td>
+#end if
+#if $next_blog_post
+ <td style="text-align: right" width="50%"><a href="$next_href">$next_title</a> --></td>
+#else
+ <td style="text-align: right" width="50%"> </td>
+#end if
+ </tr>
+</table>
+#end if
+</p>
$body
+#from urllib import quote
+#def encode_tag(tag):
+$quote(tag.decode('utf-8').encode('koi8-r').replace(' ', '_'))
+#end def
#def link_tag($tag)
-<a href="../../../tags/${tag}.html">$tag</a>
+<a href="../../../tags/${encode_tag(tag)}.html">$tag</a>
#end def
#if $Tag
<hr width="90%">
-#if isinstance($Tag, basestring)
+#from Cheetah.compat import string_type
+#if isinstance($Tag, string_type)
#if $path.startswith("/Russian/")
Тег:
#else
#set $path = $path[:-len("index.html")]
#end if
#if $path.startswith("/Russian/")
-<p class="head" style="font-size: 60%">Эта страница <a href="http://phdru.name$path">http://phdru.name$path</a>
-была сгенерирована $last_modified_ru из шаблона CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>;
+<p class="head" style="font-size: 60%">Эта страница <a href="https://phdru.name$path">https://phdru.name$path</a>
+была сгенерирована $time.strftime("%d.%m.%Y", $local_time) в $time.strftime("%T", $local_time) из шаблона CheetahTemplate
+<a href="$_fileBaseName">$_fileBaseName</a>;
<a href="${root}Russian/free.html">Некоторые права зарезервированы</a>.
-Вы можете узнать <a href="${root}about/">о</a> <a href="${root}about/technical.html">технических</a> аспектах этого сайта.
-</p>
+Вы можете узнать <a href="${root}about/">о</a> <a href="${root}about/technical.html">технических</a>
+аспектах этого сайта.</p>
#else
-<p class="head" style="font-size: 60%">This is the page <a href="http://phdru.name$path">http://phdru.name$path</a>.
+<p class="head" style="font-size: 60%">This is the page <a href="https://phdru.name$path">https://phdru.name$path</a>.
It was generated on $last_modified_en from CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>.
<a href="./${root}free.html">Some rights are reserved</a>.
Read more <a href="${root}about/">about</a> <a href="${root}about/technical.html">technical</a> aspects of the site.