# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://w.wzzx.xyz
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
Your theme _config.yml (Optional):
next theme config snippet
{% macro render(name, value) %}
{% import 'menu-badge.swig' as menu_badge %}
{% set itemURL = value.split('||')[0] | replace('//', '/', 'g') | trim %}
<li class="menu-item menu-item-{{ itemName | replace(' ', '-', 'g') }}{{ item_active(itemURL, 'menu-item-active') }}">
<a href="{{ url_for(itemURL) }}" rel="section">
{%- if theme.menu_settings.icons %}
<i class="menu-item-icon fa fa-fw fa-{{ value.split('||')[1] | trim | default('question-circle') }}"></i> <br />{#
#}{% endif %}
{{- __('menu.' + name ) | replace('menu.', '') -}}
{%- if theme.menu_settings.badges -%}
{{- menu_badge.render(name) | trim -}}
{%- endif -%}
</a>
</li>
{% endmacro %}
when use url_for funtion, hexo render the error relative url,
eg.
http://localhost:4000/2016/10/08/Spring-Boot%E4%BD%BF%E7%94%A8RabbitMQ/
then hexo render the tags url as
http://localhost:4000/2016/10/08/Spring-Boot%E4%BD%BF%E7%94%A8RabbitMQ/tags
but what I want is
http://localhost:4000/tags
Environment Info
Node version(
node -v
):v10.7.0
Your site
_config.yml
(Optional):Your theme
_config.yml
(Optional):next theme
config snippetHexo and Plugin version(
npm ls --depth 0
):For BUG
when use
url_for
funtion, hexo render the error relative url, eg.http://localhost:4000/2016/10/08/Spring-Boot%E4%BD%BF%E7%94%A8RabbitMQ/
then hexo render the tags url ashttp://localhost:4000/2016/10/08/Spring-Boot%E4%BD%BF%E7%94%A8RabbitMQ/tags
but what I want ishttp://localhost:4000/tags