mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-07-19 18:42:02 +00:00
Update 4 files
- /_layouts/default.html - /_layouts/post.html - /index.html - /search.html
This commit is contained in:
parent
9669d10f5c
commit
6d145383f5
@ -11,15 +11,12 @@
|
||||
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
|
||||
<link rel="stylesheet" href="/Live2dHistoire/live2d/css/live2d.css" />
|
||||
<link rel="blogroll" type="text/xml" href="/blogroll.opml" />
|
||||
<script src="/assets/js/jquery.min.js"></script>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--[if IE]>
|
||||
<script src="//cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=4.8.0"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!--[if !IE]> -->
|
||||
<script src="/assets/js/jquery.min.js"></script>
|
||||
{% 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>
|
||||
@ -99,6 +96,7 @@
|
||||
{{ content }}
|
||||
|
||||
</section>
|
||||
<!--[if !IE]> -->
|
||||
<div id="landlord" style="left:5px;bottom:0px;">
|
||||
<div class="message" style="opacity:0"></div>
|
||||
<canvas id="live2d" width="500" height="560" class="live2d"></canvas>
|
||||
@ -128,6 +126,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="open_live2d">召唤伊斯特瓦尔</div>
|
||||
<!-- <![endif]-->
|
||||
<footer>
|
||||
<p>
|
||||
<small>Made with ❤ by Mayx<br />Last updated at {{ site.time | date: "%F %T" }}<br /> 总字数:{% include_cached word_count.html %} - 文章数:{{ site.posts.size }} - <a href="{{ site.feed.path | relative_url }}" >Atom</a> - <a href="{{ "/README.html" | relative_url }}" >About</a></small>
|
||||
@ -135,10 +134,11 @@
|
||||
</footer>
|
||||
</div>
|
||||
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></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>
|
||||
|
||||
</html>
|
@ -2,7 +2,7 @@
|
||||
layout: default
|
||||
---
|
||||
|
||||
<small>{{ page.date | date: "%-d %B %Y" }} - 字数统计:{% if page.layout == "encrypt" %}God Knows {% else %}{{ page.content | strip_html | strip_newlines | remove: " " | size }} - 阅读大约需要{{ page.content | strip_html | strip_newlines | remove: "" | size | divided_by: 350 | plus: 1 }}分钟{% endif %} - Hits: <span id="{{ page.url }}" class="visitors">Loading...</span></small>
|
||||
<small>{{ page.date | date: "%-d %B %Y" }} - 字数统计:{% if page.layout == "encrypt" %}God Knows {% else %}{{ page.content | strip_html | strip_newlines | remove: " " | size }} - 阅读大约需要{{ page.content | strip_html | strip_newlines | remove: "" | size | divided_by: 350 | plus: 1 }}分钟{% endif %} <!--[if !IE]> --> - Hits: <span id="{{ page.url }}" class="visitors">Loading...</span> <!-- <![endif]--> </small>
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
||||
<p class="view">by <a href="//github.com/{{ page.author | default: "Mabbs" }}">{{ page.author | default: site.author }}</a></p>
|
||||
@ -29,6 +29,10 @@ layout: default
|
||||
<b>AI摘要</b>
|
||||
<p id="ai-output">{% assign ai_cache = site.data.ai-cache[page.url] %}{% if ai_cache %}{{ ai_cache }}{% else %}正在生成中……{% endif %}</p>
|
||||
{% unless ai_cache %}
|
||||
<!--[if IE]>
|
||||
<script>document.getElementById("ai-output").innerHTML="这个文章的AI摘要还没有缓存……IE看不了哦~";</script>
|
||||
<![endif]-->
|
||||
<!--[if !IE]> -->
|
||||
<script>
|
||||
async function sha(str) {
|
||||
const encoder = new TextEncoder();
|
||||
@ -69,6 +73,7 @@ layout: default
|
||||
}
|
||||
ai_gen();
|
||||
</script>
|
||||
<!-- <![endif]-->
|
||||
{% endunless %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
|
@ -3,7 +3,7 @@ layout: default
|
||||
title: 首页 - 我的文章
|
||||
---
|
||||
{% if paginator.page == 1 %}<div class="hslice" id="LatestPost">{% endif %}
|
||||
<h1 class="entry-title" style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> | <a href="javascript:getSearchJSON(function(data){window.location = data[Math.floor(Math.random()*data.length)].url})">Random</a></small><br /><br />
|
||||
<h1 class="entry-title" style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> <!--[if !IE]> --> | <a href="javascript:getSearchJSON(function(data){window.location = data[Math.floor(Math.random()*data.length)].url})">Random</a> <!-- <![endif]--> </small><br /><br />
|
||||
|
||||
<hr />
|
||||
|
||||
@ -14,7 +14,9 @@ title: 首页 - 我的文章
|
||||
<h2><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
|
||||
<p class="author">
|
||||
<span class="date">{{ post.date | date: "%-d %B %Y" }}</span>
|
||||
<!--[if !IE]> -->
|
||||
| Hits: <span id="{{ post.url }}" class="visitors-index" >Loading...</span>
|
||||
<!-- <![endif]-->
|
||||
</p>
|
||||
<div class="content">
|
||||
{{ post.excerpt | strip_html | strip_newlines }}
|
||||
|
@ -4,6 +4,10 @@ title: 搜索
|
||||
---
|
||||
|
||||
<h1>搜索</h1>
|
||||
<!--[if IE]>
|
||||
<p>很遗憾,IE搜不了捏~</p>
|
||||
<![endif]-->
|
||||
<!--[if !IE]> -->
|
||||
<p>Keyword: <input type="text" id="search-input" placeholder="Search blog posts.."> <img src="/images/loading.svg" id="search-loading" style="width:22px;vertical-align: bottom"></p>
|
||||
<ul id="results-container"></ul>
|
||||
<script src="/assets/js/simple-jekyll-search.min.js"></script>
|
||||
@ -26,3 +30,4 @@ getSearchJSON(function(json){
|
||||
document.getElementById('search-loading').style.display = "none";
|
||||
});
|
||||
</script>
|
||||
<!-- <![endif]-->
|
Loading…
x
Reference in New Issue
Block a user