• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョンe8226b75bdfd5a45ff81468c5b08fd06e9a60981 (tree)
日時2018-07-03 04:50:52
作者Albert Mietus < albert AT mietus DOT nl >
コミッターAlbert Mietus < albert AT mietus DOT nl >

ログメッセージ

Added some templates for ablog

変更サマリ

差分

diff -r a4e769cbfe9b -r e8226b75bdfd _templates/layout.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/_templates/layout.html Mon Jul 02 21:50:52 2018 +0200
@@ -0,0 +1,33 @@
1+{%- extends "!layout.html" %}
2+
3+
4+{% block menu %}
5+ <div class="rtd-menu-block"> {# GAM: this div is extra; the content was in 'sphinx_rtd_theme/layout.html' #}
6+ {#
7+ The singlehtml builder doesn't handle this toctree call when the
8+ toctree is empty. Skip building this for now.
9+ #}
10+ {% if 'singlehtml' not in builder %}
11+ {% set global_toc = toctree(maxdepth=theme_navigation_depth|int, collapse=theme_collapse_navigation, includehidden=True) %}
12+ {% endif %}
13+ {% if global_toc %}
14+ {{ global_toc }}
15+ {% else %}
16+ <!-- Local TOC -->
17+ <div class="local-toc">{{ toc }}</div>
18+ {% endif %}
19+ </div class="rtd-menu"> {#GAM end rtd-menu-block #}
20+ <div class="GAM-extra"> {#GAM: This is extra #}
21+ {%- if sidebars != None %}
22+ {#- new style sidebar: explicitly include/exclude templates #}
23+ {%- for sidebartemplate in sidebars %}
24+ {%- include sidebartemplate %}
25+ {%- endfor %}
26+ {%- else %}
27+ <hr/>{#GAM No extra sidebars#}
28+ {%- endif %}
29+ </div> {#GAM: end GAM-extra #}
30+{% endblock %}
31+
32+
33+
diff -r a4e769cbfe9b -r e8226b75bdfd _templates/recentposts.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/_templates/recentposts.html Mon Jul 02 21:50:52 2018 +0200
@@ -0,0 +1,9 @@
1+{% if ablog %}
2+ <h3><a href="{{ pathto(ablog.blog_path) }}">{{ gettext('Recent Posts') }}</a></h3>
3+ <ul>
4+ {% set pcount = 1 %}
5+ {% for recent in ablog.recent(5, pagename) %}
6+ <li><a href="{{ pathto(recent.docname) }}{{ anchor(recent) }}">{{ recent.date.strftime(gettext(ablog.post_date_format_short)) + " - " + recent.title }}</a></li>
7+ {% endfor %}
8+ </ul>
9+{% endif %}
diff -r a4e769cbfe9b -r e8226b75bdfd _templates/tagcloud.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/_templates/tagcloud.html Mon Jul 02 21:50:52 2018 +0200
@@ -0,0 +1,21 @@
1+{% if ablog.tags %}
2+ <h3><a href="{{ pathto(ablog.tags.path) }}">{{ gettext('Tags') }}</a></h3>
3+ <style type="text/css">
4+ ul.ablog-cloud {list-style: none; overflow: auto;}
5+ ul.ablog-cloud li {float: left; height: 20pt; line-height: 18pt; margin-right: 5px;}
6+ ul.ablog-cloud a {text-decoration: none; vertical-align: middle;}
7+ li.ablog-cloud-1{font-size: 80%;}
8+ li.ablog-cloud-2{font-size: 95%;}
9+ li.ablog-cloud-3{font-size: 110%;}
10+ li.ablog-cloud-4{font-size: 125%;}
11+ li.ablog-cloud-5{font-size: 140%;}
12+ </style>
13+ <ul class="ablog-cloud">
14+ {% for coll in ablog.tags %}
15+ {% if coll %}
16+ <li class="ablog-cloud ablog-cloud-{{ coll.relsize(5, 1) }}">
17+ <a href="{{ pathto(coll.docname) }}">{{ coll }}</a></li>
18+ {% endif %}
19+ {% endfor %}
20+ </ul>
21+{% endif %}