Skip to content

Commit

Permalink
fix: site.nav_lists base on site.baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Nov 18, 2017
1 parent 70e3fb5 commit f2a8cd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/blog/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% for list in site.nav_lists %}
{% assign __locale = list.titles %}
{% include snippets/locale-to-string.html %}
<li><a href="{{ list.url }}">{% if list.title %}{{ list.title }}{% else %}{{ __return }}{% endif %}</a></li>
<li><a href="{{ list.url | prepend: site.baseurl | replace: '//', '/' }}">{% if list.title %}{{ list.title }}{% else %}{{ __return }}{% endif %}</a></li>
{% endfor %}
{% assign __locale = site.data.locale.NAV.RSS %}
{% include snippets/locale-to-string.html %}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f2a8cd4

Please sign in to comment.