]> 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 <meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
103 </head>
104 <body bgcolor="#CCCCCC" text="#000000"
105       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
106 <p class="small">
107 #set $path_components = $path.split('/')[1:-1]
108 #set $breadcrumbs = ['<a href="' + $root + '">phdru.name</a>']
109 #for $i in range(len($path_components))
110 #set $subpath = '/'.join($path_components[:i+1])
111 #silent $breadcrumbs.append('<a href="' + $root + $subpath + '/">' + $path_components[i]+ '</a>')
112 #end for
113 #echo " / ".join($breadcrumbs)
114 #if $path.startswith("/Russian/blog/")
115 #set $prev_key, $prev_blog_post, $next_key, $next_blog_post = $find_near_blog_posts()
116 #if $prev_blog_post
117 #set $prev_href = $root + "Russian/blog/" + '/'.join($prev_key + ($prev_blog_post[0].replace('.tmpl', '.html'),))
118 #set $prev_title = $prev_blog_post[1].decode('koi8-r')
119 #end if
120 #if $next_blog_post
121 #set $next_href = $root + "Russian/blog/" + '/'.join($next_key + ($next_blog_post[0].replace('.tmpl', '.html'),))
122 #set $next_title = $next_blog_post[1].decode('koi8-r')
123 #end if
124 <br>
125 <table width="100%">
126   <tr>
127 #if $prev_blog_post
128     <td style="text-align: left" width="50%">&lt;-- <a href="$prev_href">$prev_title</a></td>
129 #else
130     <td style="text-align: left" width="50%">&nbsp;</td>
131 #end if
132 #if $next_blog_post
133     <td style="text-align: right" width="50%"><a href="$next_href">$next_title</a> --&gt;</td>
134 #else
135     <td style="text-align: right" width="50%">&nbsp;</td>
136 #end if
137   </tr>
138 </table>
139 #end if
140 </p>
141 $body
142 #def link_tag($tag)
143 <a href="../../../tags/${tag}.html">$tag</a>
144 #end def
145 #if $Tag
146 <hr width="90%">
147 #from Cheetah.compat import string_type
148 #if isinstance($Tag, string_type)
149 #if $path.startswith("/Russian/")
150 Тег:
151 #else
152 Tag:
153 #end if
154 $link_tag($Tag)
155 #else
156 #if $path.startswith("/Russian/")
157 Теги:
158 #else
159 Tags:
160 #end if
161 #for $tag in $Tag
162 $link_tag($tag)
163 #end for
164 #end if
165 #end if
166 <hr width="90%">
167 #if $path.endswith("index.html")
168 #set $path = $path[:-len("index.html")]
169 #end if
170 #if $path.startswith("/Russian/")
171 <p class="head" style="font-size: 60%">Эта страница <a href="https://phdru.name$path">https://phdru.name$path</a>
172 была сгенерирована $time.strftime("%d.%m.%Y", $local_time) в $time.strftime("%T", $local_time) из шаблона CheetahTemplate
173 <a href="$_fileBaseName">$_fileBaseName</a>;
174 <a href="${root}Russian/free.html">Некоторые права зарезервированы</a>.
175 Вы можете узнать <a href="${root}about/">о</a> <a href="${root}about/technical.html">технических</a>
176 аспектах этого сайта.</p>
177 #else
178 <p class="head" style="font-size: 60%">This is the page <a href="https://phdru.name$path">https://phdru.name$path</a>.
179 It was generated on $last_modified_en from CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>.
180 <a href="./${root}free.html">Some rights are reserved</a>.
181 Read more <a href="${root}about/">about</a> <a href="${root}about/technical.html">technical</a> aspects of the site.
182 </p>
183 #end if
184 </body>
185 </html>#slurp