Fix site URL and base URL.
Signed-off-by: HE, Tao <sighingnow@gmail.com>
This commit is contained in:
parent
28ec44b3b2
commit
a1b1bd9402
@ -9,8 +9,8 @@ description: >
|
|||||||
version: 1.0
|
version: 1.0
|
||||||
gitbook_version: 3.2.3
|
gitbook_version: 3.2.3
|
||||||
|
|
||||||
url: 'https://sighingnow.github.io/jekyll-gitbook'
|
url: 'https://sighingnow.github.io'
|
||||||
baseurl: ''
|
baseurl: '/jekyll-gitbook'
|
||||||
rss: RSS
|
rss: RSS
|
||||||
|
|
||||||
# markdown render engine.
|
# markdown render engine.
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<script src="{{site.url}}/gitbook/gitbook.js"></script>
|
<script src="{{site.baseurl}}/gitbook/gitbook.js"></script>
|
||||||
<script src="{{site.url}}/gitbook/theme.js"></script>
|
<script src="{{site.baseurl}}/gitbook/theme.js"></script>
|
||||||
|
|
||||||
<script src="{{site.url}}/gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
<script src="{{site.baseurl}}/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-sharing/buttons.js"></script>
|
||||||
|
|
||||||
<!-- <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
<!-- <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
||||||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
||||||
|
@ -20,15 +20,15 @@
|
|||||||
<meta name="author" content="{{ site.author | escape }}">
|
<meta name="author" content="{{ site.author | escape }}">
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{site.url}}/gitbook/style.css">
|
<link rel="stylesheet" href="{{site.baseurl}}/gitbook/style.css">
|
||||||
<link rel="stylesheet" href="{{site.url}}/gitbook/gitbook-plugin-fontsettings/website.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="../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="HandheldFriendly" content="true"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
<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-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<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="apple-touch-icon-precomposed" sizes="152x152" href="{{site.baseurl}}/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="shortcut icon" href="{{site.baseurl}}/gitbook/images/favicon.ico" type="image/x-icon">
|
@ -73,10 +73,10 @@
|
|||||||
"type": "markdown"
|
"type": "markdown"
|
||||||
},
|
},
|
||||||
"gitbook": {
|
"gitbook": {
|
||||||
"version": "{{site.url}}",
|
"version": "{{site.gitbook_version}}",
|
||||||
"time": "{{site.time}}"
|
"time": "{{site.time}}"
|
||||||
},
|
},
|
||||||
"basePath": "{{site.url}}",
|
"basePath": "{{site.baseurl}}",
|
||||||
"book": {
|
"book": {
|
||||||
"language": ""
|
"language": ""
|
||||||
}
|
}
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
<nav role="navigation">
|
<nav role="navigation">
|
||||||
<ul class="summary">
|
<ul class="summary">
|
||||||
{% if page.url == "/index.html" or page.url == "/" %}
|
{% 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 %}
|
{% else %}
|
||||||
<li class="chapter" data-level="1.1" data-path="{{site.url}}">
|
<li class="chapter" data-level="1.1" data-path="{{site.baseurl}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{site.url}}">
|
<a href="{{site.baseurl}}">
|
||||||
{{ site.title | escape }}
|
{{ site.title | escape }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@ -20,11 +20,11 @@
|
|||||||
|
|
||||||
{% for post in reversed_posts %}
|
{% for post in reversed_posts %}
|
||||||
{% if page.url == post.url %}
|
{% 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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
<a href="{{post.url}}">
|
<a href="{{site.baseurl}}{{post.url}}">
|
||||||
{{ post.title | escape }}
|
{{ post.title | escape }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{% assign reversed_posts = site.posts | reverse %}
|
{% assign reversed_posts = site.posts | reverse %}
|
||||||
|
|
||||||
{% if reversed_posts %}
|
{% if reversed_posts %}
|
||||||
<link rel="next" href="{{reversed_posts.first.url}}" />
|
<link rel="next" href="{{site.baseurl}}{{reversed_posts.first.url}}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
{%- include body.html -%}
|
{%- include body.html -%}
|
||||||
|
|
||||||
{% if reversed_posts %}
|
{% 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>
|
<i class="fa fa-angle-right"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
{%- include head.html -%}
|
{%- include head.html -%}
|
||||||
|
|
||||||
{% if page.previous %}
|
{% if page.previous %}
|
||||||
<link rel="prev" href="{{page.previous.url}}" />
|
<link rel="prev" href="{{site.baseurl}}{{page.previous.url}}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="prev" href="{{site.url}}" />
|
<link rel="prev" href="{{site.baseurl}}/" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.next %}
|
{% if page.next %}
|
||||||
<link rel="next" href="{{page.next.url}}" />
|
<link rel="next" href="{{site.baseurl}}{{page.next.url}}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -23,17 +23,17 @@
|
|||||||
{%- include body.html -%}
|
{%- include body.html -%}
|
||||||
|
|
||||||
{% if page.previous %}
|
{% 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>
|
<i class="fa fa-angle-left"></i>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% 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>
|
<i class="fa fa-angle-left"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.next %}
|
{% 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>
|
<i class="fa fa-angle-right"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user