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