X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=blobdiff_plain;f=phd_site.tmpl;h=d176f0ee6ee6bd787e1f4d85c0be39a879f4e7b3;hp=5cfc7719f8ad1cef37ee271a6aa786ee9c1bc948;hb=b55ac6ee6b684a24fb5d9affeb30729de5ec1670;hpb=253cdee8a17751e898f025cec46d2baaf39381e1 diff --git a/phd_site.tmpl b/phd_site.tmpl index 5cfc771..d176f0e 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,6 +105,15 @@ $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 @@ -135,10 +144,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.