Procházet zdrojové kódy

Update 8 files

- /_layouts/default.html
- /_includes/live2d.html
- /rss.xml
- /search.json
- /opensearch.xml
- /index.html
- /feed.json
- /404.md
mayx před 5 měsíci
rodič
revize
0e8ac37673
8 změnil soubory, kde provedl 52 přidání a 33 odebrání
  1. 1 0
      404.md
  2. 33 0
      _includes/live2d.html
  3. 2 33
      _layouts/default.html
  4. 1 0
      feed.json
  5. 1 0
      index.html
  6. 12 0
      opensearch.xml
  7. 1 0
      rss.xml
  8. 1 0
      search.json

+ 1 - 0
404.md

@@ -2,6 +2,7 @@
 layout: default
 title: 404 - 找不到页面
 ---
+
 # 找不到页面
   你访问的资源 <code><script>document.write(window.location.pathname)</script></code> 不存在或者可能已经被永久移除。
 

+ 33 - 0
_includes/live2d.html

@@ -0,0 +1,33 @@
+<!--[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>
+  <div class="live_talk_input_body">
+    <form id="live_talk_input_form">
+      <div class="live_talk_input_name_body" {% unless page.layout == "post" %}style="display:none;"{% endunless %}>
+        <input type="checkbox" id="load_this" />
+        <input type="hidden" id="post_id" value="{{ page.url }}" />
+        <label for="load_this">
+          <span style="font-size: 11px; color: #fff;">&#160;想问这篇文章</span>
+        </label>
+      </div>
+      <div class="live_talk_input_text_body">
+        <input name="talk" type="text" class="live_talk_talk white_input" id="AIuserText" autocomplete="off" placeholder="要和我聊什么呀?" />
+        <button type="submit" class="live_talk_send_btn" id="talk_send">发送</button>
+      </div>
+    </form>
+  </div>
+  <input name="live_talk" id="live_talk" value="1" type="hidden" />
+  <div class="live_ico_box" style="display:none;">
+    <div class="live_ico_item type_info" id="showInfoBtn"></div>
+    <div class="live_ico_item type_talk" id="showTalkBtn"></div>
+    <div class="live_ico_item type_music" id="musicButton"></div>
+    <div class="live_ico_item type_youdu" id="youduButton"></div>
+    <div class="live_ico_item type_quit" id="hideButton"></div>
+    <input name="live_statu_val" id="live_statu_val" value="0" type="hidden" />
+    <audio src="" style="display:none;" id="live2d_bgm" data-bgm="0" preload="none"></audio>
+    <input id="duType" value="douqilai" type="hidden" />
+  </div>
+</div>
+<div id="open_live2d">召唤伊斯特瓦尔</div>
+<!-- <![endif]-->

+ 2 - 33
_layouts/default.html

@@ -16,6 +16,7 @@ layout: xslt_container
   <!--[if !IE]> -->
   <link rel="stylesheet" href="/Live2dHistoire/live2d/css/live2d.css" />
   <!-- <![endif]-->
+  <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="{{ site.title }}" />
   <link rel="webmention" href="https://webmention.io/mabbs.github.io/webmention" />
   <link rel="pingback" href="https://webmention.io/mabbs.github.io/xmlrpc" />
   <link rel="preconnect" href="https://summary.mayx.eu.org" crossorigin="anonymous" />
@@ -92,39 +93,7 @@ layout: xslt_container
       {{ 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>
-      <div class="live_talk_input_body">
-        <form id="live_talk_input_form">
-          <div class="live_talk_input_name_body" {% unless page.layout == "post" %}style="display:none;"{% endunless %}>
-            <input type="checkbox" id="load_this" />
-            <input type="hidden" id="post_id" value="{{ page.url }}" />
-            <label for="load_this">
-              <span style="font-size: 11px; color: #fff;">&#160;想问这篇文章</span>
-            </label>
-          </div>
-          <div class="live_talk_input_text_body">
-            <input name="talk" type="text" class="live_talk_talk white_input" id="AIuserText" autocomplete="off" placeholder="要和我聊什么呀?" />
-            <button type="submit" class="live_talk_send_btn" id="talk_send">发送</button>
-          </div>
-        </form>
-      </div>
-      <input name="live_talk" id="live_talk" value="1" type="hidden" />
-      <div class="live_ico_box" style="display:none;">
-        <div class="live_ico_item type_info" id="showInfoBtn"></div>
-        <div class="live_ico_item type_talk" id="showTalkBtn"></div>
-        <div class="live_ico_item type_music" id="musicButton"></div>
-        <div class="live_ico_item type_youdu" id="youduButton"></div>
-        <div class="live_ico_item type_quit" id="hideButton"></div>
-        <input name="live_statu_val" id="live_statu_val" value="0" type="hidden" />
-        <audio src="" style="display:none;" id="live2d_bgm" data-bgm="0" preload="none"></audio>
-        <input id="duType" value="douqilai" type="hidden" />
-      </div>
-    </div>
-    <div id="open_live2d">召唤伊斯特瓦尔</div>
-    <!-- <![endif]-->
+    {% include live2d.html %}
     <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>

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1 - 0
feed.json


+ 1 - 0
index.html

@@ -2,6 +2,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 />
 

+ 12 - 0
opensearch.xml

@@ -0,0 +1,12 @@
+---
+---
+
+<?xml version="1.0" encoding="UTF-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
+  <ShortName>{{ site.title }}</ShortName>
+  <Description>搜索 {{ site.title }}</Description>
+  <InputEncoding>UTF-8</InputEncoding>
+  <Image width="16" height="16" type="image/x-icon">{{ "/favicon.ico" | absolute_url }}</Image>
+  <Url type="text/html" method="get" template="{{ "/search.html" | absolute_url }}?keyword={searchTerms}"/>
+  <moz:SearchForm>{{ "/search.html" | absolute_url }}</moz:SearchForm>
+</OpenSearchDescription>

+ 1 - 0
rss.xml

@@ -1,5 +1,6 @@
 ---
 ---
+
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet type="text/xml" href="/feed.xslt.xml"?>
 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

+ 1 - 0
search.json

@@ -1,3 +1,4 @@
 ---
 ---
+
 [{% for post in site.posts %}{% unless post.layout == "encrypt" %}{ "title": "{{ post.title | escape }}", "category": "{{ post.category }}", "tags": "{{ post.tags | join: ', ' }}", "url": "{{ site.baseurl }}{{ post.url }}", "date": "{{ post.date | date: "%Y/%m/%d" }}", "content": {{ post.content | strip_html | strip_newlines | jsonify }} }{% unless forloop.last %},{% endunless %}{% endunless %}{% endfor %}]

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů