File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
theme/templates/includes/book Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ Here are the options that can be stored in this file:
9292 " issues" : null ,
9393 " contribute" : null ,
9494
95+ // Custom links at top of sidebar
96+ " custom" : {
97+ " Custom link name" : " https://customlink.com"
98+ },
99+
95100 // Sharing links
96101 " sharing" : {
97102 " google" : null ,
Original file line number Diff line number Diff line change 5959 </ li >
6060 {% endif %}
6161
62+ {% if options.links.custom %}
63+ {% for link in options.links.custom %}
64+ {% set _divider = true %}
65+ < li >
66+ < a href ="{{ options.links.custom[loop.key] }} " target ="blank " class ="custom-link "> {{ loop.key }}</ a >
67+ </ li >
68+ {% endfor %}
69+ {% endif %}
70+
6271 {% if _divider %}
6372 < li class ="divider "> </ li >
6473 {% endif %}
You can’t perform that action at this time.
0 commit comments