X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=blobdiff_plain;f=phd_site.tmpl;h=0568b49090046382724192633240900f9d3feee3;hp=9f3bc64bbbf963cdf8d9de32a8f4fbacab9bfb09;hb=HEAD;hpb=6a2b39f98da72d1cead6e4604494884ec46a3bd9 diff --git a/phd_site.tmpl b/phd_site.tmpl index 9f3bc64..67eb341 100644 --- a/phd_site.tmpl +++ b/phd_site.tmpl @@ -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 @@ -23,8 +22,12 @@ +#if $path.startswith("/Russian/") + +#else - +#end if + $Title #if $Refresh: @@ -50,6 +53,7 @@ #end if + @@ -95,12 +99,6 @@ $style #end for #end if -#if not $root and $path.endswith('index.html') - - - - -#end if $body +#from urllib import quote +#def encode_tag(tag): +$quote(tag.decode('utf-8').encode('koi8-r').replace(' ', '_')) +#end def #def link_tag($tag) -$tag +$tag #end def #if $Tag
@@ -170,14 +172,14 @@ $link_tag($tag) #set $path = $path[:-len("index.html")] #end if #if $path.startswith("/Russian/") -

üÔÁ ÓÔÒÁÎÉÃÁ http://phdru.name$path +

üÔÁ ÓÔÒÁÎÉÃÁ https://phdru.name$path ÂÙÌÁ ÓÇÅÎÅÒÉÒÏ×ÁÎÁ $time.strftime("%d.%m.%Y", $local_time) × $time.strftime("%T", $local_time) ÉÚ ÛÁÂÌÏÎÁ CheetahTemplate $_fileBaseName; îÅËÏÔÏÒÙÅ ÐÒÁ×Á ÚÁÒÅÚÅÒ×ÉÒÏ×ÁÎÙ. ÷Ù ÍÏÖÅÔÅ ÕÚÎÁÔØ Ï ÔÅÈÎÉÞÅÓËÉÈ ÁÓÐÅËÔÁÈ ÜÔÏÇÏ ÓÁÊÔÁ.

#else -

This is the page http://phdru.name$path. +

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.