diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-02 20:04:36 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-02 20:41:17 +0300 |
commit | 5b392e39514eefe9ff2dea5d0b084f00c0f740cd (patch) | |
tree | c23ed600c820c1f920f54c3947d982857e277c60 /sphinx/themes | |
parent | a9c7dd70374b60d9eee640f8c78694c0b568b589 (diff) |
refactor: Move CSS tags in basic/layout.html to ``css_files`` variable
To make CSS customizable, all CSS files in basic/layout.html has their
priority: 200. Therefore, extensions and users can insert their own
custom CSS files before or just after them.
As a side effect, the CSS tags in basic/layout.html are removed. These
CSS files will be rendered via `css_files` template variable.
refs: #8634, c5f03980107e123210fb602f4c31f5ae950e2af4
Diffstat (limited to 'sphinx/themes')
-rw-r--r-- | sphinx/themes/basic/layout.html | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html index bd56681c0..bae8ddd68 100644 --- a/sphinx/themes/basic/layout.html +++ b/sphinx/themes/basic/layout.html @@ -95,8 +95,6 @@ {%- endmacro %} {%- macro css() %} - <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" /> - <link rel="stylesheet" href="{{ pathto('_static/' + style, 1)|e }}" type="text/css" /> {%- for css in css_files %} {%- if css|attr("filename") %} {{ css_tag(css) }} |