Fix site URL and base URL.

Signed-off-by: HE, Tao <sighingnow@gmail.com>
This commit is contained in:
HE, Tao 2019-04-28 19:30:47 +08:00
parent 28ec44b3b2
commit a1b1bd9402
No known key found for this signature in database
GPG Key ID: E1C05D3ACA574FD9
7 changed files with 27 additions and 27 deletions

View File

@ -9,8 +9,8 @@ description: >
version: 1.0
gitbook_version: 3.2.3
url: 'https://sighingnow.github.io/jekyll-gitbook'
baseurl: ''
url: 'https://sighingnow.github.io'
baseurl: '/jekyll-gitbook'
rss: RSS
# markdown render engine.

View File

@ -1,8 +1,8 @@
<script src="{{site.url}}/gitbook/gitbook.js"></script>
<script src="{{site.url}}/gitbook/theme.js"></script>
<script src="{{site.baseurl}}/gitbook/gitbook.js"></script>
<script src="{{site.baseurl}}/gitbook/theme.js"></script>
<script src="{{site.url}}/gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
<script src="{{site.url}}/gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="{{site.baseurl}}/gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
<script src="{{site.baseurl}}/gitbook/gitbook-plugin-sharing/buttons.js"></script>
<!-- <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>

View File

@ -20,15 +20,15 @@
<meta name="author" content="{{ site.author | escape }}">
{%- endif -%}
<link rel="stylesheet" href="{{site.url}}/gitbook/style.css">
<link rel="stylesheet" href="{{site.url}}/gitbook/gitbook-plugin-fontsettings/website.css">
<link rel="stylesheet" href="{{site.baseurl}}/gitbook/style.css">
<link rel="stylesheet" href="{{site.baseurl}}/gitbook/gitbook-plugin-fontsettings/website.css">
<!-- <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css"> -->
<link rel="stylesheet" href="{{site.url}}/gitbook/rouge-highlight-colorful.css">
<link rel="stylesheet" href="{{site.baseurl}}/gitbook/rouge-highlight-colorful.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{site.url}}/gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="{{site.url}}/gitbook/images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{site.baseurl}}/gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="{{site.baseurl}}/gitbook/images/favicon.ico" type="image/x-icon">

View File

@ -73,10 +73,10 @@
"type": "markdown"
},
"gitbook": {
"version": "{{site.url}}",
"version": "{{site.gitbook_version}}",
"time": "{{site.time}}"
},
"basePath": "{{site.url}}",
"basePath": "{{site.baseurl}}",
"book": {
"language": ""
}

View File

@ -5,11 +5,11 @@
<nav role="navigation">
<ul class="summary">
{% if page.url == "/index.html" or page.url == "/" %}
<li class="chapter active" data-level="1.1" data-path="{{site.url}}">
<li class="chapter active" data-level="1.1" data-path="{{site.baseurl}}">
{% else %}
<li class="chapter" data-level="1.1" data-path="{{site.url}}">
<li class="chapter" data-level="1.1" data-path="{{site.baseurl}}">
{% endif %}
<a href="{{site.url}}">
<a href="{{site.baseurl}}">
{{ site.title | escape }}
</a>
</li>
@ -20,11 +20,11 @@
{% for post in reversed_posts %}
{% if page.url == post.url %}
<li class="chapter active" data-level="1.2" data-path="{{post.url}}">
<li class="chapter active" data-level="1.2" data-path="{{site.baseurl}}{{post.url}}">
{% else %}
<li class="chapter" data-level="1.1" data-path="{{post.url}}">
<li class="chapter" data-level="1.1" data-path="{{site.baseurl}}{{post.url}}">
{% endif %}
<a href="{{post.url}}">
<a href="{{site.baseurl}}{{post.url}}">
{{ post.title | escape }}
</a>
</li>

View File

@ -7,7 +7,7 @@
{% assign reversed_posts = site.posts | reverse %}
{% if reversed_posts %}
<link rel="next" href="{{reversed_posts.first.url}}" />
<link rel="next" href="{{site.baseurl}}{{reversed_posts.first.url}}" />
{% endif %}
</head>
<body>
@ -19,7 +19,7 @@
{%- include body.html -%}
{% if reversed_posts %}
<a href="{{reversed_posts.first.url}}" class="navigation navigation-next navigation-unique" aria-label="Next page: {{reversed_posts.first.title}}">
<a href="{{site.baseurl}}{{reversed_posts.first.url}}" class="navigation navigation-next navigation-unique" aria-label="Next page: {{reversed_posts.first.title}}">
<i class="fa fa-angle-right"></i>
</a>
{% endif %}

View File

@ -5,13 +5,13 @@
{%- include head.html -%}
{% if page.previous %}
<link rel="prev" href="{{page.previous.url}}" />
<link rel="prev" href="{{site.baseurl}}{{page.previous.url}}" />
{% else %}
<link rel="prev" href="{{site.url}}" />
<link rel="prev" href="{{site.baseurl}}/" />
{% endif %}
{% if page.next %}
<link rel="next" href="{{page.next.url}}" />
<link rel="next" href="{{site.baseurl}}{{page.next.url}}" />
{% endif %}
</head>
<body>
@ -23,17 +23,17 @@
{%- include body.html -%}
{% if page.previous %}
<a href="{{page.previous.url}}" class="navigation navigation-prev navigation-unique" aria-label="Previous page: {{page.previous.title}}">
<a href="{{site.baseurl}}{{page.previous.url}}" class="navigation navigation-prev navigation-unique" aria-label="Previous page: {{page.previous.title}}">
<i class="fa fa-angle-left"></i>
</a>
{% else %}
<a href="{{site.url}}" class="navigation navigation-prev navigation-unique" aria-label="Previous page: {{site.title}}">
<a href="{{site.baseurl}}/" class="navigation navigation-prev navigation-unique" aria-label="Previous page: {{site.title}}">
<i class="fa fa-angle-left"></i>
</a>
{% endif %}
{% if page.next %}
<a href="{{page.next.url}}" class="navigation navigation-next navigation-unique" aria-label="Next page: {{page.next.title}}">
<a href="{{site.baseurl}}{{page.next.url}}" class="navigation navigation-next navigation-unique" aria-label="Next page: {{page.next.title}}">
<i class="fa fa-angle-right"></i>
</a>
{% endif %}