Commit e58455f 1 parent df70429 commit e58455f Copy full SHA for e58455f
File tree 1 file changed +4
-0
lines changed
src/ansys_sphinx_theme/theme/ansys_sphinx_theme
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 7
7
<!-- Include desired assets -->
8
8
< script src ="https://code.jquery.com/jquery-3.6.4.min.js "> </ script >
9
9
{% set assets = page_assets.get(pagename, {}) %}
10
+ {% if assets is defined and assets|length > 0 %}
10
11
{% if assets.get("needs_datatables") %}
11
12
< link href ="https://cdn.datatables.net/v/dt/dt-2.2.0/datatables.min.css " rel ="stylesheet ">
12
13
< script src ="https://cdn.datatables.net/v/dt/dt-2.2.0/datatables.min.js "> </ script >
13
14
{% endif %}
15
+ {% endif %}
14
16
15
17
{% if theme_show_breadcrumbs %}
16
18
< link href ="{{ pathto('_static/css/breadcrumbs.css', 1) }} " rel ="stylesheet " />
36
38
37
39
<!-- Include desired assets -->
38
40
{% set assets = page_assets.get(pagename, {}) %}
41
+ {% if assets is defined and assets|length > 0 %}
39
42
{% if assets.get("needs_datatables") %}
40
43
< script >
41
44
$ ( document ) . ready ( function ( ) {
42
45
$ ( "table.datatable" ) . DataTable ( ) ;
43
46
} ) ;
44
47
</ script >
45
48
{% endif %}
49
+ {% endif %}
46
50
47
51
{%- endblock %}
You can’t perform that action at this time.
0 commit comments