X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_site.tmpl;h=0388f0bf8b86c863e4e7b22e6daa9bf982fee006;hb=8c0064206e738803c2251b06033d10f7cf922648;hp=5cfc7719f8ad1cef37ee271a6aa786ee9c1bc948;hpb=253cdee8a17751e898f025cec46d2baaf39381e1;p=phdru.name%2Fphdru.name.git diff --git a/phd_site.tmpl b/phd_site.tmpl index 5cfc771..0388f0b 100644 --- a/phd_site.tmpl +++ b/phd_site.tmpl @@ -11,10 +11,10 @@ #attr $Prev = None #attr $Next = None #attr $Last = None -#attr $refresh = None +#attr $Refresh = None #import time #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 = () @@ -27,8 +27,8 @@ $Title -#if $refresh: - +#if $Refresh: + #end if #if $Description @@ -95,7 +95,7 @@ $style #end for #end if -#if not $root +#if not $root and $path.endswith('index.html') @@ -105,13 +105,23 @@ $style +

+#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) +

$body #def link_tag($tag) $tag #end def #if $Tag
-#if isinstance($Tag, basestring) +#from Cheetah.compat import string_type +#if isinstance($Tag, string_type) #if $path.startswith("/Russian/") ôÅÇ: #else @@ -135,10 +145,11 @@ $link_tag($tag) #end if #if $path.startswith("/Russian/")

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

+÷Ù ÍÏÖÅÔÅ ÕÚÎÁÔØ Ï ÔÅÈÎÉÞÅÓËÉÈ +ÁÓÐÅËÔÁÈ ÜÔÏÇÏ ÓÁÊÔÁ.

#else

This is the page http://phdru.name$path. It was generated on $last_modified_en from CheetahTemplate $_fileBaseName.