diff options
Diffstat (limited to 'theme/custom/base.html')
-rwxr-xr-x | theme/custom/base.html | 54 |
1 files changed, 23 insertions, 31 deletions
diff --git a/theme/custom/base.html b/theme/custom/base.html index 829cc1f..debd12b 100755 --- a/theme/custom/base.html +++ b/theme/custom/base.html @@ -3,7 +3,6 @@ {{ msg % kwargs }} {%- endmacro -%} {% endif %} - <!DOCTYPE html> <html lang="{{ DEFAULT_LANG }}"> <head> @@ -47,7 +46,7 @@ <link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.less"> <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script> {% else %} - <link rel="stylesheet" title="default theme" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css"> + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css"> {% endif %} {# DARK THEME STYLES #} @@ -92,11 +91,6 @@ {% endif %} {% if PLUGINS and 'tipue_search' in PLUGINS %} - <script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/jquery.min.js"></script> - <script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script> - <script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script> - <script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch_set.min.js"></script> - <script src="{{ SITEURL }}/tipuesearch_content.js"></script> <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.css" /> {% endif %} @@ -141,19 +135,22 @@ <meta name="msapplication-TileColor" content="{{ BROWSER_COLOR }}"> {% endif %} - {% if REL_CANONICAL %} - {% if page %} - <link rel="canonical" href="{{ SITEURL }}/{{ page.url }}"> - {% elif article %} - <link rel="canonical" href="{{ SITEURL }}/{{ article.url }}"> - {% elif page_name == 'index' and not articles_previous_page %} - <link rel="canonical" href="{{ SITEURL }}"> - {% elif author or category or tag or page_name == 'index' %} - <link rel="canonical" href="{{ SITEURL }}/{{ articles_page.url }}"> - {% else %} - <link rel="canonical" href="{{ SITEURL }}/{{ output_file }}"> + {% if not PLUGINS or 'seo' not in PLUGINS %} + {% if REL_CANONICAL %} + {% if page %} + <link rel="canonical" href="{{ SITEURL }}/{{ page.url }}"> + {% elif article %} + <link rel="canonical" href="{{ SITEURL }}/{{ article.url }}"> + {% elif page_name == 'index' and not articles_previous_page %} + <link rel="canonical" href="{{ SITEURL }}"> + {% elif author or category or tag or page_name == 'index' %} + <link rel="canonical" href="{{ SITEURL }}/{{ articles_page.url }}"> + {% else %} + <link rel="canonical" href="{{ SITEURL }}/{{ output_file }}"> + {% endif %} {% endif %} - {% endif %} + {% endif %} + {% block meta %} <meta name="author" content="{{ AUTHOR }}" /> <meta name="description" content="{{ SITEDESCRIPTION }}" /> @@ -174,6 +171,9 @@ {% if GOOGLE_TAG_MANAGER %} {% include "partial/gtm.html" %} {% endif %} + {% if MICROSOFT_CLARITY %} + {% include "partial/clarity.html" %} + {% endif %} </head> <body {% if not THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}class="{{ THEME_COLOR|default('light') }}-theme"{% endif %}> {% if GOOGLE_TAG_MANAGER %} @@ -181,7 +181,7 @@ {% endif %} <aside> <div> - <a href="{{ SITEURL }}"> + <a href="{{ SITEURL }}/"> {% if SITELOGO %} <img src="{{ SITELOGO }}" alt="{{ SITETITLE }}" title="{{ SITETITLE }}"> {% else %} @@ -190,13 +190,13 @@ </a> <h1> - <a href="{{ SITEURL }}">{{ SITETITLE }}</a> + <a href="{{ SITEURL }}/">{{ SITETITLE }}</a> </h1> {% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %} {% if PLUGINS and 'tipue_search' in PLUGINS %} - <form class="navbar-search" action="/search.html" role="search"> + <form class="navbar-search" action="{{ SITEURL }}/search.html" role="search"> <input type="text" name="q" id="tipue_search_input" placeholder="{{ _('Search...') }}"> </form> {% endif %} @@ -274,7 +274,7 @@ {% if MAIN_MENU %} <nav> - <a href="{{ SITEURL }}">{{ _('Home') }}</a> + <a href="{{ SITEURL }}/">{{ _('Home') }}</a> {% for title, link in MENUITEMS %} <a href="{{ link }}">{{ _(title) }}</a> @@ -320,14 +320,6 @@ {% include 'partial/github.html' %} {% endif %} - {% if PLUGINS and 'tipue_search' in PLUGINS %} - <script> - $(document).ready(function() { - $('#tipue_search_input').tipuesearch(); - }); - </script> - {% endif %} - {% block additional_js %}{% endblock %} </body> </html> |