| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) 2010–2024 |
| 3 |
# This file is distributed under the same license as the PELICAN package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024. |
| 5 |
# |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: PELICAN 4\n" |
| 9 |
"Report-Msgid-Bugs-To: \n" |
| 10 |
"POT-Creation-Date: 2024-06-25 20:36+0800\n" |
| 11 |
"PO-Revision-Date: 2024-06-26 19:00+0800\n" |
| 12 |
"Last-Translator: GeorgeHu <[email protected]>\n" |
| 13 |
"Language: zh_CN\n" |
| 14 |
"Language-Team: \n" |
| 15 |
"Plural-Forms: nplurals=1; plural=0;\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=utf-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Generated-By: Babel 2.15.0\n" |
| 20 |
|
| 21 |
#: ../../themes.rst:4 89902fe106274689a45bfad9447f4485 |
| 22 |
msgid "Themes" |
| 23 |
msgstr "主题" |
| 24 |
|
| 25 |
#: ../../themes.rst:6 877321a191544e6db8b1fe257b7bfc82 |
| 26 |
msgid "" |
| 27 |
"There is a community-managed repository of `Pelican Themes`_ for people " |
| 28 |
"to share and use." |
| 29 |
msgstr "" |
| 30 |
"有一个由社区管理的主题仓库 `Pelican Themes`_ 供大家使用。" |
| 31 |
|
| 32 |
#: ../../themes.rst:9 6f0fdcf7ea28413482621e993a00aba2 |
| 33 |
msgid "" |
| 34 |
"Please note that while we do our best to review and merge theme " |
| 35 |
"contributions, they are submitted by the Pelican community and thus may " |
| 36 |
"have varying levels of support and interoperability." |
| 37 |
msgstr "" |
| 38 |
"请注意,虽然我们已经尽全力审查与合并主题,但是由于他们是由社区提交的,因此" |
| 39 |
"支持性和互操作性各有不同。" |
| 40 |
|
| 41 |
#: ../../themes.rst:14 f4083056816746ad8779108e8605f782 |
| 42 |
msgid "Creating Themes" |
| 43 |
msgstr "创建主题" |
| 44 |
|
| 45 |
#: ../../themes.rst:16 11544ff05900447c9d89b7e4b762b456 |
| 46 |
msgid "" |
| 47 |
"To generate its HTML output, Pelican uses the `Jinja " |
| 48 |
"<https://palletsprojects.com/p/jinja/>`_ templating engine due to its " |
| 49 |
"flexibility and straightforward syntax. If you want to create your own " |
| 50 |
"theme, feel free to take inspiration from the `\"simple\" theme " |
| 51 |
"<https://github.com/getpelican/pelican/tree/main/pelican/themes/simple/templates>`_." |
| 52 |
msgstr "" |
| 53 |
"Pelican使用 `Jinja <https://palletsprojects.com/p/jinja/>`_ 来生成HTML。" |
| 54 |
"如果你想要创建你自己的主题,请从 `\"simple\" 主题 " |
| 55 |
"<https://github.com/getpelican/pelican/tree/master/pelican/themes/simple/templates>`_ " |
| 56 |
"中找寻灵感。" |
| 57 |
|
| 58 |
#: ../../themes.rst:22 646df766f1a64f6e89ba22466a9a57ee |
| 59 |
msgid "" |
| 60 |
"To generate your site using a theme you have created (or downloaded " |
| 61 |
"manually and then modified), you can specify that theme via the ``-t`` " |
| 62 |
"flag::" |
| 63 |
msgstr "" |
| 64 |
"要使用你自己创建的主题生成站点,你可以通过命令行中的 ``-t`` 参数指定主题:" |
| 65 |
|
| 66 |
#: ../../themes.rst:27 f3b0f229f56444d0b09f27dcc5076398 |
| 67 |
msgid "" |
| 68 |
"If you'd rather not specify the theme on every invocation, you can define" |
| 69 |
" ``THEME`` in your settings to point to the location of your preferred " |
| 70 |
"theme." |
| 71 |
msgstr "" |
| 72 |
"如果你不希望每次都通过命令行手动指定主题,你可以在配置文件中定义 ``THEME`` " |
| 73 |
"来指定你希望使用的主题的位置。" |
| 74 |
|
| 75 |
#: ../../themes.rst:32 b8028cb48f844e16b49bd30e6f7c7ec5 |
| 76 |
msgid "Structure" |
| 77 |
msgstr "结构" |
| 78 |
|
| 79 |
#: ../../themes.rst:34 a3fcbbe24e4c4448b09db74e7140dd52 |
| 80 |
msgid "To make your own theme, you must follow the following structure::" |
| 81 |
msgstr "你需要遵循下面的结构来制作你自己的主题:" |
| 82 |
|
| 83 |
#: ../../themes.rst:52 153830a0dc1c47358f1fd67c11174676 |
| 84 |
msgid "" |
| 85 |
"`static` contains all the static assets, which will be copied to the " |
| 86 |
"output `theme` folder. The above filesystem layout includes CSS and image" |
| 87 |
" folders, but those are just examples. Put what you need here." |
| 88 |
msgstr "" |
| 89 |
"`static` 文件夹包含了所有静态资源,会被复制输出到 `theme` 文件夹中。上面的文件夹" |
| 90 |
"布局结构包括了CSS和image文件夹,但是这只是举个例子。你可以根据需求安排文件。" |
| 91 |
|
| 92 |
#: ../../themes.rst:56 e923579cd7b74cdc94f43d4da4e47b2e |
| 93 |
msgid "" |
| 94 |
"`templates` contains all the templates that will be used to generate the " |
| 95 |
"content. The template files listed above are mandatory; you can add your " |
| 96 |
"own templates if it helps you keep things organized while creating your " |
| 97 |
"theme." |
| 98 |
msgstr "" |
| 99 |
"`templates` 文件夹包含了需要用到的所有模板文件,这些模板文件会用于生成网站内容。" |
| 100 |
"上面列出的模板文件都是必须有的。当然,你可以添加一些其他的模板来帮助组织主题文件。" |
| 101 |
|
| 102 |
#: ../../themes.rst:64 354197c97b424a53b682d31d2432bbd7 |
| 103 |
msgid "Templates and Variables" |
| 104 |
msgstr "模板和变量" |
| 105 |
|
| 106 |
#: ../../themes.rst:66 263ff11382b1433082f35b605ed76f4b |
| 107 |
msgid "" |
| 108 |
"The idea is to use a simple syntax that you can embed into your HTML " |
| 109 |
"pages. This document describes which templates should exist in a theme, " |
| 110 |
"and which variables will be passed to each template at generation time." |
| 111 |
msgstr "" |
| 112 |
"你可以将一些简单的语法嵌入到HTML文件中。以下文档描述了哪些模板需要存在于主题中," |
| 113 |
"以及有哪些变量可以在模板中使用。" |
| 114 |
|
| 115 |
#: ../../themes.rst:70 b511ed5df3fc4f75a8e9ca6e874b6cf7 |
| 116 |
msgid "" |
| 117 |
"All templates will receive the variables defined in your settings file, " |
| 118 |
"as long as they are in all-caps. You can access them directly." |
| 119 |
msgstr "" |
| 120 |
"所有模板都能接收到配置文件中定义的变量,变量名都是全大写的,可以直接使用。" |
| 121 |
|
| 122 |
#: ../../themes.rst:77 903d9890350a4b08a3c5e11bdc202d10 |
| 123 |
msgid "Common Variables" |
| 124 |
msgstr "通用变量" |
| 125 |
|
| 126 |
#: ../../themes.rst:79 fa18fc2c334d4b51ae7545d24a8b5df5 |
| 127 |
msgid "All of these settings will be available to all templates." |
| 128 |
msgstr "下列变量在所有模板中均可使用。" |
| 129 |
|
| 130 |
#: ../../themes.rst:82 ../../themes.rst:170 ../../themes.rst:199 |
| 131 |
#: ../../themes.rst:233 ../../themes.rst:266 ../../themes.rst:306 |
| 132 |
#: ../../themes.rst:322 ../../themes.rst:355 1a4a93014c47420d8957a7f2209d6525 |
| 133 |
#: 2d1889e9a23a4cb298d38366289f381d 63553de1af084662a41fded0a700913d |
| 134 |
#: 87ec83ae24564eaf831ada4f4aab01a3 8907d23ec9f94b5b83a9bdd717fc95bd |
| 135 |
#: 951f8b457243424da836ecf85c5db0e1 a3866a27423c4782a6d47b28d41e1144 |
| 136 |
#: eee781bef37d4e94a9796ff50dd63447 |
| 137 |
msgid "Variable" |
| 138 |
msgstr "变量名" |
| 139 |
|
| 140 |
#: ../../themes.rst:82 ../../themes.rst:170 ../../themes.rst:199 |
| 141 |
#: ../../themes.rst:233 ../../themes.rst:266 ../../themes.rst:306 |
| 142 |
#: ../../themes.rst:322 ../../themes.rst:355 ../../themes.rst:446 |
| 143 |
#: ../../themes.rst:490 ../../themes.rst:509 17384d55be144a6ab765864d5833f96f |
| 144 |
#: 2e69f59326a04747b7655b61a713bcf5 46ecfcac4e0b48879a665f5ded2abc4c |
| 145 |
#: 4b4d47cfd511455db6eb2793e60907b6 6b9bab6f2603419da0032456f90e326a |
| 146 |
#: 9cadd069ae2b471eaaeeac1281b7f88d af7a426781734d61a2f1c95aff008adc |
| 147 |
#: c1274b2e4b5442d7b9774ffacdd22c1a f53c09af9fd642f7a26552ada70160d8 |
| 148 |
#: f9ffc9bb411340199e68bb28e1c38e97 ff0cc823d5f44c71be4d9dfb09198ae5 |
| 149 |
msgid "Description" |
| 150 |
msgstr "描述" |
| 151 |
|
| 152 |
#: ../../themes.rst:84 92684afe53b74e5eacca15acf5567c1c |
| 153 |
msgid "output_file" |
| 154 |
msgstr "output_file" |
| 155 |
|
| 156 |
#: ../../themes.rst:84 9534d42aed3a4f5bbcefb8f9aebefc9e |
| 157 |
msgid "" |
| 158 |
"The name of the file currently being generated. For instance, when " |
| 159 |
"Pelican is rendering the home page, output_file will be \"index.html\"." |
| 160 |
msgstr "" |
| 161 |
"当前正在生成的文件名。例如在Pelican渲染主页时,此变量的值就是“index.html”。" |
| 162 |
|
| 163 |
#: ../../themes.rst:87 ../../themes.rst:202 ../../themes.rst:236 |
| 164 |
#: ../../themes.rst:325 ../../themes.rst:406 5e810b19b7934988905a23189aa25584 |
| 165 |
#: 7ce75b9ff72a41368aa4d85147b3ee01 b304eca8c6ab4a97b9f9816e48e785a3 |
| 166 |
#: b4b801b67a5f4a038664df8273752437 f6d5de62ec124133abd3e71d052076c9 |
| 167 |
msgid "articles" |
| 168 |
msgstr "articles" |
| 169 |
|
| 170 |
#: ../../themes.rst:87 a37338288479498dabc0d35a3499ae2a |
| 171 |
msgid "" |
| 172 |
"The list of articles, ordered descending by date. All the elements are " |
| 173 |
"`Article` objects, so you can access their attributes (e.g. title, " |
| 174 |
"summary, author etc.). Sometimes this is shadowed (for instance, in the " |
| 175 |
"tags page). You will then find info about it in the `all_articles` " |
| 176 |
"variable." |
| 177 |
msgstr "" |
| 178 |
"文章列表,以日期降序排列。所有元素都是 `Article` 对象,因此你可以访问 `Article` " |
| 179 |
"对象的属性(例如title、summary、author等)。有时候此变量是隐藏的(例如在标签页面中)。" |
| 180 |
"但仍可以在 `all_articles` 变量中找到相关信息。" |
| 181 |
|
| 182 |
#: ../../themes.rst:93 ../../themes.rst:203 ../../themes.rst:237 |
| 183 |
#: ../../themes.rst:326 ../../themes.rst:408 100c5d8c8602411da08bfcde279249f2 |
| 184 |
#: 24ff711ecb9e4308b52d404b822244f3 389e8343632d48048b4ced0128d20011 |
| 185 |
#: 3d9a59ea4c7a428998e0bb4df84c6576 b0fe593f0e774b7a9b33ff8e44c8284a |
| 186 |
msgid "dates" |
| 187 |
msgstr "dates" |
| 188 |
|
| 189 |
#: ../../themes.rst:93 957d856345744280bb8cde05d15b934c |
| 190 |
msgid "The same list of articles, but ordered by date, ascending." |
| 191 |
msgstr "和articles相同的文章列表,但是以日期升序排列" |
| 192 |
|
| 193 |
#: ../../themes.rst:95 850f75175d0f44c9987b95b244e0e085 |
| 194 |
msgid "hidden_articles" |
| 195 |
msgstr "hidden_articles" |
| 196 |
|
| 197 |
#: ../../themes.rst:95 2853b0eb27e241c78c5ad83d8d502905 |
| 198 |
msgid "The list of hidden articles" |
| 199 |
msgstr "处于隐藏状态的文章的列表" |
| 200 |
|
| 201 |
#: ../../themes.rst:96 68baf2e00aeb4fbbb9b18c562f5215de |
| 202 |
msgid "drafts" |
| 203 |
msgstr "drafts" |
| 204 |
|
| 205 |
#: ../../themes.rst:96 3eefce5813424f4b8a5edb283ec34699 |
| 206 |
msgid "The list of draft articles" |
| 207 |
msgstr "处于草稿状态的文章的列表" |
| 208 |
|
| 209 |
#: ../../themes.rst:97 2bde499d530048a8ba3e5fb72a4a1840 |
| 210 |
msgid "period_archives" |
| 211 |
msgstr "period_archives" |
| 212 |
|
| 213 |
#: ../../themes.rst:97 afad8caed5294d4bae4922b2674806ff |
| 214 |
msgid "" |
| 215 |
"A dictionary containing elements related to time-period archives (if " |
| 216 |
"enabled). See the section :ref:`Listing and Linking to Period Archives " |
| 217 |
"<period_archives_variable>` for details." |
| 218 |
msgstr "" |
| 219 |
"一个字典,包含与时间段存档相关的元素(若启用了时间段存档)。详见 " |
| 220 |
":ref:`时间段存档的列表和链接 <period_archives_variable>`" |
| 221 |
|
| 222 |
#: ../../themes.rst:101 ../../themes.rst:450 0b796b141cc24e34b57bc554273720c1 |
| 223 |
#: d5bf3dd243d04c55ace1738de4d5b81b |
| 224 |
msgid "authors" |
| 225 |
msgstr "authors" |
| 226 |
|
| 227 |
#: ../../themes.rst:101 10010e1b527e4eedb7477d52bbf0ed94 |
| 228 |
msgid "" |
| 229 |
"A list of (author, articles) tuples, containing all the authors and " |
| 230 |
"corresponding articles (values)" |
| 231 |
msgstr "" |
| 232 |
"元组(author, articles)的列表,包含所有作者及对应文章。" |
| 233 |
|
| 234 |
#: ../../themes.rst:103 7bb90c8b99344911b68de2dc8ba1a9d7 |
| 235 |
msgid "categories" |
| 236 |
msgstr "categories" |
| 237 |
|
| 238 |
#: ../../themes.rst:103 becaee92fa434a47bb2ffa4ba6d3d863 |
| 239 |
msgid "" |
| 240 |
"A list of (category, articles) tuples, containing all the categories and " |
| 241 |
"corresponding articles (values)" |
| 242 |
msgstr "" |
| 243 |
"元组(category, articles)的列表,包含所有分类及对应文章" |
| 244 |
|
| 245 |
#: ../../themes.rst:105 ../../themes.rst:470 ../../themes.rst:529 |
| 246 |
#: 9d21fa3040b14b91a47dff071caae024 b8597a5c585e43a0bb544bfe8cf9bd26 |
| 247 |
#: d692f555b4ea461ca4d8c0c65a67f21a |
| 248 |
msgid "tags" |
| 249 |
msgstr "tags" |
| 250 |
|
| 251 |
#: ../../themes.rst:105 0c0424ec68a74f578e271d0b1fe44b28 |
| 252 |
msgid "" |
| 253 |
"A list of (tag, articles) tuples, containing all the tags and " |
| 254 |
"corresponding articles (values)" |
| 255 |
msgstr "" |
| 256 |
"元组(tag, articles)的列表,包含所有标签及对应文章" |
| 257 |
|
| 258 |
#: ../../themes.rst:107 196d2ef3131b4ab2b7e90a43d8c17dcd |
| 259 |
msgid "pages" |
| 260 |
msgstr "pages" |
| 261 |
|
| 262 |
#: ../../themes.rst:107 abb2b6303bb44b3e9335fcc9bfa2a704 |
| 263 |
msgid "The list of pages" |
| 264 |
msgstr "页面的列表" |
| 265 |
|
| 266 |
#: ../../themes.rst:108 14a71679646448d59f6ccc2c63c2cc8b |
| 267 |
msgid "hidden_pages" |
| 268 |
msgstr "hidden_pages" |
| 269 |
|
| 270 |
#: ../../themes.rst:108 dfc32fdbe91240a78c15ff048e2f58ce |
| 271 |
msgid "The list of hidden pages" |
| 272 |
msgstr "处于隐藏状态的页面的列表" |
| 273 |
|
| 274 |
#: ../../themes.rst:109 78a644f88301408e977449a4fc0ffe12 |
| 275 |
msgid "draft_pages" |
| 276 |
msgstr "draft_pages" |
| 277 |
|
| 278 |
#: ../../themes.rst:109 7418727938f343da8cb0071239f67d71 |
| 279 |
msgid "The list of draft pages" |
| 280 |
msgstr "处于草稿状态的页面的列表" |
| 281 |
|
| 282 |
#: ../../themes.rst:114 04e0bd5e7d504ff8975c8492ce8c250a |
| 283 |
msgid "Sorting" |
| 284 |
msgstr "排序" |
| 285 |
|
| 286 |
#: ../../themes.rst:116 edae254af6974908bbeb7125dca0c708 |
| 287 |
msgid "" |
| 288 |
"URL wrappers (currently categories, tags, and authors), have comparison " |
| 289 |
"methods that allow them to be easily sorted by name::" |
| 290 |
msgstr "" |
| 291 |
"URL包装器(分类、标签、作者),都拥有比较方法,使其易于按名称排序:" |
| 292 |
|
| 293 |
#: ../../themes.rst:121 878bb8a3a3064552b7608444cb419856 |
| 294 |
msgid "" |
| 295 |
"If you want to sort based on different criteria, `Jinja's sort command`__" |
| 296 |
" has a number of options." |
| 297 |
msgstr "" |
| 298 |
"如果你想要以不同条件进行排序,可以使用 `Jinja的排序命令`__ ,其中有丰富的选项。" |
| 299 |
|
| 300 |
#: ../../themes.rst:128 3f3c857d79ed447f9dd3f5ce91082747 |
| 301 |
msgid "Date Formatting" |
| 302 |
msgstr "日期格式" |
| 303 |
|
| 304 |
#: ../../themes.rst:130 37d3f94188aa435297071a869bfdca96 |
| 305 |
msgid "" |
| 306 |
"Pelican formats the date according to your settings and locale " |
| 307 |
"(``DATE_FORMATS``/``DEFAULT_DATE_FORMAT``) and provides a ``locale_date``" |
| 308 |
" attribute. On the other hand, the ``date`` attribute will be a " |
| 309 |
"`datetime`_ object. If you need custom formatting for a date different " |
| 310 |
"than your settings, use the Jinja filter ``strftime`` that comes with " |
| 311 |
"Pelican. Usage is same as Python `strftime`_ format, but the filter will " |
| 312 |
"do the right thing and format your date according to the locale given in " |
| 313 |
"your settings::" |
| 314 |
msgstr "" |
| 315 |
"Pelican会根据设置和地区( ``DATE_FORMATS``/``DEFAULT_DATE_FORMAT`` )对日期" |
| 316 |
"进行格式化,同时还会提供一个 ``locale_date`` 属性。 ``date`` 属性以 `datetime`_ " |
| 317 |
"类表示。如果你需要使用与设置中不同的自定义日期格式,使用Jinja中的 ``strftime`` " |
| 318 |
"过滤器即可。用法Python中的 `strftime`_ 相同,但是过滤器会根据设置中给出的地区对" |
| 319 |
"日期进行格式化:" |
| 320 |
|
| 321 |
#: ../../themes.rst:144 cc5bc390c54b4c4f96641b2d8efe2169 |
| 322 |
msgid "Checking Loaded Plugins" |
| 323 |
msgstr "检测已加载的插件" |
| 324 |
|
| 325 |
#: ../../themes.rst:146 2805eea94378479eafe1f9e214875f44 |
| 326 |
msgid "" |
| 327 |
"Pelican provides a ``plugin_enabled`` Jinja test for checking if a " |
| 328 |
"certain plugin is enabled. This test accepts a plugin name as a string " |
| 329 |
"and will return a Boolean. Namespace plugins can be specified by full " |
| 330 |
"name (``pelican.plugins.plugin_name``) or short name (``plugin_name``). " |
| 331 |
"The following example uses the ``webassets`` plugin to minify CSS if the " |
| 332 |
"plugin is enabled and otherwise falls back to regular CSS::" |
| 333 |
msgstr "" |
| 334 |
"Pelican 提供了一个名为 ``plugin_enabled`` 的Jinja test,可用于检测某个插件是否启用。" |
| 335 |
"此test以字符串形式接受一个插件名称,并且返回一个布尔值。命名空间插件可以通过全名" |
| 336 |
"( ``pelican.plugins.plugin_name`` )或者短名称( ``plugin_name`` )指定。" |
| 337 |
"下面的例子中通过 ``webassets`` 插件来减小CSS的体积,但若此插件未启用,则回滚回普通的CSS:" |
| 338 |
|
| 339 |
#: ../../themes.rst:162 f31869529aef47a28224e3da3bc0c702 |
| 340 |
msgid "index.html" |
| 341 |
msgstr "index.html" |
| 342 |
|
| 343 |
#: ../../themes.rst:164 d412aecaa8e34b2ca56032be8711b258 |
| 344 |
msgid "This is the home page or index of your blog, generated at ``index.html``." |
| 345 |
msgstr "站点的主页,可以理解为推文的索引页,生成为 ``index.html`` 。" |
| 346 |
|
| 347 |
#: ../../themes.rst:166 396a268629374d1aaef9857ccff9ee53 |
| 348 |
msgid "" |
| 349 |
"If pagination is active, subsequent pages will reside in " |
| 350 |
"``index{number}.html``." |
| 351 |
msgstr "" |
| 352 |
"如果开启了分页功能,后续的页面会以 ``index{number}.html`` 的形式生成。" |
| 353 |
|
| 354 |
#: ../../themes.rst:172 ../../themes.rst:205 ../../themes.rst:239 |
| 355 |
#: ../../themes.rst:328 08f6e73beb544181b9b2627ad68dbbfe |
| 356 |
#: 244d220cd8684bb68489bf61227f87b5 34b8185111f54d8fbffa9ac5a87302a8 |
| 357 |
#: d7bcb30486284e9dac239a40d4b9f229 |
| 358 |
msgid "articles_paginator" |
| 359 |
msgstr "articles_paginator" |
| 360 |
|
| 361 |
#: ../../themes.rst:172 ../../themes.rst:205 ../../themes.rst:239 |
| 362 |
#: ../../themes.rst:328 3fa810e9ae1d4dc1839754210e5d2570 |
| 363 |
#: 9554b801f6df475caedff0345c5dfb93 bbc15c5dfe934bcd9e5f258f2008af11 |
| 364 |
#: e5952c856b7d4670a93a99863ef94c49 |
| 365 |
msgid "A paginator object for the list of articles" |
| 366 |
msgstr "一个分页器对象,其中存放着文章列表" |
| 367 |
|
| 368 |
#: ../../themes.rst:173 ../../themes.rst:206 ../../themes.rst:240 |
| 369 |
#: ../../themes.rst:329 2362ac4e51264ba8b1a38272414c026c |
| 370 |
#: 755bbbd447fe420eb124c1dcbfecd767 7eaa5ec86823488fa38009e3a5bf1756 |
| 371 |
#: 82eef974e6c2428eb29528b9a6cae6d3 |
| 372 |
msgid "articles_page" |
| 373 |
msgstr "articles_page" |
| 374 |
|
| 375 |
#: ../../themes.rst:173 ../../themes.rst:206 ../../themes.rst:240 |
| 376 |
#: ../../themes.rst:329 283875f54861414396ce8695d3002f7d |
| 377 |
#: b7400c136a8340df9eaa5e5f29b81766 ba00d04cfe6c4040bf704c17be73470f |
| 378 |
#: cdb81b11ea1a44d2890915c496eada40 |
| 379 |
msgid "The current page of articles" |
| 380 |
msgstr "当前分页包含的文章的列表" |
| 381 |
|
| 382 |
#: ../../themes.rst:174 ../../themes.rst:207 ../../themes.rst:241 |
| 383 |
#: ../../themes.rst:330 4fd0b5d101a74f23b8fb32e95b35af7f |
| 384 |
#: 6d6631ebf17e436ebd910cb778fa47e6 8869fe25c487475ea64c0ab80ee8c48b |
| 385 |
#: efd8e4bfc9234996870b90026c00f695 |
| 386 |
msgid "articles_previous_page" |
| 387 |
msgstr "articles_previous_page" |
| 388 |
|
| 389 |
#: ../../themes.rst:174 ../../themes.rst:207 ../../themes.rst:241 |
| 390 |
#: ../../themes.rst:330 228a67aba662491bb3e8b8f53d936921 |
| 391 |
#: 4e0499da01e146d78c4c50ab293ceaec a9c5b7f1fb854f359f596f2de65510e9 |
| 392 |
#: eaeb09fc611545ec87fbdbe32b7da599 |
| 393 |
msgid "The previous page of articles (``None`` if page does not exist)" |
| 394 |
msgstr "前一分页包含的文章的列表(若没有前一页,此变量值为 ``None`` )" |
| 395 |
|
| 396 |
#: ../../themes.rst:176 ../../themes.rst:209 ../../themes.rst:243 |
| 397 |
#: ../../themes.rst:332 44e81860c57c4136953fec9d390a1896 |
| 398 |
#: 92e4766edf0d4f1a94801521a3ccc8c6 c7f7e0e63a5e4b3f838df1082628f71f |
| 399 |
#: eb4130c14eef4dc59383097aa4bfd9cc |
| 400 |
msgid "articles_next_page" |
| 401 |
msgstr "articles_next_page" |
| 402 |
|
| 403 |
#: ../../themes.rst:176 ../../themes.rst:209 ../../themes.rst:243 |
| 404 |
#: ../../themes.rst:332 0aaccba1bbd843f3a13da1b8b206cb47 |
| 405 |
#: 87d1cad4927745329bf74840147f3cae 9df65206ff0040caae56f0d2185e63d4 |
| 406 |
#: a38e11e768ec40acafdc943d00fd1c39 |
| 407 |
msgid "The next page of articles (``None`` if page does not exist)" |
| 408 |
msgstr "后一分页包含的文章的列表(若没有后一页,此变量值为 ``None`` )" |
| 409 |
|
| 410 |
#: ../../themes.rst:178 ../../themes.rst:211 ../../themes.rst:245 |
| 411 |
#: ../../themes.rst:334 06c22ce247524bc59649f37ac570360d |
| 412 |
#: 3f913f031d1544049d4204b5c786e8eb 80e9ef1975ac43cb87b1cb1e2292a15d |
| 413 |
#: 9d50cd6bc33542ff9ec268664242cdac |
| 414 |
msgid "dates_paginator" |
| 415 |
msgstr "dates_paginator" |
| 416 |
|
| 417 |
#: ../../themes.rst:178 ../../themes.rst:211 470234ce4ff84c1282773c5e074a0984 |
| 418 |
#: 66b61e29b0d94312be1924ffbf6a76f0 |
| 419 |
msgid "A paginator object for the article list, ordered by date, ascending." |
| 420 |
msgstr "分页器对象,存放着以日期正序排列的文章列表。" |
| 421 |
|
| 422 |
#: ../../themes.rst:180 ../../themes.rst:213 ../../themes.rst:247 |
| 423 |
#: ../../themes.rst:336 06688dad88b84be0a1b8a77904d3e36c |
| 424 |
#: 4c3336d0cc6146c0854e1a3b0a01226a c22fbf78288d40c2a7f53a0e05827bc9 |
| 425 |
#: cbead4319b8449948907728edd1563e5 |
| 426 |
msgid "dates_page" |
| 427 |
msgstr "dates_page" |
| 428 |
|
| 429 |
#: ../../themes.rst:180 ../../themes.rst:213 332ab164d0d14965a064f41289fd8b5a |
| 430 |
#: 9c0313b487514c1a8ea9ed741a022a98 |
| 431 |
msgid "The current page of articles, ordered by date, ascending." |
| 432 |
msgstr "以日期正序(从旧到新)排列时,当前分页包含的文章的列表。" |
| 433 |
|
| 434 |
#: ../../themes.rst:182 ../../themes.rst:215 ../../themes.rst:249 |
| 435 |
#: ../../themes.rst:338 225a16b1ca764c1297a6126e82294ea5 |
| 436 |
#: 25b7b90357db4d999771a5dbb3ee46f0 f42233112a7940cfa0e448f72c254385 |
| 437 |
#: fd276760afc04d66a3abb295db0c491b |
| 438 |
msgid "dates_previous_page" |
| 439 |
msgstr "dates_previous_page" |
| 440 |
|
| 441 |
#: ../../themes.rst:182 ../../themes.rst:215 ../../themes.rst:249 |
| 442 |
#: ../../themes.rst:338 058e893b353046ffbdee082ea0ddcde2 |
| 443 |
#: 0b15ab2a1e6e4d58a6648a72a2207ae5 13dc7929b6e9453bac9c30a9abf9a5f6 |
| 444 |
#: 62de8d49e771412a89266c2d8731bd49 |
| 445 |
msgid "" |
| 446 |
"The previous page of articles, ordered by date, ascending (``None`` if " |
| 447 |
"page does not exist)" |
| 448 |
msgstr "" |
| 449 |
"以日期正序(从旧到新)排列时,前一分页包含的文章的列表。" |
| 450 |
"(若没有前一页,此变量值为 ``None`` )" |
| 451 |
|
| 452 |
#: ../../themes.rst:184 ../../themes.rst:217 ../../themes.rst:251 |
| 453 |
#: ../../themes.rst:340 156f78d11b96475a9d52085860a1e6c5 |
| 454 |
#: 33b0c94c117c41ee955df750c1fd728c 5763fdf2c1cd43fc96013756029661d6 |
| 455 |
#: add31a94f5dc490684aac08b7bcad8e5 |
| 456 |
msgid "dates_next_page" |
| 457 |
msgstr "dates_next_page" |
| 458 |
|
| 459 |
#: ../../themes.rst:184 ../../themes.rst:217 ../../themes.rst:251 |
| 460 |
#: ../../themes.rst:340 a61d56f03b5946899f9e951eba65df08 |
| 461 |
#: ac60da91c10449cc8d519beb0b2f1102 cdfa2284c2c54da3a366d1deaefab551 |
| 462 |
#: dc9ea16f9bb44d1d8d1032397aac1a8e |
| 463 |
msgid "" |
| 464 |
"The next page of articles, ordered by date, ascending (``None`` if page " |
| 465 |
"does not exist)" |
| 466 |
msgstr "" |
| 467 |
"以日期正序(从旧到新)排列时,后一分页包含的文章的列表。" |
| 468 |
"(若没有后一页,此变量值为 ``None`` )" |
| 469 |
|
| 470 |
#: ../../themes.rst:186 ../../themes.rst:219 ../../themes.rst:253 |
| 471 |
#: ../../themes.rst:342 ../../themes.rst:493 501f30d99fc441f3b5070f8703c7e324 |
| 472 |
#: 6a4735af4aa84d56bf745244c29f7e0c 8c9158f1b7f04d5ea07058d816be2e70 |
| 473 |
#: cf1d564d80d34860a32fcddbac41375c e8c83819bbc0448799bae5ea19538100 |
| 474 |
msgid "page_name" |
| 475 |
msgstr "page_name" |
| 476 |
|
| 477 |
#: ../../themes.rst:186 99f67be157844a6e85f1ebe6d40c9182 |
| 478 |
msgid "'index' -- useful for pagination links" |
| 479 |
msgstr "值为 'index' ——在分页链接中很实用" |
| 480 |
|
| 481 |
#: ../../themes.rst:191 01c6da9f6c7b431d971fa0ec426f948f |
| 482 |
msgid "author.html" |
| 483 |
msgstr "author.html" |
| 484 |
|
| 485 |
#: ../../themes.rst:193 feee792cfdbf49b3a289762c8e0e0edb |
| 486 |
msgid "" |
| 487 |
"This template will be processed for each of the existing authors, with " |
| 488 |
"output generated according to the ``AUTHOR_SAVE_AS`` setting (`Default:` " |
| 489 |
"``author/{slug}.html``). If pagination is active, subsequent pages will " |
| 490 |
"by default reside at ``author/{slug}{number}.html``." |
| 491 |
msgstr "" |
| 492 |
"此模板会应用于每个已存在的作者上,并根据配置项 ``AUTHOR_SAVE_AS`` 确定输出路径" |
| 493 |
"( `默认值为:` ``author/{slug}.html`` )。如果启用了分页,后续页面会保存为 " |
| 494 |
"``author/{slug}{number}.html`` 。" |
| 495 |
|
| 496 |
#: ../../themes.rst:201 ../../themes.rst:448 ../../themes.rst:511 |
| 497 |
#: 1f0784e3f85140afab2178a061897017 af9d9be813ae4f43be00ff6770a75fe5 |
| 498 |
#: f9ea3f154b7f4268ab412ea2e6bf6c87 |
| 499 |
msgid "author" |
| 500 |
msgstr "author" |
| 501 |
|
| 502 |
#: ../../themes.rst:201 01d284aaf9534cc5852557cc4063b6dc |
| 503 |
msgid "The name of the author being processed" |
| 504 |
msgstr "当前正在处理的作者名" |
| 505 |
|
| 506 |
#: ../../themes.rst:202 9a53c5cec5fb4fdd8df98bab9cfc77fa |
| 507 |
msgid "Articles by this author" |
| 508 |
msgstr "当前作者的文章" |
| 509 |
|
| 510 |
#: ../../themes.rst:203 4d5fc91dac964d63a9ac28ff07f44b97 |
| 511 |
msgid "Articles by this author, but ordered by date, ascending" |
| 512 |
msgstr "当前作者的文章,以日期正序排列" |
| 513 |
|
| 514 |
#: ../../themes.rst:219 2f5aca7ff98c4de4bfdd82d6e57803e1 |
| 515 |
msgid "" |
| 516 |
"AUTHOR_URL where everything after `{slug}` is removed -- useful for " |
| 517 |
"pagination links" |
| 518 |
msgstr "" |
| 519 |
"变量值与AUTHOR_URL一致,所有在 `{slug}` 之后的字符都会被删除——这对分页链接很有用" |
| 520 |
|
| 521 |
#: ../../themes.rst:225 a603e6fd07f7404ca86716249a4347ef |
| 522 |
msgid "category.html" |
| 523 |
msgstr "category.html" |
| 524 |
|
| 525 |
#: ../../themes.rst:227 10beee5e95394fd2ac3ab29e76cc06fc |
| 526 |
msgid "" |
| 527 |
"This template will be processed for each of the existing categories, with" |
| 528 |
" output generated according to the ``CATEGORY_SAVE_AS`` setting " |
| 529 |
"(`Default:` ``category/{slug}.html``). If pagination is active, " |
| 530 |
"subsequent pages will by default reside at " |
| 531 |
"``category/{slug}{number}.html``." |
| 532 |
msgstr "" |
| 533 |
"此模板会应用于每个已存在的分类上,根据设置项 ``CATEGORY_SAVE_AS`` 确定输出路径" |
| 534 |
"(`默认值为:` ``category/{slug}.html`` )。如果启用了分页,后续页面会保存为 " |
| 535 |
"``category/{slug}{number}.html`` 。" |
| 536 |
|
| 537 |
#: ../../themes.rst:235 ../../themes.rst:269 ../../themes.rst:452 |
| 538 |
#: 04b6f1c1d1f04e0e806f898dda0df53e a8a2719723a44a04b0cc7516a9b8e811 |
| 539 |
#: fc79984925564ea5b5dece084dbd3f15 |
| 540 |
msgid "category" |
| 541 |
msgstr "category" |
| 542 |
|
| 543 |
#: ../../themes.rst:235 feb49105f74f4e93b8f7f3471327cc4b |
| 544 |
msgid "The name of the category being processed" |
| 545 |
msgstr "正在处理的分类名称" |
| 546 |
|
| 547 |
#: ../../themes.rst:236 fa6d2909a42446edbce322e4bdd74ca9 |
| 548 |
msgid "Articles for this category" |
| 549 |
msgstr "此分类下的文章" |
| 550 |
|
| 551 |
#: ../../themes.rst:237 c89759eb3241470fb8f098ccb022f286 |
| 552 |
msgid "Articles for this category, but ordered by date, ascending" |
| 553 |
msgstr "此分类下的文章,以日期正序排列" |
| 554 |
|
| 555 |
#: ../../themes.rst:245 ../../themes.rst:334 03985448999c44859adcb45b7a9da87c |
| 556 |
#: b5506c9105b843de92190998f7d07245 |
| 557 |
msgid "A paginator object for the list of articles, ordered by date, ascending" |
| 558 |
msgstr "分页器对象,存放着以日期正序排列的文章列表" |
| 559 |
|
| 560 |
#: ../../themes.rst:247 ../../themes.rst:336 926e4184e9fc4288be3701737c8ea3cc |
| 561 |
#: 929ee1e0a49d4a7fa52343db55e6201b |
| 562 |
msgid "The current page of articles, ordered by date, ascending" |
| 563 |
msgstr "当前页面中的文章,以日期正序排列" |
| 564 |
|
| 565 |
#: ../../themes.rst:253 6b396d9ad87e4156a694c9e31663d935 |
| 566 |
msgid "" |
| 567 |
"CATEGORY_URL where everything after `{slug}` is removed -- useful for " |
| 568 |
"pagination links" |
| 569 |
msgstr "" |
| 570 |
"变量值与CATEGORY_URL一致,所有在 `{slug}` 之后的字符都会被删除——这对分页链接很有用" |
| 571 |
|
| 572 |
#: ../../themes.rst:259 0c7b031962f14ca78b9cd72aa2de5b03 |
| 573 |
msgid "article.html" |
| 574 |
msgstr "article.html" |
| 575 |
|
| 576 |
#: ../../themes.rst:261 1132a54c80564ac0a2706b026b263af7 |
| 577 |
msgid "" |
| 578 |
"This template will be processed for each article, with output generated " |
| 579 |
"according to the ``ARTICLE_SAVE_AS`` setting (`Default:` " |
| 580 |
"``{slug}.html``). The following variables are available when rendering." |
| 581 |
msgstr "" |
| 582 |
"此模板会应用于文章上,根据设置项 ``ARTICLE_SAVE_AS`` 确定输出路径(`默认值为:` " |
| 583 |
"``{slug}.html`` )。在渲染文章过程中可以使用下列变量。" |
| 584 |
|
| 585 |
#: ../../themes.rst:268 6cc80575f5ac41e9bca4ce466d593f1d |
| 586 |
msgid "article" |
| 587 |
msgstr "article" |
| 588 |
|
| 589 |
#: ../../themes.rst:268 bbad6618dfa346c396dfa8cf02cb7ee7 |
| 590 |
msgid "The article object to be displayed" |
| 591 |
msgstr "准备显示的文章对象" |
| 592 |
|
| 593 |
#: ../../themes.rst:269 4a9bcc18543a4d9eb533092d25bd59a2 |
| 594 |
msgid "The name of the category for the current article" |
| 595 |
msgstr "当前文章所属分类的名称" |
| 596 |
|
| 597 |
#: ../../themes.rst:272 fdbbcc85d2aa406493ae4f0b4511e1a8 |
| 598 |
msgid "" |
| 599 |
"Any metadata that you put in the header of the article source file will " |
| 600 |
"be available as fields on the ``article`` object. The field name will be " |
| 601 |
"the same as the name of the metadata field, except in all-lowercase " |
| 602 |
"characters." |
| 603 |
msgstr "" |
| 604 |
"文章源文件开头部分的元数据都会作为 ``article`` 对象的属性存在,属性名和元数据中" |
| 605 |
"指定的相同(但是是全小写的)。" |
| 606 |
|
| 607 |
#: ../../themes.rst:276 1c7d9a6b460849daacae3a205b6a59a6 |
| 608 |
msgid "" |
| 609 |
"For example, you could add a field called `FacebookImage` to your article" |
| 610 |
" metadata, as shown below:" |
| 611 |
msgstr "" |
| 612 |
"例如,一篇文章源文件中添加了一个额外的元数据 `FacebookImage` :" |
| 613 |
|
| 614 |
#: ../../themes.rst:289 b934e5fbde064a7eb6d09405abc0ba1d |
| 615 |
msgid "" |
| 616 |
"This new metadata will be made available as `article.facebookimage` in " |
| 617 |
"your `article.html` template. This would allow you, for example, to " |
| 618 |
"specify an image for the Facebook open graph tags that will change for " |
| 619 |
"each article:" |
| 620 |
msgstr "" |
| 621 |
"此元数据在 `article.html` 模板中可以通过 `article.facebookimage` 获取。" |
| 622 |
"通过这种方式,就可以实现例如Facebook的动态打开标签:" |
| 623 |
|
| 624 |
#: ../../themes.rst:299 dacf9a5dc4de4a5398baf9632399be4b |
| 625 |
msgid "page.html" |
| 626 |
msgstr "page.html" |
| 627 |
|
| 628 |
#: ../../themes.rst:301 a65649dffe0e4e1fb26e38565a89fbf2 |
| 629 |
msgid "" |
| 630 |
"This template will be processed for each page, with output generated " |
| 631 |
"according to the ``PAGE_SAVE_AS`` setting (`Default:` " |
| 632 |
"``pages/{slug}.html``). The following variables are available when " |
| 633 |
"rendering." |
| 634 |
msgstr "" |
| 635 |
"此模板会应用于页面上,根据设置项 ``PAGE_SAVE_AS`` 确定输出路径(`默认值为:` " |
| 636 |
"``pages/{slug}.html`` )。在渲染过程中可以使用下列变量。" |
| 637 |
|
| 638 |
#: ../../themes.rst:308 fb581643c0c04d6b89c3aa62bcdb5225 |
| 639 |
msgid "page" |
| 640 |
msgstr "page" |
| 641 |
|
| 642 |
#: ../../themes.rst:308 02c821223e5448d7999f67d499844684 |
| 643 |
msgid "" |
| 644 |
"The page object to be displayed. You can access its title, slug, and " |
| 645 |
"content." |
| 646 |
msgstr "" |
| 647 |
"准备显示的页面对象,可以从中获取标题、slug和具体内容。" |
| 648 |
|
| 649 |
#: ../../themes.rst:314 4f312193d3914a58be2a8e54e2fb61d8 |
| 650 |
msgid "tag.html" |
| 651 |
msgstr "tag.html" |
| 652 |
|
| 653 |
#: ../../themes.rst:316 e96e2b0601e340878872dfcf5159575e |
| 654 |
msgid "" |
| 655 |
"This template will be processed for each tag, with output generated " |
| 656 |
"according to the ``TAG_SAVE_AS`` setting (`Default:` " |
| 657 |
"``tag/{slug}.html``). If pagination is active, subsequent pages will by " |
| 658 |
"default reside at ``tag/{slug}{number}.html``." |
| 659 |
msgstr "" |
| 660 |
"此模板会应用于标签页上,根据设置项 ``TAG_SAVE_AS`` 确定输出路径(`默认值为:` " |
| 661 |
"``tag/{slug}.html`` )。若启用了分页,后续页面默认存储为。``tag/{slug}{number}.html`` 。" |
| 662 |
|
| 663 |
#: ../../themes.rst:324 2c8332f2cdc144828b75e23937d3ef8e |
| 664 |
msgid "tag" |
| 665 |
msgstr "tag" |
| 666 |
|
| 667 |
#: ../../themes.rst:324 413cc4b9730a40d3aaee657a7d261daa |
| 668 |
msgid "The name of the tag being processed" |
| 669 |
msgstr "当前正在处理标签的名称" |
| 670 |
|
| 671 |
#: ../../themes.rst:325 726e68a5b71c4ba182afd29b36394c82 |
| 672 |
msgid "Articles related to this tag" |
| 673 |
msgstr "和此标签关联的文章" |
| 674 |
|
| 675 |
#: ../../themes.rst:326 780cb9b0de1e4bc1842b8a1bc1ad9202 |
| 676 |
msgid "Articles related to this tag, but ordered by date, ascending" |
| 677 |
msgstr "和此标签关联的文章,以日期正序排列" |
| 678 |
|
| 679 |
#: ../../themes.rst:342 c6fb1ba5f18b454ead7abdee5cded85b |
| 680 |
msgid "" |
| 681 |
"TAG_URL where everything after `{slug}` is removed -- useful for " |
| 682 |
"pagination links" |
| 683 |
msgstr "" |
| 684 |
"变量值与TAG_URL一致,所有在 `{slug}` 之后的字符都会被删除——这对分页链接很有用" |
| 685 |
|
| 686 |
#: ../../themes.rst:348 8786a045b390459fad281b06b7edae8c |
| 687 |
msgid "period_archives.html" |
| 688 |
msgstr "period_archives.html" |
| 689 |
|
| 690 |
#: ../../themes.rst:350 c2fad0f517ec40eb8309beca3794ca8b |
| 691 |
msgid "" |
| 692 |
"This template will be processed for each year of your posts if a path for" |
| 693 |
" ``YEAR_ARCHIVE_SAVE_AS`` is defined, each month if " |
| 694 |
"``MONTH_ARCHIVE_SAVE_AS`` is defined, and each day if " |
| 695 |
"``DAY_ARCHIVE_SAVE_AS`` is defined." |
| 696 |
msgstr "" |
| 697 |
"此模板用于生成归档页面, ``YEAR_ARCHIVE_SAVE_AS`` 、 ``MONTH_ARCHIVE_SAVE_AS`` " |
| 698 |
"与 ``DAY_ARCHIVE_SAVE_AS`` 分别对应着年、月、日的归档,只有指定了对应的路径才会生成" |
| 699 |
"归档页面。" |
| 700 |
|
| 701 |
#: ../../themes.rst:357 ../../themes.rst:394 ef52bf257ddc4687801b9438efa2660a |
| 702 |
#: f6eb6f96a622406cbf6d60a5c57276c7 |
| 703 |
msgid "period" |
| 704 |
msgstr "period" |
| 705 |
|
| 706 |
#: ../../themes.rst:357 2d01d1314880482791134dbae86647d8 |
| 707 |
msgid "" |
| 708 |
"A tuple of the form (`year`, `month`, `day`) that indicates the current " |
| 709 |
"time period. `year` and `day` are numbers while `month` is a string. This" |
| 710 |
" tuple only contains `year` if the time period is a given year. It " |
| 711 |
"contains both `year` and `month` if the time period is over years and " |
| 712 |
"months and so on." |
| 713 |
msgstr "" |
| 714 |
"一个元组,格式为 (`year`, `month`, `day`) ,指明了当前的时间段。 `year` 和 `day` " |
| 715 |
"为数字, `month` 则为字符串。当时间段以年给定时,此元组只会有 `year` ;当时间段以年" |
| 716 |
"和月给定时此元组中则只会包含 `year` 和 `month` ;以此类推。" |
| 717 |
|
| 718 |
#: ../../themes.rst:364 ../../themes.rst:397 2164d658ab7342839ea592c7f534c332 |
| 719 |
#: ff99b9574a444dec9014c06b0c9b908e |
| 720 |
msgid "period_num" |
| 721 |
msgstr "period_num" |
| 722 |
|
| 723 |
#: ../../themes.rst:364 c4864711405b4f9fa565ac3bcc3a8803 |
| 724 |
msgid "" |
| 725 |
"A tuple of the form (``year``, ``month``, ``day``), as in ``period``, " |
| 726 |
"except all values are numbers." |
| 727 |
msgstr "" |
| 728 |
"一个元组,格式为 (``year``, ``month``, ``day``) ,与 ``period`` 含义相同," |
| 729 |
"只不过年月日都是以数字给出的。" |
| 730 |
|
| 731 |
#: ../../themes.rst:369 27affb54796f4855826eaf3506ed4ed5 |
| 732 |
msgid "" |
| 733 |
"You can see an example of how to use `period` in the `\"simple\" theme " |
| 734 |
"period_archives.html template " |
| 735 |
"<https://github.com/getpelican/pelican/blob/main/pelican/themes/simple/templates/period_archives.html>`_." |
| 736 |
msgstr "" |
| 737 |
"有关 `period` 的使用可以参考 `\"simple\" 主题中的period_archives.html模板 " |
| 738 |
"<https://github.com/getpelican/pelican/blob/main/pelican/themes/simple/templates/period_archives.html>`_ ." |
| 739 |
|
| 740 |
#: ../../themes.rst:377 f556c7dd5ca5454888d19edf992c8dfa |
| 741 |
msgid "Listing and Linking to Period Archives" |
| 742 |
msgstr "列出归档与链接到归档" |
| 743 |
|
| 744 |
#: ../../themes.rst:379 d76f0d91885c42edb2652303f4a60cb6 |
| 745 |
msgid "" |
| 746 |
"The ``period_archives`` variable can be used to generate a list of links " |
| 747 |
"to the set of period archives that Pelican generates. As a :ref:`common " |
| 748 |
"variable <common_variables>`, it is available for use in any template, so" |
| 749 |
" you can implement such an index in a custom direct template, or in a " |
| 750 |
"sidebar visible across different site pages." |
| 751 |
msgstr "" |
| 752 |
"对于Pelican给出的归档时间段, ``period_archives`` 可用于生成对应的链接列表。" |
| 753 |
"此变量作为 :ref:`通用变量 <common_variables>` ,可在所有模板中使用。因此可以借此" |
| 754 |
"在自定义直接模板中或是侧边栏中实现链接索引。" |
| 755 |
|
| 756 |
#: ../../themes.rst:385 bf76ed577485401d8c5e180a2ea6b7fe |
| 757 |
msgid "" |
| 758 |
"``period_archives`` is a dict that may contain ``year``, ``month``, " |
| 759 |
"and/or ``day`` keys, depending on which ``*_ARCHIVE_SAVE_AS`` settings " |
| 760 |
"are enabled. The corresponding value is a list of dicts, where each dict " |
| 761 |
"in turn represents a time period (ordered according to the " |
| 762 |
"``NEWEST_FIRST_ARCHIVES`` setting) with the following keys and values:" |
| 763 |
msgstr "" |
| 764 |
"``period_archives`` 是一个字典,根据 ``*_ARCHIVE_SAVE_AS`` 设置的启用情况," |
| 765 |
"其键对应为 ``year`` 、 ``month`` 与 ``day`` ,其值是包含字典的列表,每个字典依次" |
| 766 |
"表示一个时间段(顺序由 ``NEWEST_FIRST_ARCHIVES`` 设置决定),并包含以下键值对:" |
| 767 |
|
| 768 |
#: ../../themes.rst:392 d4b7e16101e24e13ac49a201f2e9b288 |
| 769 |
msgid "Key" |
| 770 |
msgstr "键" |
| 771 |
|
| 772 |
#: ../../themes.rst:392 cda01b45b25c4b76bf38849c6b5368d0 |
| 773 |
msgid "Value" |
| 774 |
msgstr "值" |
| 775 |
|
| 776 |
#: ../../themes.rst:394 ac2a1a43510a417fb10561cff9a5189e |
| 777 |
msgid "" |
| 778 |
"The same tuple as described in ``period_archives.html``, e.g. ``(2023, " |
| 779 |
"'June', 18)``." |
| 780 |
msgstr "" |
| 781 |
"一个元组,内容和 ``period_archives.html`` 中一样,例如 ``(2023, 'June', 18)`` 。" |
| 782 |
|
| 783 |
#: ../../themes.rst:397 fdae5356b80444dc84294a4e54b7a69e |
| 784 |
msgid "" |
| 785 |
"The same tuple as described in ``period_archives.html``, e.g. ``(2023, 6," |
| 786 |
" 18)``." |
| 787 |
msgstr "" |
| 788 |
"一个元组,内容和 ``period_archives.html`` 中一样,例如 ``(2023, 6, 18)`` 。" |
| 789 |
|
| 790 |
#: ../../themes.rst:399 ../../themes.rst:476 ../../themes.rst:496 |
| 791 |
#: ../../themes.rst:535 08cccff8dd0048a39054424ae58bfe24 |
| 792 |
#: 3fe5b8e9d83a4cd28bfc96c745406432 c2d9d11c36e94278a94b3404e8335524 |
| 793 |
#: c9ee356463204591986c9c17f8dfc8b4 |
| 794 |
msgid "url" |
| 795 |
msgstr "url" |
| 796 |
|
| 797 |
#: ../../themes.rst:399 0c826cc879af4c8fa1fb4fceb92bb362 |
| 798 |
msgid "" |
| 799 |
"The URL to the period archive page, e.g. ``posts/2023/06/18/``. This is " |
| 800 |
"controlled by the corresponding ``*_ARCHIVE_URL`` setting." |
| 801 |
msgstr "" |
| 802 |
"当前时间段归档页面的URL,例如 ``posts/2023/06/18/`` 。具体值由对应的设置项 " |
| 803 |
"``*_ARCHIVE_URL`` 决定。" |
| 804 |
|
| 805 |
#: ../../themes.rst:402 ../../themes.rst:463 ../../themes.rst:494 |
| 806 |
#: ../../themes.rst:522 155a764c3763409c9bdf881881da49e4 |
| 807 |
#: 8da502261f724333814ae130f068a454 d3eaeebea8a54785a4778eac9d436479 |
| 808 |
#: ec45a7fbd4db443ab75b13b0fb2876e7 |
| 809 |
msgid "save_as" |
| 810 |
msgstr "save_as" |
| 811 |
|
| 812 |
#: ../../themes.rst:402 29cd2e19b0f24fa8ac20e184aea547c5 |
| 813 |
msgid "" |
| 814 |
"The path to the save location of the period archive page file, e.g. " |
| 815 |
"``posts/2023/06/18/index.html``. This is used internally by Pelican and " |
| 816 |
"is usually not relevant to themes." |
| 817 |
msgstr "" |
| 818 |
"当前时间段归档页面的存储路径,例如 ``posts/2023/06/18/index.html`` 。此路径用于" |
| 819 |
"Pelican内部处理,往往与主题无关。" |
| 820 |
|
| 821 |
#: ../../themes.rst:406 4bd641dcf26c4f61bf8d3c8667552501 |
| 822 |
msgid "" |
| 823 |
"A list of :ref:`Article <object-article>` objects that fall under the " |
| 824 |
"time period." |
| 825 |
msgstr "" |
| 826 |
"一个列表,其中为当前时间段内所有文章的 :ref:`Article <object-article>` 对象。" |
| 827 |
|
| 828 |
#: ../../themes.rst:408 c59db635e66a4ed68b2648b6cd8691a4 |
| 829 |
msgid "" |
| 830 |
"Same list as ``articles``, but ordered according to the " |
| 831 |
"``NEWEST_FIRST_ARCHIVES`` setting." |
| 832 |
msgstr "" |
| 833 |
"和 ``articles`` 相同的列表,但按照 ``NEWEST_FIRST_ARCHIVES`` 设置项进行排列。" |
| 834 |
|
| 835 |
#: ../../themes.rst:412 f096e1915d684d6b9bd0a1e5e034e5f0 |
| 836 |
msgid "Here is an example of how ``period_archives`` can be used in a template:" |
| 837 |
msgstr "下面的例子展示了如何在模板中使用 ``period_archives`` :" |
| 838 |
|
| 839 |
#: ../../themes.rst:426 3f6144d2a3914984bc376ed6f33af53b |
| 840 |
msgid "" |
| 841 |
"You can change ``period_archives.month`` in the ``for`` statement to " |
| 842 |
"``period_archives.year`` or ``period_archives.day`` as appropriate, " |
| 843 |
"depending on the time period granularity desired." |
| 844 |
msgstr "" |
| 845 |
"你可以根据需要的时间粒度将 ``for`` 语句中的 ``period_archives.month`` 改为 " |
| 846 |
"``period_archives.year`` 或 ``period_archives.day`` 。" |
| 847 |
|
| 848 |
#: ../../themes.rst:432 ce9158ea38b54c5faeee718a7644ca5f |
| 849 |
msgid "Objects" |
| 850 |
msgstr "对象" |
| 851 |
|
| 852 |
#: ../../themes.rst:434 dd0725152df94c8f9e2d94439ccfa3a1 |
| 853 |
msgid "" |
| 854 |
"Detail objects attributes that are available and useful in templates. Not" |
| 855 |
" all attributes are listed here, this is a selection of attributes " |
| 856 |
"considered useful in a template." |
| 857 |
msgstr "" |
| 858 |
"下面是对在模板中可用对象的属性的详细说明。以下仅列出了较常用的一些,并不是全部。" |
| 859 |
|
| 860 |
#: ../../themes.rst:441 af8644dff51348af8e52938bb8d6a0c8 |
| 861 |
msgid "Article" |
| 862 |
msgstr "Article" |
| 863 |
|
| 864 |
#: ../../themes.rst:443 cc283674732243e5883a99b6a32166af |
| 865 |
msgid "The string representation of an Article is the `source_path` attribute." |
| 866 |
msgstr "Article对象的字符串表示即为 `source_path` 属性。" |
| 867 |
|
| 868 |
#: ../../themes.rst:446 ../../themes.rst:490 ../../themes.rst:509 |
| 869 |
#: 3f2a9f3ea4c34e4ba7b83b17897f4b59 529f2387d2044534a0e3059defb2be46 |
| 870 |
#: 97104fabe548459e9142574e4194afdb |
| 871 |
msgid "Attribute" |
| 872 |
msgstr "属性" |
| 873 |
|
| 874 |
#: ../../themes.rst:448 16d19143b7964b99953026728e8a5d4a |
| 875 |
msgid "The :ref:`Author <object-author_cat_tag>` of this article." |
| 876 |
msgstr "当前文章的 :ref:`Author <object-author_cat_tag>`" |
| 877 |
|
| 878 |
#: ../../themes.rst:450 5a7ae4c0e9164288bd46cbf698ae01f8 |
| 879 |
msgid "A list of :ref:`Authors <object-author_cat_tag>` of this article." |
| 880 |
msgstr "当前文章的多个 :ref:`Authors <object-author_cat_tag>`" |
| 881 |
|
| 882 |
#: ../../themes.rst:452 982b4fe7fa4a41a5b3aed3a82168b462 |
| 883 |
msgid "The :ref:`Category <object-author_cat_tag>` of this article." |
| 884 |
msgstr "当前文章的 :ref:`Category <object-author_cat_tag>`" |
| 885 |
|
| 886 |
#: ../../themes.rst:454 ../../themes.rst:513 10ea5d1008fa4e7e9f11680013530b13 |
| 887 |
#: 3bca890724c2487885fbfb34803f0a8b |
| 888 |
msgid "content" |
| 889 |
msgstr "content" |
| 890 |
|
| 891 |
#: ../../themes.rst:454 14973ea2fac140dbac7ed05f09f3b27d |
| 892 |
msgid "The rendered content of the article." |
| 893 |
msgstr "当前文章渲染完成的内容" |
| 894 |
|
| 895 |
#: ../../themes.rst:455 ../../themes.rst:514 1733ed5bfe0d421d96f074c2ea46c163 |
| 896 |
#: b577071078d5413ba0199a4b5a64a926 |
| 897 |
msgid "date" |
| 898 |
msgstr "date" |
| 899 |
|
| 900 |
#: ../../themes.rst:455 c99033f75c6c4aabb03c1ed24e530551 |
| 901 |
msgid "Datetime object representing the article date." |
| 902 |
msgstr "当前文章的Datetime对象" |
| 903 |
|
| 904 |
#: ../../themes.rst:456 ../../themes.rst:515 9f8a6847d9f24162980e8bac2cc6e159 |
| 905 |
#: c01cd89b410d45258311d8d62a0b3b24 |
| 906 |
msgid "date_format" |
| 907 |
msgstr "date_format" |
| 908 |
|
| 909 |
#: ../../themes.rst:456 ../../themes.rst:515 14a1bee230d243da83e1a8f8e4817838 |
| 910 |
#: 35bed86384a74210a5c5be86feb1ca83 |
| 911 |
msgid "Either default date format or locale date format." |
| 912 |
msgstr "默认日期格式或是特定地区的日期格式" |
| 913 |
|
| 914 |
#: ../../themes.rst:457 ../../themes.rst:516 7c05e281dd0f4b7885653f977ce73b96 |
| 915 |
#: 942fcdc259554437b58035fd53b3f430 |
| 916 |
msgid "default_template" |
| 917 |
msgstr "default_template" |
| 918 |
|
| 919 |
#: ../../themes.rst:457 ../../themes.rst:516 754d4caf3da64863818cae661450c76b |
| 920 |
#: 7fc12db08b5641f388113c447d272970 |
| 921 |
msgid "Default template name." |
| 922 |
msgstr "默认的模板名称" |
| 923 |
|
| 924 |
#: ../../themes.rst:458 ../../themes.rst:517 6434f76e9f2c425ab2e0f4e1df0d5eff |
| 925 |
#: 7a42be4c30d74d93b9778768d88f0d61 |
| 926 |
msgid "in_default_lang" |
| 927 |
msgstr "in_default_lang" |
| 928 |
|
| 929 |
#: ../../themes.rst:458 ../../themes.rst:517 573f32f9ea2942b2849cb62bc4ad5b0d |
| 930 |
#: d9bbddf5ba92486faca7219d41907449 |
| 931 |
msgid "Boolean representing if the article is written in the default language." |
| 932 |
msgstr "布尔值,用于表示当前文章是不是以默认语言写的。" |
| 933 |
|
| 934 |
#: ../../themes.rst:460 ../../themes.rst:519 c06096412cd6477f9a9505202b65a66b |
| 935 |
#: cf2ee07db2b544fb8bb5867fd47b4766 |
| 936 |
msgid "lang" |
| 937 |
msgstr "lang" |
| 938 |
|
| 939 |
#: ../../themes.rst:460 ../../themes.rst:519 5feb94756b424a1f970b45ad224ab4df |
| 940 |
#: bb4db90299324791bcc00c9687d458e8 |
| 941 |
msgid "Language of the article." |
| 942 |
msgstr "当前文章使用的语言。" |
| 943 |
|
| 944 |
#: ../../themes.rst:461 ../../themes.rst:520 3ddd8549af7f4c54bb4d1176ab4991fe |
| 945 |
#: f599ee9e24d24679ae8efe1b92bfabd2 |
| 946 |
msgid "locale_date" |
| 947 |
msgstr "locale_date" |
| 948 |
|
| 949 |
#: ../../themes.rst:461 ../../themes.rst:520 492201eaff5d43bcb2a27d38dd414ea5 |
| 950 |
#: bd9e52a8bfc24c89982c21a7ec33546b |
| 951 |
msgid "Date formatted by the `date_format`." |
| 952 |
msgstr "以 `date_format` 格式化后的日期。" |
| 953 |
|
| 954 |
#: ../../themes.rst:462 ../../themes.rst:521 298a8c49a9c54aa08e92063a205b4270 |
| 955 |
#: 91a12b6902f140a285bd808fe527e942 |
| 956 |
msgid "metadata" |
| 957 |
msgstr "metadata" |
| 958 |
|
| 959 |
#: ../../themes.rst:462 a6266566a3764288a3439022e3a374b5 |
| 960 |
msgid "Article header metadata `dict`." |
| 961 |
msgstr "文章元数据的字典。" |
| 962 |
|
| 963 |
#: ../../themes.rst:463 8c8bb35d3d0a4fd4a8cbbe66da13e9f6 |
| 964 |
msgid "Location to save the article page." |
| 965 |
msgstr "本篇文章生成保存的位置。" |
| 966 |
|
| 967 |
#: ../../themes.rst:464 ../../themes.rst:495 ../../themes.rst:523 |
| 968 |
#: 02324ac5ed2f418d8aeabad7ef196271 265ffa91569c417faf9edfad84909010 |
| 969 |
#: eb3abbd690c540dc8c8f96c457a949f1 |
| 970 |
msgid "slug" |
| 971 |
msgstr "slug" |
| 972 |
|
| 973 |
#: ../../themes.rst:464 ../../themes.rst:495 ../../themes.rst:523 |
| 974 |
#: 6ceb857897804044822f46787b8b2e24 6f893196b6f94121aa829816652d9b8d |
| 975 |
#: d07f43f0b91e4e0492db289b425a66ca |
| 976 |
msgid "Page slug." |
| 977 |
msgstr "推文的slug" |
| 978 |
|
| 979 |
#: ../../themes.rst:465 ../../themes.rst:524 2a6c951175234a94ad49fe66b5e0ac67 |
| 980 |
#: 8cc7b9782316464ab8f4d93f44364487 |
| 981 |
msgid "source_path" |
| 982 |
msgstr "source_path" |
| 983 |
|
| 984 |
#: ../../themes.rst:465 e56b161d0ff444db81b9ef5438205492 |
| 985 |
msgid "Full system path of the article source file." |
| 986 |
msgstr "文章源文件的完整系统路径。" |
| 987 |
|
| 988 |
#: ../../themes.rst:466 ../../themes.rst:525 3288505bb4c94604a880a6e41e854174 |
| 989 |
#: c6d1c1970adc4b7d851fc9a62579e2c6 |
| 990 |
msgid "relative_source_path" |
| 991 |
msgstr "relative_source_path" |
| 992 |
|
| 993 |
#: ../../themes.rst:466 efa94005826e46b1a7ace439cfea8ecd |
| 994 |
msgid "Relative path from PATH_ to the article source file." |
| 995 |
msgstr "从 PATH_ 到当前文章源文件的相对路径。" |
| 996 |
|
| 997 |
#: ../../themes.rst:467 ../../themes.rst:526 0f57131e78b043bd974e545651a9eac6 |
| 998 |
#: 4f11a741e9684957bc2ac83e1aa850ca |
| 999 |
msgid "status" |
| 1000 |
msgstr "status" |
| 1001 |
|
| 1002 |
#: ../../themes.rst:467 ff6df46c090044a9afd9bafe55483999 |
| 1003 |
msgid "The article status, can be any of 'published' or 'draft'." |
| 1004 |
msgstr "当前文章的状态,可能值为'published'或'draft'。" |
| 1005 |
|
| 1006 |
#: ../../themes.rst:469 ../../themes.rst:528 042ac3c1853845f99752c484e341dbde |
| 1007 |
#: 59ec1f34a47b41959621ae638ee75bf6 |
| 1008 |
msgid "summary" |
| 1009 |
msgstr "summary" |
| 1010 |
|
| 1011 |
#: ../../themes.rst:469 ../../themes.rst:528 f13f50f1e1024ce2bb1a3cd2d6bd0f45 |
| 1012 |
#: fe9173ab1a3b42a39d1ae3f24b2e13b6 |
| 1013 |
msgid "Rendered summary content." |
| 1014 |
msgstr "渲染后的摘要内容。" |
| 1015 |
|
| 1016 |
#: ../../themes.rst:470 ../../themes.rst:529 455d848accf04082b6d0efe5c0451a8c |
| 1017 |
#: 5acb76f85cdd47f0933b5c411f645ccd |
| 1018 |
msgid "List of :ref:`Tag <object-author_cat_tag>` objects." |
| 1019 |
msgstr ":ref:`Tag <object-author_cat_tag>` 对象的列表。" |
| 1020 |
|
| 1021 |
#: ../../themes.rst:472 ../../themes.rst:531 346843df50f64fcb8738d9a33a5991c0 |
| 1022 |
#: 5b43ff1b52e049a080dcfcf7c8532e55 |
| 1023 |
msgid "template" |
| 1024 |
msgstr "template" |
| 1025 |
|
| 1026 |
#: ../../themes.rst:472 ../../themes.rst:531 1c98b0c5f84b438d9fbcdc7e564b532a |
| 1027 |
#: 75b07b60fd0540ac998a7a5f8c755abb |
| 1028 |
msgid "Template name to use for rendering." |
| 1029 |
msgstr "用于渲染的模板名称" |
| 1030 |
|
| 1031 |
#: ../../themes.rst:473 ../../themes.rst:532 3da31ca0f3a74f1b807028b268704562 |
| 1032 |
#: 939c8b4e82c34cdc9e11fff8728e925a |
| 1033 |
msgid "title" |
| 1034 |
msgstr "title" |
| 1035 |
|
| 1036 |
#: ../../themes.rst:473 4f435f74edea49abba15e465cd65bc9b |
| 1037 |
msgid "Title of the article." |
| 1038 |
msgstr "当前文章的标题。" |
| 1039 |
|
| 1040 |
#: ../../themes.rst:474 ../../themes.rst:533 4c7c144119804fcc9b3aff5ba1cc1d60 |
| 1041 |
#: 60cfb30189bc4622b9f0f10d57e8cebb |
| 1042 |
msgid "translations" |
| 1043 |
msgstr "translations" |
| 1044 |
|
| 1045 |
#: ../../themes.rst:474 ../../themes.rst:533 5086f31401d243e5ba1e7d3a4dbc75ea |
| 1046 |
#: 6c9e4cba9d80461787be1e245ea0e77c |
| 1047 |
msgid "List of translations :ref:`Article <object-article>` objects." |
| 1048 |
msgstr "当前文章所有翻译版本的 :ref:`Article <object-article>` 对象。" |
| 1049 |
|
| 1050 |
#: ../../themes.rst:476 0bbe38a721924758b16f7ed92bd47060 |
| 1051 |
msgid "URL to the article page." |
| 1052 |
msgstr "文章页面的URL。" |
| 1053 |
|
| 1054 |
#: ../../themes.rst:485 6a1b829fd11b4a5aaa913e8ab5d8cb9a |
| 1055 |
msgid "Author / Category / Tag" |
| 1056 |
msgstr "Author / Category / Tag" |
| 1057 |
|
| 1058 |
#: ../../themes.rst:487 e74be0b0e7d7477791a14dc892a01970 |
| 1059 |
msgid "The string representation of those objects is the `name` attribute." |
| 1060 |
msgstr "这些对象的字符串表示与 `name` 属性一致。" |
| 1061 |
|
| 1062 |
#: ../../themes.rst:492 95f673648cd347589e30bac268c62402 |
| 1063 |
msgid "name" |
| 1064 |
msgstr "name" |
| 1065 |
|
| 1066 |
#: ../../themes.rst:492 c85c4552f17e47ce8e75aa83968488b7 |
| 1067 |
msgid "Name of this object [1]_." |
| 1068 |
msgstr "当前对象的名称 [1]_ 。" |
| 1069 |
|
| 1070 |
#: ../../themes.rst:493 9ab58cf8d1c14233b5fab67bcff1ed07 |
| 1071 |
msgid "Author page name." |
| 1072 |
msgstr "作者页面的名称。" |
| 1073 |
|
| 1074 |
#: ../../themes.rst:494 8924be38e76744c18a232657e3e53541 |
| 1075 |
msgid "Location to save the author page." |
| 1076 |
msgstr "保存当前作者页面的路径。" |
| 1077 |
|
| 1078 |
#: ../../themes.rst:496 d836061f54274605b775c9a303e73355 |
| 1079 |
msgid "URL to the author page." |
| 1080 |
msgstr "作者页面的URL。" |
| 1081 |
|
| 1082 |
#: ../../themes.rst:499 8a004fbcd1134a6aa51ecc83ead04eb3 |
| 1083 |
msgid "for Author object, coming from `:authors:` or `AUTHOR`." |
| 1084 |
msgstr "对于Author对象,此属性值由 `:authors:` 或 `AUTHOR` 得来。" |
| 1085 |
|
| 1086 |
#: ../../themes.rst:504 015a5ef21bc1482baa94fe2ecc389be9 |
| 1087 |
msgid "Page" |
| 1088 |
msgstr "Page" |
| 1089 |
|
| 1090 |
#: ../../themes.rst:506 e509492329b543b094117d9b207d40c1 |
| 1091 |
msgid "The string representation of a Page is the `source_path` attribute." |
| 1092 |
msgstr "Page对象的字符串表示与 `source_path` 属性一致。" |
| 1093 |
|
| 1094 |
#: ../../themes.rst:511 acbd8346326242e3a6124d349d90c83f |
| 1095 |
msgid "The :ref:`Author <object-author_cat_tag>` of this page." |
| 1096 |
msgstr "当前页面的 :ref:`Author <object-author_cat_tag>` 。" |
| 1097 |
|
| 1098 |
#: ../../themes.rst:513 17df00ade1b84d89b90e0cf8949014c5 |
| 1099 |
msgid "The rendered content of the page." |
| 1100 |
msgstr "当前页面渲染后的内容。" |
| 1101 |
|
| 1102 |
#: ../../themes.rst:514 50ec2f44596c4f849458456113b6688d |
| 1103 |
msgid "Datetime object representing the page date." |
| 1104 |
msgstr "当前页面日期对应的Datetime对象。" |
| 1105 |
|
| 1106 |
#: ../../themes.rst:521 29fd9eb25f1643bc844a9480618ddee3 |
| 1107 |
msgid "Page header metadata `dict`." |
| 1108 |
msgstr "页面元数据的 `字典` 。" |
| 1109 |
|
| 1110 |
#: ../../themes.rst:522 caeac875f56345dfb4b871dd5cc47ff6 |
| 1111 |
msgid "Location to save the page." |
| 1112 |
msgstr "保存页面的位置。" |
| 1113 |
|
| 1114 |
#: ../../themes.rst:524 ee2e9caa90d24f7f8106e82449194c5b |
| 1115 |
msgid "Full system path of the page source file." |
| 1116 |
msgstr "页面源文件的完整系统路径。" |
| 1117 |
|
| 1118 |
#: ../../themes.rst:525 4ac1a61bb61b491ab05058392e561819 |
| 1119 |
msgid "Relative path from PATH_ to the page source file." |
| 1120 |
msgstr "页面源文件相对于 PATH_ 的相对路径。" |
| 1121 |
|
| 1122 |
#: ../../themes.rst:526 1e21d2a5056e4f56b1fb9aeb9b56240a |
| 1123 |
msgid "The page status, can be any of 'published', 'hidden' or 'draft'." |
| 1124 |
msgstr "页面的状态,可能值有'published'、'hidden'或者'draft'。" |
| 1125 |
|
| 1126 |
#: ../../themes.rst:532 0afb2b618cdd49d5b6f4c37dfa84c847 |
| 1127 |
msgid "Title of the page." |
| 1128 |
msgstr "页面的标题。" |
| 1129 |
|
| 1130 |
#: ../../themes.rst:535 e4f719f69ae3495280e4953b0e948e02 |
| 1131 |
msgid "URL to the page." |
| 1132 |
msgstr "页面的URL" |
| 1133 |
|
| 1134 |
#: ../../themes.rst:542 dbc8f1369a294996ac59e07d955880b6 |
| 1135 |
msgid "Feeds" |
| 1136 |
msgstr "订阅源" |
| 1137 |
|
| 1138 |
#: ../../themes.rst:544 dbfa3023cab6407cb324cffe523c8533 |
| 1139 |
msgid "" |
| 1140 |
"The feed variables changed in 3.0. Each variable now explicitly lists " |
| 1141 |
"ATOM or RSS in the name. ATOM is still the default. Old themes will need " |
| 1142 |
"to be updated. Here is a complete list of the feed variables::" |
| 1143 |
msgstr "" |
| 1144 |
"订阅源相关变量在3.0版本发生过变化。各变量现在都在名称中显示地表达了属于ATOM还是RSS。" |
| 1145 |
"默认使用ATOM。旧的主题需要进行更新。下面是订阅源相关变量的完整列表:" |
| 1146 |
|
| 1147 |
#: ../../themes.rst:563 ee43d4b51dda44288f9786eefb8bf62c |
| 1148 |
msgid "Inheritance" |
| 1149 |
msgstr "继承" |
| 1150 |
|
| 1151 |
#: ../../themes.rst:565 a921f3b3e050422db6694600b6ae3379 |
| 1152 |
msgid "" |
| 1153 |
"Since version 3.0, Pelican supports inheritance from the ``simple`` " |
| 1154 |
"theme, so you can re-use the ``simple`` theme templates in your own " |
| 1155 |
"themes." |
| 1156 |
msgstr "" |
| 1157 |
"从3.0版本开始,Pelican支持从 ``simple`` 主题继承,因此可以在你自己的主题中" |
| 1158 |
"重用 ``simple`` 主题。" |
| 1159 |
|
| 1160 |
#: ../../themes.rst:568 36142bb5338a43a5bf0d9e53b52c0c05 |
| 1161 |
msgid "" |
| 1162 |
"If one of the mandatory files in the ``templates/`` directory of your " |
| 1163 |
"theme is missing, it will be replaced by the matching template from the " |
| 1164 |
"``simple`` theme. So if the HTML structure of a template in the " |
| 1165 |
"``simple`` theme is right for you, you don't have to write a new template" |
| 1166 |
" from scratch." |
| 1167 |
msgstr "" |
| 1168 |
"如果 ``templates/`` 目录中缺失了的某些必须要有的文件,会自动使用 ``simple`` " |
| 1169 |
"主题中的对应模板。因此如果 ``simple`` 主题中的一些模板正合你意,就没必要重新" |
| 1170 |
"写个新的了。" |
| 1171 |
|
| 1172 |
#: ../../themes.rst:573 d4c77f03fe8049ed82ea0870e4384991 |
| 1173 |
#, python-format |
| 1174 |
msgid "" |
| 1175 |
"You can also extend templates from the ``simple`` theme in your own " |
| 1176 |
"themes by using the ``{% extends %}`` directive as in the following " |
| 1177 |
"example:" |
| 1178 |
msgstr "" |
| 1179 |
"你也可以使用 ``{% extends %}`` 指令在你自己的主题中扩展 ``simple`` 主题:" |
| 1180 |
|
| 1181 |
#: ../../themes.rst:584 6c8634ea148d48e68124f8b240de47c3 |
| 1182 |
msgid "Example" |
| 1183 |
msgstr "例子" |
| 1184 |
|
| 1185 |
#: ../../themes.rst:586 c5845f57a75642a5a2a0c9018fd1dac0 |
| 1186 |
msgid "With this system, it is possible to create a theme with just two files." |
| 1187 |
msgstr "利用这种自动继承的规则,只用两个文件就可以创建一个主题。" |
| 1188 |
|
| 1189 |
#: ../../themes.rst:589 c7ea4273a1ca4050968a1308a5a47c51 |
| 1190 |
msgid "base.html" |
| 1191 |
msgstr "base.html" |
| 1192 |
|
| 1193 |
#: ../../themes.rst:591 4fa7a95ff17c4421bd39c45a9cd42f8f |
| 1194 |
msgid "The first file is the ``templates/base.html`` template:" |
| 1195 |
msgstr "第一个文件是 ``templates/base.html`` 模板:" |
| 1196 |
|
| 1197 |
#: ../../themes.rst:602 87484a8d548449b4b58d6773201ddf67 |
| 1198 |
msgid "" |
| 1199 |
"On the first line, we extend the ``base.html`` template from the " |
| 1200 |
"``simple`` theme, so we don't have to rewrite the entire file." |
| 1201 |
msgstr "" |
| 1202 |
"第一行中,从 ``simple`` 主题中扩展了 ``base.html`` 模板,因此无需重写整个文件。" |
| 1203 |
|
| 1204 |
#: ../../themes.rst:604 20209f5462c24d3b9918f14db3dc9f0c |
| 1205 |
msgid "" |
| 1206 |
"On the third line, we open the ``head`` block which has already been " |
| 1207 |
"defined in the ``simple`` theme." |
| 1208 |
msgstr "" |
| 1209 |
"第三行,我们开始声明 ``head`` 块,这个块已在 ``simple`` 中进行了定义。" |
| 1210 |
|
| 1211 |
#: ../../themes.rst:606 9d6577b07bdd4eab814a188effd796c7 |
| 1212 |
msgid "" |
| 1213 |
"On the fourth line, the function ``super()`` keeps the content previously" |
| 1214 |
" inserted in the ``head`` block." |
| 1215 |
msgstr "" |
| 1216 |
"第四行中, ``super()`` 函数使得已添加到 ``head`` 块中的前序内容得以保留。" |
| 1217 |
|
| 1218 |
#: ../../themes.rst:608 157f34425e4d4b119c97bc7a9cb513ff |
| 1219 |
msgid "On the fifth line, we append a stylesheet to the page." |
| 1220 |
msgstr "第五行为页面添加了一个样式表。" |
| 1221 |
|
| 1222 |
#: ../../themes.rst:609 bf52b4834d67475194b43b35c2a9dfde |
| 1223 |
msgid "On the last line, we close the ``head`` block." |
| 1224 |
msgstr "最后一行结束对 ``head`` 块的声明。" |
| 1225 |
|
| 1226 |
#: ../../themes.rst:611 968532a3244e436fba5b6df5c996888d |
| 1227 |
msgid "" |
| 1228 |
"This file will be extended by all the other templates, so the stylesheet " |
| 1229 |
"will be linked from all pages." |
| 1230 |
msgstr "" |
| 1231 |
"其他所有模板都会在此文件基础上进行扩展,因此样式表会被所有页面引用。" |
| 1232 |
|
| 1233 |
#: ../../themes.rst:615 62629bf8d5ea4271a598b95ebede4757 |
| 1234 |
msgid "style.css" |
| 1235 |
msgstr "style.css" |
| 1236 |
|
| 1237 |
#: ../../themes.rst:617 e8e0ee6348e84ff590fe5afebe39ec63 |
| 1238 |
msgid "The second file is the ``static/css/style.css`` CSS stylesheet:" |
| 1239 |
msgstr "第二个文件是CSS样式表 ``static/css/style.css`` :" |
| 1240 |
|
| 1241 |
#: ../../themes.rst:661 80ec5c70bd9b49e7b22718cc18e46b84 |
| 1242 |
msgid "Download" |
| 1243 |
msgstr "下载" |
| 1244 |
|
| 1245 |
#: ../../themes.rst:663 acf9dfc296794b3c928572374b39926e |
| 1246 |
msgid "" |
| 1247 |
"You can download this example theme :download:`here <_static/theme-" |
| 1248 |
"basic.zip>`." |
| 1249 |
msgstr "" |
| 1250 |
"可以在 :download:`这里 <_static/theme-basic.zip>` 下载此例。" |
| 1251 |
|
| 1252 |
#~ msgid "" |
| 1253 |
#~ "To generate its HTML output, Pelican " |
| 1254 |
#~ "uses the `Jinja " |
| 1255 |
#~ "<https://palletsprojects.com/p/jinja/>`_ templating engine" |
| 1256 |
#~ " due to its flexibility and " |
| 1257 |
#~ "straightforward syntax. If you want to" |
| 1258 |
#~ " create your own theme, feel free " |
| 1259 |
#~ "to take inspiration from the `\"simple\"" |
| 1260 |
#~ " theme " |
| 1261 |
#~ "<https://github.com/getpelican/pelican/tree/master/pelican/themes/simple/templates>`_." |
| 1262 |
#~ msgstr "" |
| 1263 |
|
| 1264 |
#~ msgid "" |
| 1265 |
#~ "You can see an example of how " |
| 1266 |
#~ "to use `period` in the `\"simple\" " |
| 1267 |
#~ "theme period_archives.html template " |
| 1268 |
#~ "<https://github.com/getpelican/pelican/blob/master/pelican/themes/simple/templates/period_archives.html>`_." |
| 1269 |
#~ msgstr "" |