From f2a8cd45aaa1cae622addf9196b14ea1c36336d8 Mon Sep 17 00:00:00 2001 From: kitian616 Date: Sat, 18 Nov 2017 23:16:32 +0800 Subject: [PATCH] fix: site.nav_lists base on site.baseurl --- _includes/blog/header.html | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_includes/blog/header.html b/_includes/blog/header.html index 61870f208ab..64801fc0f9c 100644 --- a/_includes/blog/header.html +++ b/_includes/blog/header.html @@ -16,7 +16,7 @@ {% for list in site.nav_lists %} {% assign __locale = list.titles %} {% include snippets/locale-to-string.html %} -
  • {% if list.title %}{{ list.title }}{% else %}{{ __return }}{% endif %}
  • +
  • {% if list.title %}{{ list.title }}{% else %}{{ __return }}{% endif %}
  • {% endfor %} {% assign __locale = site.data.locale.NAV.RSS %} {% include snippets/locale-to-string.html %} diff --git a/package.json b/package.json index faf1d237cbc..eb2c23d6424 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "build": "bundle exec jekyll build", "serve": "bundle exec jekyll serve -H 0.0.0.0", "dev": "bundle exec jekyll serve -H 0.0.0.0 -t --config ./_config.dev.yml", + "demo": "bundle exec jekyll serve -H 0.0.0.0 -t --config ./_config.demo.yml", "posts-cp": "mkdir ./_posts && cp -Rfv ./test/_posts/** ./_posts", "posts-rm": "rm -Rfv ./_posts/**", "favicon": "gulp favicon",