diff options
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | theme/templates/includes/book/summary.html | 9 |
2 files changed, 14 insertions, 0 deletions
@@ -92,6 +92,11 @@ Here are the options that can be stored in this file: "issues": null, "contribute": null, + // Custom links at top of sidebar + "custom": { + "Custom link name": "https://customlink.com" + }, + // Sharing links "sharing": { "google": null, diff --git a/theme/templates/includes/book/summary.html b/theme/templates/includes/book/summary.html index 8dfdb70..8014d7e 100644 --- a/theme/templates/includes/book/summary.html +++ b/theme/templates/includes/book/summary.html @@ -59,6 +59,15 @@ </li> {% endif %} + {% if options.links.custom %} + {% for link in options.links.custom %} + {% set _divider = true %} + <li> + <a href="{{ options.links.custom[loop.key] }}" target="blank" class="custom-link">{{ loop.key }}</a> + </li> + {% endfor %} + {% endif %} + {% if _divider %} <li class="divider"></li> {% endif %} |