#encoding koi8-r #extends phd #implements respond #attr $Lead = '' #attr $Title = '' #attr $Description = None #attr $Keywords = None #attr $Copyright = None #attr $Start = None #attr $First = None #attr $Prev = None #attr $Next = None #attr $Last = None #attr $Refresh = None #attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime()) #attr $local_time = time.localtime() #attr $styles = None #attr $alternates = None #attr $Tag = () #if $path.startswith("/Russian/") #else #end if $Title #if $Refresh: #end if #if $Description #end if #if $Keywords #end if #if $Copyright #set $full_copyright = $copyright($Copyright) #if $path.startswith("/Russian/") #set $author_href = $root + "Russian/" #set $copy_href = $root + "Russian/free.html" #else #set $author_href = $root or "./" #set $copy_href = $root + "free.html" #end if #end if #if $root #if $path.endswith('index.html') #else #end if #end if #if $Start #elif not $path.endswith('index.html') #end if #if $First #end if #if $Prev #end if #if $Next #end if #if $Last #end if #if $path != "/search.html" #end if #if $styles #for $media, $style in $styles #end for #end if #if $alternates #for $title, $type, $href in $alternates #end for #end if

#set $path_components = $path.split('/')[1:-1] #set $breadcrumbs = ['phdru.name'] #for $i in range(len($path_components)) #set $subpath = '/'.join($path_components[:i+1]) #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] #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] #end if
#if $prev_blog_post #else #end if #if $next_blog_post #else #end if
<-- $prev_title $next_title --> 
#end if

$body #from urllib.parse import quote #def encode_tag(tag): $quote(tag.replace(' ', '_'), encoding='koi8-r') #end def #def link_tag($tag) $tag #end def #if $Tag
#from Cheetah.compat import string_type #if isinstance($Tag, string_type) #if $path.startswith("/Russian/") Тег: #else Tag: #end if $link_tag($Tag) #else #if $path.startswith("/Russian/") Теги: #else Tags: #end if #for $tag in $Tag $link_tag($tag) #end for #end if #end if
#if $path.endswith("index.html") #set $path = $path[:-len("index.html")] #end if #if $path.startswith("/Russian/")

Эта страница https://phdru.name$path была сгенерирована $time.strftime("%d.%m.%Y", $local_time) в $time.strftime("%T", $local_time) из шаблона CheetahTemplate $_fileBaseName; Некоторые права зарезервированы. Вы можете узнать о технических аспектах этого сайта.

#else

This is the page https://phdru.name$path. It was generated on $last_modified_en from CheetahTemplate $_fileBaseName. Some rights are reserved. Read more about technical aspects of the site.

#end if #slurp