Skip to content

Commit

Permalink
feat: 支持设置基础路径
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Aug 1, 2023
1 parent 61dc06c commit d7acf93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dataset/meta.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
;; 站点配置

version = 1.0.0

baseurl = /
rewrite = 0

;; SEO 信息
Expand Down
3 changes: 3 additions & 0 deletions template/basic/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<!-- Title -->
<title><?= implode(' - ', $this->title); ?></title>

<!-- Base URL -->
<base href="<?= $this->site['baseurl']; ?>">

<!-- SEO Tags -->
<meta content="<?= $this->keywords ?: $this->site['keywords']; ?>" name="keywords">
<meta content="<?= $this->description ?: $this->site['description']; ?>" name="description">
Expand Down

0 comments on commit d7acf93

Please sign in to comment.