From 3eabbe70e7424bffc8c27695ee9d5c7d298397e7 Mon Sep 17 00:00:00 2001 From: patarapolw Date: Mon, 12 Aug 2019 02:16:13 +0700 Subject: [PATCH] fix development mode --- themes/blog/layouts/includes/header.pug | 2 +- themes/blog/layouts/includes/mixins.pug | 2 +- themes/blog/layouts/layout.pug | 4 ++-- themes/blog/layouts/paginator.pug | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/blog/layouts/includes/header.pug b/themes/blog/layouts/includes/header.pug index ca25db7..39ad7f6 100644 --- a/themes/blog/layouts/includes/header.pug +++ b/themes/blog/layouts/includes/header.pug @@ -1,6 +1,6 @@ head title=title - link(rel="shortcut icon" href=`${cogear.config.baseUrl || "/"}favicon.ico` type="image/png") + link(rel="shortcut icon" href=`${cogear.baseUrl}favicon.ico` type="image/png") body .navbar .container diff --git a/themes/blog/layouts/includes/mixins.pug b/themes/blog/layouts/includes/mixins.pug index 48167d7..4ec8842 100644 --- a/themes/blog/layouts/includes/mixins.pug +++ b/themes/blog/layouts/includes/mixins.pug @@ -8,7 +8,7 @@ mixin post(post) a(href=`${post.author.link}`)= post.author.login header if post.teaser - h2: a(href=`${cogear.config.baseUrl || "/"}${post.uri}`)= post.title + h2: a(href=`${cogear.baseUrl}${post.uri}`)= post.title else h1= post.title .post-content!= post.teaser ? post.teaser : post.content diff --git a/themes/blog/layouts/layout.pug b/themes/blog/layouts/layout.pug index bcbc0d3..63c3511 100644 --- a/themes/blog/layouts/layout.pug +++ b/themes/blog/layouts/layout.pug @@ -3,11 +3,11 @@ head block head title= title meta(content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1.0, maximum-scale=1" name="viewport") - link(rel="shortcut icon" href=`${cogear.config.baseUrl || "/"}favicon.png` type="image/png") + link(rel="shortcut icon" href=`${cogear.baseUrl}favicon.png` type="image/png") link(rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' integrity='sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T' crossorigin='anonymous') body nav.navbar.navbar-dark.bg-success - a.ml-3.navbar-brand(href=cogear.config.baseUrl || "/")= cogear.config.blog.title || "BLOG" + a.ml-3.navbar-brand(href=cogear.baseUrl)= cogear.config.blog.title || "BLOG" .container.mt-3 .row .col-lg-8.col-md-12 diff --git a/themes/blog/layouts/paginator.pug b/themes/blog/layouts/paginator.pug index ae47940..710c423 100644 --- a/themes/blog/layouts/paginator.pug +++ b/themes/blog/layouts/paginator.pug @@ -3,7 +3,7 @@ if paginator ul.pagination if paginator.prev !== null li.page-item - a.page-link(href=`${cogear.config.baseUrl || "/"}${paginator.prev}`) ← Prev + a.page-link(href=`${cogear.baseUrl}${paginator.prev}`) ← Prev - let page = 1 while page <= paginator.total - let range = 2