diff --git a/_config.yml b/_config.yml index fdddc5108e..bc9ebf3bc5 100644 --- a/_config.yml +++ b/_config.yml @@ -185,7 +185,7 @@ scheme: Muse # --------------------------------------------------------------- # Sidebar Settings -# See: https://theme-next.org/docs/theme-settings/sidebar/ +# See: https://theme-next.org/docs/theme-settings/sidebar # --------------------------------------------------------------- # Posts / Categories / Tags in sidebar. @@ -290,7 +290,7 @@ chat: # --------------------------------------------------------------- # Post Settings -# See: https://theme-next.org/docs/theme-settings/posts/ +# See: https://theme-next.org/docs/theme-settings/posts # --------------------------------------------------------------- # Set the text alignment in the posts. @@ -597,7 +597,7 @@ calendar: # --------------------------------------------------------------- # Comments and Widgets -# See: https://theme-next.org/docs/third-party-services/comments-and-widgets/ +# See: https://theme-next.org/docs/third-party-services/comments-and-widgets # --------------------------------------------------------------- # Disqus @@ -682,7 +682,7 @@ gitalk: # --------------------------------------------------------------- # Content Sharing Services -# See: https://theme-next.org/docs/third-party-services/content-sharing-services/ +# See: https://theme-next.org/docs/third-party-services/content-sharing-services # --------------------------------------------------------------- # Baidu Share @@ -741,7 +741,7 @@ needmoreshare2: # --------------------------------------------------------------- # Statistics and Analytics -# See: https://theme-next.org/docs/third-party-services/statistics-and-analytics/ +# See: https://theme-next.org/docs/third-party-services/statistics-and-analytics # --------------------------------------------------------------- # Baidu Analytics ID @@ -841,7 +841,7 @@ busuanzi_count: # --------------------------------------------------------------- # Search Services -# See: https://theme-next.org/docs/third-party-services/search-services/ +# See: https://theme-next.org/docs/third-party-services/search-services # --------------------------------------------------------------- # Algolia Search @@ -874,7 +874,7 @@ local_search: # --------------------------------------------------------------- # Chat Services -# See: https://theme-next.org/docs/third-party-services/chat-services/ +# See: https://theme-next.org/docs/third-party-services/chat-services # --------------------------------------------------------------- # Chatra Support @@ -1023,7 +1023,7 @@ canvas_ribbon: #! --------------------------------------------------------------- #! DO NOT EDIT THE FOLLOWING SETTINGS #! UNLESS YOU KNOW WHAT YOU ARE DOING -#! See: https://theme-next.org/docs/advanced-settings/ +#! See: https://theme-next.org/docs/advanced-settings #! --------------------------------------------------------------- # Script Vendors. Set a CDN address for the vendor you want to customize. diff --git a/layout/_partials/head/head-unique.swig b/layout/_partials/head/head-unique.swig index 8aa87021e9..dcdbbc962a 100644 --- a/layout/_partials/head/head-unique.swig +++ b/layout/_partials/head/head-unique.swig @@ -14,9 +14,10 @@ {% endif %} -{# Canonical, good for google search engine (SEO) : https://support.google.com/webmasters/answer/139066 #} {% if theme.canonical %} - + {% set without_index = url.replace('index.html', '') %} + {% set without_html = without_index.replace('.html', '') %} + {% endif %} {# Exports some front-matter variables to Front-End #} diff --git a/scripts/tags/button.js b/scripts/tags/button.js index 13121ee801..ea530e24eb 100644 --- a/scripts/tags/button.js +++ b/scripts/tags/button.js @@ -1,5 +1,5 @@ /** - * button.js | https://theme-next.org/docs/tag-plugins/button/ + * button.js | https://theme-next.org/docs/tag-plugins/button */ /* global hexo */ diff --git a/scripts/tags/exturl.js b/scripts/tags/exturl.js index 8ba6ce392a..b0286e7f93 100644 --- a/scripts/tags/exturl.js +++ b/scripts/tags/exturl.js @@ -1,5 +1,5 @@ /** - * exturl.js | https://theme-next.org/docs/tag-plugins/exturl/ + * exturl.js | https://theme-next.org/docs/tag-plugins/exturl * Note: need to remove in NexT v7.0.0 */ diff --git a/scripts/tags/full-image.js b/scripts/tags/full-image.js index 1ce80bcc2a..84b70f5d53 100644 --- a/scripts/tags/full-image.js +++ b/scripts/tags/full-image.js @@ -1,5 +1,5 @@ /** - * full-image.js | https://theme-next.org/docs/tag-plugins/full-image/ + * full-image.js | https://theme-next.org/docs/tag-plugins/full-image */ /* global hexo */ diff --git a/scripts/tags/group-pictures.js b/scripts/tags/group-pictures.js index 153645d9bb..0836d49344 100644 --- a/scripts/tags/group-pictures.js +++ b/scripts/tags/group-pictures.js @@ -1,5 +1,5 @@ /** - * group-pictures.js | https://theme-next.org/docs/tag-plugins/group-pictures/ + * group-pictures.js | https://theme-next.org/docs/tag-plugins/group-pictures */ /* global hexo */ diff --git a/scripts/tags/label.js b/scripts/tags/label.js index 33181d1403..94fb38a0d5 100644 --- a/scripts/tags/label.js +++ b/scripts/tags/label.js @@ -1,5 +1,5 @@ /** - * label.js | https://theme-next.org/docs/tag-plugins/label/ + * label.js | https://theme-next.org/docs/tag-plugins/label */ /* global hexo */ diff --git a/scripts/tags/mermaid.js b/scripts/tags/mermaid.js index 7b5aae6a6c..aa8e3bea19 100644 --- a/scripts/tags/mermaid.js +++ b/scripts/tags/mermaid.js @@ -1,5 +1,5 @@ /** - * mermaid.js | https://theme-next.org/docs/tag-plugins/mermaid/ + * mermaid.js | https://theme-next.org/docs/tag-plugins/mermaid */ /* global hexo */ diff --git a/scripts/tags/note.js b/scripts/tags/note.js index 9bc02b60e2..578e2b36bf 100644 --- a/scripts/tags/note.js +++ b/scripts/tags/note.js @@ -1,5 +1,5 @@ /** - * note.js | https://theme-next.org/docs/tag-plugins/note/ + * note.js | https://theme-next.org/docs/tag-plugins/note */ /* global hexo */ diff --git a/scripts/tags/pdf.js b/scripts/tags/pdf.js index f9b5ce3cb7..349e5fcf70 100644 --- a/scripts/tags/pdf.js +++ b/scripts/tags/pdf.js @@ -1,5 +1,5 @@ /** - * pdf.js | https://theme-next.org/docs/tag-plugins/pdf/ + * pdf.js | https://theme-next.org/docs/tag-plugins/pdf */ /* global hexo */ diff --git a/scripts/tags/tabs.js b/scripts/tags/tabs.js index 08474ab7b7..4b39576f60 100644 --- a/scripts/tags/tabs.js +++ b/scripts/tags/tabs.js @@ -1,5 +1,5 @@ /** - * tabs.js | https://theme-next.org/docs/tag-plugins/tabs/ + * tabs.js | https://theme-next.org/docs/tag-plugins/tabs */ /* global hexo */ diff --git a/scripts/tags/video.js b/scripts/tags/video.js index aafd576882..1688b8242c 100644 --- a/scripts/tags/video.js +++ b/scripts/tags/video.js @@ -1,5 +1,5 @@ /** - * video.js | https://theme-next.org/docs/tag-plugins/video/ + * video.js | https://theme-next.org/docs/tag-plugins/video */ /* global hexo */