diff --git a/README.md b/README.md index 8c1530354..f7cecc579 100644 --- a/README.md +++ b/README.md @@ -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 8dfdb701b..8014d7ee1 100644 --- a/theme/templates/includes/book/summary.html +++ b/theme/templates/includes/book/summary.html @@ -59,6 +59,15 @@ {% endif %} + {% if options.links.custom %} + {% for link in options.links.custom %} + {% set _divider = true %} +
  • + {{ loop.key }} +
  • + {% endfor %} + {% endif %} + {% if _divider %}
  • {% endif %}