]> git.phdru.name Git - phdru.name/phdru.name.git/blob - phd_site.tmpl
Fix(cheetah compile): chmod +x
[phdru.name/phdru.name.git] / phd_site.tmpl
1 #encoding koi8-r
2 #extends phd
3 #implements respond
4 #attr $Lead = ''
5 #attr $Title = ''
6 #attr $Description = None
7 #attr $Keywords = None
8 #attr $Copyright = None
9 #attr $Start = None
10 #attr $First = None
11 #attr $Prev = None
12 #attr $Next = None
13 #attr $Last = None
14 #attr $Refresh = None
15 #import time
16 #attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime())
17 #attr $local_time = time.localtime()
18 #attr $styles = None
19 #attr $alternates = None
20 #attr $Tag = ()
21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
22    "http://www.w3.org/TR/html4/loose.dtd">
23 <html>
24 <!-- THIS PAGE IS AUTOMATICALLY GENERATED USING CheetahTemplate. DO NOT EDIT. -->
25 <head>
26 #if $path.startswith("/Russian/")
27 <meta HTTP-Equiv="Content-Type" content="text/html; charset=koi8-r">
28 #else
29 <meta HTTP-Equiv="Content-Type" content="text/html">
30 #end if
31 <meta HTTP-Equiv="Content-Location" content="http://phdru.name$path">
32 <meta HTTP-Equiv="Last-Modified" content="$last_modified_en">
33 <title>$Title</title>
34 #if $Refresh:
35 <meta HTTP-Equiv="Refresh" content="$Refresh">
36 #end if
37 #if $Description
38 <meta name="description" content="$Description">
39 #end if
40 #if $Keywords
41 <meta name="keywords" content="$Keywords">
42 #end if
43 #if $Copyright
44 #set $full_copyright = $copyright($Copyright)
45 #if $path.startswith("/Russian/")
46 #set $author_href = $root + "Russian/"
47 #set $copy_href = $root + "Russian/free.html"
48 #else
49 #set $author_href = $root or "./"
50 #set $copy_href = $root + "free.html"
51 #end if
52 <meta name="author" content="Oleg Broytman">
53 <link rel="author" href="$author_href" title="&copy; $full_copyright PhiloSoft Design">
54 <meta name="copyright" content="&copy; $full_copyright PhiloSoft Design">
55 <link rel="copyright" href="$copy_href" title="&copy; $full_copyright PhiloSoft Design">
56 #end if
57 <link rel="canonical" href="http://phdru.name$path">
58 <link rev="made" href="mailto:phd@phdru.name">
59 <meta name="generator" content="CheetahTemplate">
60 <meta name="robots" content="index, follow">
61 #if $root
62 #if $path.endswith('index.html')
63 <link rel="up" href="../">
64 #else
65 <link rel="up" href="./">
66 #end if
67 #end if
68 #if $Start
69 <link rel="start" href="$Start">
70 #elif not $path.endswith('index.html')
71 <link rel="start" href="./">
72 #end if
73 #if $First
74 <link rel="first" href="$First">
75 #end if
76 #if $Prev
77 <link rel="prev" href="$Prev">
78 #end if
79 #if $Next
80 <link rel="next" href="$Next">
81 #end if
82 #if $Last
83 <link rel="last" href="$Last">
84 #end if
85 #if $path != "/search.html"
86 <link rel="search" type="text/html" href="${root}search.html">
87 #end if
88 <link rel="stylesheet" type="text/css" media="screen" href="${root}phd.css">
89 #if $styles
90 #for $media, $style in $styles
91 <STYLE type="text/css" media="$media">
92 <!--
93 $style
94 --></STYLE>
95 #end for
96 #end if
97 #if $alternates
98 #for $title, $type, $href in $alternates
99 <link rel="alternate" title="$title" type="$type" href="$href">
100 #end for
101 #end if
102 <link rel="shortcut icon" href="${root}favicon.ico">
103 #if not $root and $path.endswith('index.html')
104 <link rel="openid.delegate" href="http://phdru.name/">
105 <link rel="openid2.local_id" href="http://phdru.name/">
106 <link rel="openid.server" href="http://home.phdru.name/cgi-bin/poit.py">
107 <link rel="openid2.provider" href="http://home.phdru.name/cgi-bin/poit.py">
108 #end if
109 <meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
110 </head>
111 <body bgcolor="#CCCCCC" text="#000000"
112       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
113 <p class="small">
114 #set $path_components = $path.split('/')[1:-1]
115 #set $breadcrumbs = ['<a href="' + $root + '">phdru.name</a>']
116 #for $i in range(len($path_components))
117 #set $subpath = '/'.join($path_components[:i+1])
118 #silent $breadcrumbs.append('<a href="' + $root + $subpath + '/">' + $path_components[i]+ '</a>')
119 #end for
120 #echo " / ".join($breadcrumbs)
121 #if $path.startswith("/Russian/blog/")
122 #set $prev_key, $prev_blog_post, $next_key, $next_blog_post = $find_near_blog_posts()
123 #if $prev_blog_post
124 #set $prev_href = $root + "Russian/blog/" + '/'.join($prev_key + ($prev_blog_post[0].replace('.tmpl', '.html'),))
125 #set $prev_title = $prev_blog_post[1].decode('koi8-r')
126 #end if
127 #if $next_blog_post
128 #set $next_href = $root + "Russian/blog/" + '/'.join($next_key + ($next_blog_post[0].replace('.tmpl', '.html'),))
129 #set $next_title = $next_blog_post[1].decode('koi8-r')
130 #end if
131 <br>
132 <table width="100%">
133   <tr>
134 #if $prev_blog_post
135     <td style="text-align: left" width="50%">&lt;-- <a href="$prev_href">$prev_title</a></td>
136 #else
137     <td style="text-align: left" width="50%">&nbsp;</td>
138 #end if
139 #if $next_blog_post
140     <td style="text-align: right" width="50%"><a href="$next_href">$next_title</a> --&gt;</td>
141 #else
142     <td style="text-align: right" width="50%">&nbsp;</td>
143 #end if
144   </tr>
145 </table>
146 #end if
147 </p>
148 $body
149 #def link_tag($tag)
150 <a href="../../../tags/${tag}.html">$tag</a>
151 #end def
152 #if $Tag
153 <hr width="90%">
154 #from Cheetah.compat import string_type
155 #if isinstance($Tag, string_type)
156 #if $path.startswith("/Russian/")
157 Тег:
158 #else
159 Tag:
160 #end if
161 $link_tag($Tag)
162 #else
163 #if $path.startswith("/Russian/")
164 Теги:
165 #else
166 Tags:
167 #end if
168 #for $tag in $Tag
169 $link_tag($tag)
170 #end for
171 #end if
172 #end if
173 <hr width="90%">
174 #if $path.endswith("index.html")
175 #set $path = $path[:-len("index.html")]
176 #end if
177 #if $path.startswith("/Russian/")
178 <p class="head" style="font-size: 60%">Эта страница <a href="http://phdru.name$path">http://phdru.name$path</a>
179 была сгенерирована $time.strftime("%d.%m.%Y", $local_time) в $time.strftime("%T", $local_time) из шаблона CheetahTemplate
180 <a href="$_fileBaseName">$_fileBaseName</a>;
181 <a href="${root}Russian/free.html">Некоторые права зарезервированы</a>.
182 Вы можете узнать <a href="${root}about/">о</a> <a href="${root}about/technical.html">технических</a>
183 аспектах этого сайта.</p>
184 #else
185 <p class="head" style="font-size: 60%">This is the page <a href="http://phdru.name$path">http://phdru.name$path</a>.
186 It was generated on $last_modified_en from CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>.
187 <a href="./${root}free.html">Some rights are reserved</a>.
188 Read more <a href="${root}about/">about</a> <a href="${root}about/technical.html">technical</a> aspects of the site.
189 </p>
190 #end if
191 </body>
192 </html>#slurp