X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_site.tmpl;h=003c5b90d8255beea7b5717ece9c106197fc6599;hb=ab1417f604f130fd2b5544c6a3db106b58925536;hp=5cfc7719f8ad1cef37ee271a6aa786ee9c1bc948;hpb=253cdee8a17751e898f025cec46d2baaf39381e1;p=phdru.name%2Fphdru.name.git diff --git a/phd_site.tmpl b/phd_site.tmpl index 5cfc771..003c5b9 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 @@ -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.