summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html5
-rw-r--r--_layouts/post.html5
2 files changed, 6 insertions, 4 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 303c26f..d707b4d 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -18,6 +18,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
+ <!--[if !IE]> -->
{% if site.google_analytics %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
@@ -51,6 +52,7 @@
}
</script>
<script src="/assets/js/instant.page.js" type="module"></script>
+ <!-- <![endif]-->
</head>
<body>
@@ -135,11 +137,10 @@
</div>
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
- <script src="/assets/js/main.js"></script>
<!--[if !IE]> -->
+ <script src="/assets/js/main.js"></script>
<script src="/Live2dHistoire/live2d/js/live2d.js"></script>
<script src="/Live2dHistoire/live2d/js/message.js"></script>
-
<!-- <![endif]-->
</body>
diff --git a/_layouts/post.html b/_layouts/post.html
index a1e72b5..7e02853 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -82,12 +82,12 @@ layout: default
{% endif %}
<br />
<br />
+<!--[if !IE]> -->
<p id="suggest-container"></p>
<script>
-var blogurl = "{{ page.url }}";
var suggest = $("#suggest-container")[0];
suggest.innerHTML = "Loading...";
-$.get(BlogAPI + "/suggest?id=" + blogurl + "&update=" + lastUpdated.valueOf(), function (data) {
+$.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), function (data) {
if (data.length) {
getSearchJSON(function (search) {
suggest.innerHTML = '<b>推荐文章</b><hr style="margin: 0 0 5px"/>';
@@ -107,6 +107,7 @@ $.get(BlogAPI + "/suggest?id=" + blogurl + "&update=" + lastUpdated.valueOf(), f
}
});
</script>
+<!-- <![endif]-->
<div class="pagination">
{% if page.previous.url %}
<span class="prev">