1
1
<aside >
2
2
<div class =" sidebar" >
3
3
<div class =" sidebar-container" >
4
-
4
+ {% for imp in dynamics .sidebar .top %}
5
+ {% include imp %}
6
+ {% endfor %}
5
7
{% if settings .dgShowLocalGraph == = true %}
6
8
<div class =" graph" >
7
9
<div class =" graph-title-container" >
27
29
</div >
28
30
<div id =" link-graph" ></div >
29
31
</div >
30
- {% endif %}
32
+ {% endif %}
31
33
32
- {% if settings .dgShowToc == = true %}
33
- {% set tocHtml = (content and (content |toc )) %}
34
- {% if tocHtml %}
35
- <div class =" toc" >
36
- <div class =" toc-title-container" >
37
- <div class =" toc-title" >
38
- On this page
39
- </div >
40
- </div >
41
- <div class =" toc-container" >
42
- {{ tocHtml | safe }}
34
+ {% if settings .dgShowToc == = true %}
35
+ {% set tocHtml = (content and (content |toc )) %}
36
+ {% if tocHtml %}
37
+ <div class =" toc" >
38
+ <div class =" toc-title-container" >
39
+ <div class =" toc-title" >
40
+ On this page
43
41
</div >
44
42
</div >
45
- {% endif %}
46
-
43
+ <div class =" toc-container" >
44
+ {{ tocHtml | safe }}
45
+ </div >
46
+ </div >
47
47
{% endif %}
48
48
49
+ {% endif %}
50
+
51
+ {% if settings .dgShowBacklinks == = true %}
49
52
{% if settings .dgShowBacklinks == = true %}
50
- {% if settings .dgShowBacklinks == = true %}
51
- <div class =" backlinks" >
52
- <div class =" backlink-title" style =" margin : 4px 0 !important ;" >Pages mentioning this page</div >
53
- <div class =" backlink-list" >
54
- {%- if page .url == " /" -%}
55
- {%- if graph .nodes [graph .homeAlias ].backLinks .length == = 0 -%}
56
- <div class =" backlink-card" >
57
- <span class =" no-backlinks-message" >No other pages mentions this page</span >
58
- </div >
59
- {%- endif -%}
60
- {%- for backlink in graph .nodes [graph .homeAlias ].backLinks -%}
61
- {%- if graph .nodes [backlink ].url != graph .homeAlias -%}
53
+ <div class =" backlinks" >
54
+ <div class =" backlink-title" style =" margin : 4px 0 !important ;" >Pages mentioning this page</div >
55
+ <div class =" backlink-list" >
56
+ {%- if page .url == " /" -%}
57
+ {%- if graph .nodes [graph .homeAlias ].backLinks .length == = 0 -%}
62
58
<div class =" backlink-card" >
63
- <i class =" fa fa-link " ></ i > < a href = " {{graph.nodes[backlink].url}} " > {{ graph . nodes [ backlink ]. title }} </ a >
59
+ <span class =" no-backlinks-message " >No other pages mentions this page</ span >
64
60
</div >
65
- {%- endif -%}
66
- {%- endfor -%}
67
- {%- else -%}
68
- {%- if graph . nodes [ page . url ]. backLinks . length == = 0 -%}
69
- < div class = " backlink-card " >
70
- < span class = " no-backlinks-message " >No other pages mentions this page</ span >
71
- </ div >
72
- {%- endif -%}
73
- {%- for backlink in graph . nodes [ page . url ]. backLinks -%}
74
- {%- if graph .nodes [backlink ] .url != page . url -%}
61
+ {%- endif -%}
62
+ {%- for backlink in graph . nodes [ graph . homeAlias ]. backLinks -%}
63
+ {%- if graph . nodes [ backlink ]. url != graph . homeAlias -%}
64
+ < div class = " backlink-card " >
65
+ < i class = " fa fa-link " ></ i > < a href = " {{graph.nodes[ backlink].url}} " > {{ graph . nodes [ backlink ]. title }} </ a >
66
+ </ div >
67
+ {%- endif -%}
68
+ {%- endfor -%}
69
+ {%- else -%}
70
+ {%- if graph .nodes [page .url ]. backLinks . length == = 0 -%}
75
71
<div class =" backlink-card" >
76
- <i class =" fa fa-link " ></ i > < a href = " {{graph.nodes[backlink].url}} " > {{ graph . nodes [ backlink ]. title }} </ a >
72
+ <span class =" no-backlinks-message " >No other pages mentions this page</ span >
77
73
</div >
78
- {%- endif -%}
79
- {%- endfor -%}
80
74
{%- endif -%}
75
+ {%- for backlink in graph .nodes [page .url ].backLinks -%}
76
+ {%- if graph .nodes [backlink ].url != page .url -%}
77
+ <div class =" backlink-card" >
78
+ <i class =" fa fa-link" ></i > <a href =" {{graph.nodes[backlink].url}}" >{{ graph .nodes [backlink ].title }} </a >
81
79
</div >
82
- </div >
83
- {% endif %}
84
- {% endif %}
80
+ {%- endif -%}
81
+ {%- endfor -%}
82
+ {%- endif -%}
83
+ </div >
85
84
</div >
86
- </div >
87
- </aside >
85
+ {% endif %}
86
+ {% endif %}
87
+ {% for imp in dynamics .sidebar .bottom %}
88
+ {% include imp %}
89
+ {% endfor %}
90
+ </div >
91
+ </div >
92
+ </aside >
88
93
89
- {% if settings .dgShowLocalGraph == = true %}
90
- {% include " components/graphScript.njk" %}
91
- {% endif %}
94
+ {% if settings .dgShowLocalGraph == = true %}
95
+ {% include " components/graphScript.njk" %}
96
+ {% endif %}
0 commit comments