summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--_layouts/default.html8
-rw-r--r--_layouts/xslt_container.html9
2 files changed, 6 insertions, 11 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index faf3f86..5132570 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -1,7 +1,7 @@
 ---
 layout: xslt_container
 ---
-
+<html lang="{{ site.lang | default: "zh-CN" }}">
 <head>
   <meta charset="UTF-8" />
   <meta http-equiv="X-UA-Compatible" content="IE=edge" />
@@ -61,8 +61,7 @@ layout: xslt_container
       <p class="p-note">{{ site.description | default: site.github.project_tagline }}</p>
 
       <form action="/search.html">
-        <input type="text" name="keyword" id="search-input-all" placeholder="Search blog posts.." />
-        <input type="submit" />
+        <input type="text" name="keyword" id="search-input-all" placeholder="Search blog posts.." />&#160;<input type="submit" value="搜索" />
       </form>
       <br />
 
@@ -137,4 +136,5 @@ layout: xslt_container
   <script src="/Live2dHistoire/live2d/js/live2d.js"></script>
   <script src="/Live2dHistoire/live2d/js/message.js"></script>
   <!-- <![endif]-->
-</body>
\ No newline at end of file
+</body>
+</html>
\ No newline at end of file
diff --git a/_layouts/xslt_container.html b/_layouts/xslt_container.html
index c035d69..ef45d5f 100644
--- a/_layouts/xslt_container.html
+++ b/_layouts/xslt_container.html
@@ -5,9 +5,7 @@
     xmlns:atom="http://www.w3.org/2005/Atom">
   <xsl:output method="html" version="4.0" encoding="UTF-8" indent="yes"/>
   <xsl:template match="/">
-    <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ site.lang | default: "zh-CN" }}">
       {{ content }}
-    </html>
   </xsl:template>
   <xsl:template match="atom:feed/atom:entry">
     <div class="item">
@@ -44,9 +42,6 @@
     </div>
   </xsl:template>
 </xsl:stylesheet>
-{% else %}
-<!DOCTYPE html>
-<html lang="{{ site.lang | default: "zh-CN" }}">
-  {{ content }}
-</html>
+{% else %}<!DOCTYPE html>
+{{ content }}
 {% endif %}
\ No newline at end of file