From 9b5fc3172e27a8a7f994b14cb04130e63b2266b8 Mon Sep 17 00:00:00 2001 From: cometeme Date: Fri, 17 May 2019 21:15:18 +0800 Subject: [PATCH 1/9] fix baseurl problem --- _config.yml | 2 +- _includes/head.html | 8 ++++---- _includes/post-head.html | 8 ++++---- _layouts/default.html | 4 ++-- _layouts/post.html | 10 +++++----- assets/js/index.min.js | 2 +- dev/js/index.js | 4 ++-- index.html | 2 +- rss.xml | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/_config.yml b/_config.yml index b3b02eb77..5a834f091 100644 --- a/_config.yml +++ b/_config.yml @@ -5,7 +5,7 @@ keyword: '廖柯宇, 廖柯宇的独立博客, 廖柯宇的博客, 前端, 前 url: '' # your host # if you don't need baseurl, you should leave this value blank. -baseurl: '' +baseurl: '/blog' # Navigation links nav: diff --git a/_includes/head.html b/_includes/head.html index 380937eb0..ae7cfab3e 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -13,9 +13,9 @@ - - - - + + + + diff --git a/_includes/post-head.html b/_includes/post-head.html index e43a9ed6d..570511baf 100644 --- a/_includes/post-head.html +++ b/_includes/post-head.html @@ -13,10 +13,10 @@ - - - - + + + + {% if site.mathjax %} diff --git a/_layouts/default.html b/_layouts/default.html index 1aa216d4d..f9551e386 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,7 +10,7 @@ {{ content }} - - + + diff --git a/_layouts/post.html b/_layouts/post.html index be2e97ab0..be85047de 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -16,7 +16,7 @@
{% if page.tags.size > 0 %} {% for tag in page.tags %} - + {% endfor %} {% endif %}
@@ -51,7 +51,7 @@

{{ page.subtitle }}