File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,10 @@ def config_inited(app, config):
91
91
)
92
92
app .config .matched_blog_posts = matched_patterns
93
93
94
+ # Add ablog stylesheets to static_path.
95
+ static_path = os .path .abspath (os .path .join (os .path .dirname (__file__ ), "stylesheets" ))
96
+ app .config .html_static_path .append (static_path )
97
+
94
98
95
99
def builder_inited (app ):
96
100
if not isinstance (app .builder , StandaloneHTMLBuilder ) or app .config .skip_injecting_base_ablog_templates :
Original file line number Diff line number Diff line change
1
+ ul .ablog-cloud {
2
+ list-style : none;
3
+ overflow : auto;
4
+ }
5
+
6
+ ul .ablog-cloud li {
7
+ float : left;
8
+ height : 20pt ;
9
+ line-height : 18pt ;
10
+ margin-right : 5px ;
11
+ }
12
+
13
+ ul .ablog-cloud a {
14
+ text-decoration : none;
15
+ vertical-align : middle;
16
+ }
17
+
18
+ li .ablog-cloud-1 {
19
+ font-size : 80% ;
20
+ }
21
+
22
+ li .ablog-cloud-2 {
23
+ font-size : 95% ;
24
+ }
25
+
26
+ li .ablog-cloud-3 {
27
+ font-size : 110% ;
28
+ }
29
+
30
+ li .ablog-cloud-4 {
31
+ font-size : 125% ;
32
+ }
33
+
34
+ li .ablog-cloud-5 {
35
+ font-size : 140% ;
36
+ }
Original file line number Diff line number Diff line change 1
1
{% if ablog.tags %}
2
2
< div class ="ablog-sidebar-item ablog__tags ">
3
+ < link rel ="stylesheet " href ="/_static/ablog/tagcloud.css " type ="text/css " />
3
4
< h3 > < a href ="{{ pathto(ablog.tags.path) }} "> {{ gettext('Tags') }}</ a > </ h3 >
4
5
< ul class ="ablog-cloud ">
5
6
{% for coll in ablog.tags %}
Original file line number Diff line number Diff line change 1
1
{{ warning("tagcloud.html is an old template path, that is no longer used by ablog. Please use ablog/tagcloud.html instead.") }}
2
2
{% if ablog.tags %}
3
3
< div class ="ablog-sidebar-item ablog__tags ">
4
+ < link rel ="stylesheet " href ="/_static/ablog/tagcloud.css " type ="text/css " />
4
5
< h3 > < a href ="{{ pathto(ablog.tags.path) }} "> {{ gettext('Tags') }}</ a > </ h3 >
5
6
< ul class ="ablog-cloud ">
6
7
{% for coll in ablog.tags %}
You can’t perform that action at this time.
0 commit comments