diff --git a/_config.yml b/_config.yml index 7b72b7aa98..d6809185fc 100644 --- a/_config.yml +++ b/_config.yml @@ -894,6 +894,11 @@ vendors: needmoreshare2_js: needmoreshare2_css: + # bookmark + # Internal version: 1.0.0 + # https://github.com/theme-next/theme-next-bookmark + bookmark: + # Assets css: css diff --git a/layout/_third-party/bookmark.swig b/layout/_third-party/bookmark.swig index 8b37b58256..f28c12e28f 100644 --- a/layout/_third-party/bookmark.swig +++ b/layout/_third-party/bookmark.swig @@ -1,5 +1,8 @@ {% if theme.bookmark and theme.bookmark.enable %} {% set bookmark_uri = url_for(theme.vendors._internal + '/bookmark/bookmark.min.js?v=1.0')%} + {% if theme.vendors.bookmark %} + {% set bookmark_uri = theme.vendors.bookmark %} + {% endif %}