浏览代码

Minor bug fixes

Track3 6 年之前
父节点
当前提交
72bfda1a5d

+ 1 - 0
content/friends.md

@@ -22,3 +22,4 @@ comments: true
 * 无须经常更新,但应还在更新!
 * 内容可以不正经,但是要正常!
 * 无所谓权重,但不应被标记为不安全网站!
+* 

+ 1 - 1
content/posts/2017/decided-to-buy-cuphead.md

@@ -13,4 +13,4 @@ tags:
 
 可以说,游戏的品质毋庸置疑,唯一让我犹豫的就是游戏难度。看到Steam上很多玩不下去退款的,我就先下了破解版体验了一下。虽然狠狠砸了几次手柄,不过感觉游戏还没有难到让我碰都不想碰的地步。难,但是很有意思,决定入正了。
 
-这次就不在Steam上买了,Win10商店这边可是支持"XBOX Play Anywhere"啊,万一以后买了Xbox呢?
+这次就不在Steam上买了,Win10商店这边可是支持"XBOX Play Anywhere"啊,万一以后买了Xbox呢?

+ 2 - 2
content/posts/2017/goodbye-my-windows-phone.md

@@ -87,6 +87,6 @@ Build2017上演示的骁龙835运行Windows 10,想想看,这样的设备不
 >
 > 云计算办公主机和手机即主机,这两种都是很不错的方向,起码,能极大的节约社会资源,凡是极大的节约社会资源和推动社会进步的,一定会成现实。第一代的计算机,像山一样,然后Wintel 带我们进入第二个时代:个人PC时代,再接着,会是移动PC时代和随身助理时代。
 >
-> <cite>-来自IT之家</cite>
+> <cite>IT之家-刺客</cite>
 
-说到这里,我想表达的是,Windows Phone应该已是过去了。是时候收好你的记忆,挥手告别了,微软移动新的时代或许就要到来……
+说到这里,我想表达的是,Windows Phone应该已是过去了。是时候收好你的记忆,挥手告别了,微软移动新的时代或许就要到来……

+ 1 - 1
content/posts/2017/my-personal-landing-page.md

@@ -88,4 +88,4 @@ Flexbox真的是快速定位布局的神器,难怪新版Bootstrap都改用Flex
 
 心得体会大概就说这么多吧,总之,写这个页面真的学到了不少东西。栏目设计参考了一些大佬的个人主页,毕竟萌新,各位大佬莫见笑。另外,既然是前端,所有代码都是公开的,需要的可以直接拿走。也欢迎大家给我一些建议,遇到什么兼容性问题欢迎给我反馈,当然了,请务必使用现代浏览器.
 
-等等,是不是少了点什么?好像缺一个反馈表单。以我目前的能力,还做不出表单提交的后端。还是慢慢来吧,不管怎么说,这次整个页面都是自己一手设计、一行一行代码码出来的,虽说简陋了点,但我还是蛮开心的。毕竟萌新,以后会越来越好的。
+等等,是不是少了点什么?好像缺一个反馈表单。以我目前的能力,还做不出表单提交的后端。还是慢慢来吧,不管怎么说,这次整个页面都是自己一手设计、一行一行代码码出来的,虽说简陋了点,但我还是蛮开心的。毕竟萌新,以后会越来越好的。

+ 1 - 1
content/posts/2017/wp-sites-nginx-conf.md

@@ -143,7 +143,7 @@ Nginx官方文档上是这么写的,强烈建议大家去看看这一页:
 
 > This is a wrong, cumbersome, and ineffective way. The right way is to define a separate server for `example.org`
 >
-> <cite>-《[Converting rewrite rules](http://nginx.org/en/docs/http/converting_rewrite_rules.html)》</cite>
+> <cite>《[Converting rewrite rules](http://nginx.org/en/docs/http/converting_rewrite_rules.html)》</cite>
 
 这里使用的是`return 301`,也是新版Nginx推荐的用法。
 

+ 1 - 1
content/posts/2018/hello-hugo.md

@@ -64,4 +64,4 @@ https://stackoverflow.com/questions/16839698/jquery-getscript-alternative-in-nat
 
 写的有点乱啊,基本上是想到哪写到哪,就说这么多吧,以后说不定会写个详细点的Hugo博客部署指南……
 
-**更新**:利用DNSPod智能解析,国内访客自动解析到腾讯云服务器,国外访客解析到Netlify全球CDN。
+**更新**:利用DNSPod智能解析,国内访客自动解析到腾讯云服务器,国外访客解析到Netlify全球CDN。

+ 1 - 1
content/posts/2018/my-wp-theme-alchemist.md

@@ -71,4 +71,4 @@ https://github.com/Track3/alchemist
 
 将来如果可行的话,我会把主题发布到wordpress.org上,到时候下载更新就都会很方便了。
 
-最后我想说,如果你喜欢这个主题,欢迎参与进来,提意见,反馈问题,发PR。现在这个阶段我不求Star,因为它还没准备好。
+最后我想说,如果你喜欢这个主题,欢迎参与进来,提意见,反馈问题,发PR。现在这个阶段我不求Star,因为它还没准备好。

+ 1 - 1
layouts/_default/baseof.html

@@ -26,7 +26,7 @@
 <body id="page">
 	{{ block "header" . -}}{{ end -}}
 	{{ block "main" . -}}{{ end -}}
-	{{ block "footer" . -}}{{ end -}}
+	{{ block "footer" . -}}{{ end }}
 	<script src="{{ "js/main.min.js" | absURL }}"></script>
 	<script>
 		var _hmt = _hmt || [];

+ 2 - 0
layouts/_default/list.html

@@ -5,9 +5,11 @@
 {{ define "main" }}
 	<main class="site-main section-inner thin">
 		<h1>{{ .Title }}</h1>
+		{{- with .Content }}
 		<div class="content">
 			{{ .Content }}
 		</div>
+		{{- end }}
 		{{- range .Data.Pages.GroupByDate "2006" }}
 		<div class="posts-group">
 			<p class="post-year">{{ .Key }}</p>

+ 1 - 1
layouts/partials/comments.html

@@ -1,4 +1,4 @@
 <div id="comments-loader" class="thin" style="display: none;">
-			<div><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-circle animated infinite bounce"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg></div>
+			<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-circle animated infinite bounce"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>
 		</div>
 		<div id="comments" class="thin"></div>

+ 1 - 1
layouts/posts/single.html

@@ -7,7 +7,7 @@
 		<article class="thin">
 			<header class="post-header">
 				<h1>{{ .Title }}</h1>
-				<p class="post-meta">{{- .Date.Format .Site.Params.dateformSingle }} &#183; {{ .ReadingTime }} min read</p>
+				<p class="post-meta">{{ .Date.Format .Site.Params.dateformSingle }} &#183; {{ .ReadingTime }} min read</p>
 			</header>
 			<div class="content">
 				{{ .Content }}

文件差异内容过多而无法显示
+ 0 - 0
static/css/style.css


+ 31 - 4
static/scss/style.scss

@@ -58,6 +58,20 @@ code {
   word-break: break-all;
 }
 
+blockquote {
+  border-left: .25em solid;
+  margin: 1em;
+  padding: 0 1em;
+  font-style: italic;
+  cite {
+    font-weight: bold;
+    font-style: normal;
+    &::before {
+      content: "—— ";
+    }
+  }
+}
+
 a {
   color: $text;
   text-decoration: none;
@@ -152,6 +166,7 @@ hr {
 
 #menu-btn, #search-btn {
   display: none;
+  cursor: pointer;
 }
 
 #mobile-menu {
@@ -412,10 +427,22 @@ figure.right {
     color: $theme;
   }
 
-  .vcontent code {
-    margin: auto 4px;
-    color: #eee;
-    background: $highlight-grey;
+  .vcontent {
+    code {
+      margin: auto 4px;
+      color: #eee;
+      background: $highlight-grey;
+    }
+    pre {
+      color: #eee;
+      background: $midnightblue;
+      padding: 1em 1.5em;
+      border-radius: 5px;
+      display: block;
+      code {
+        background: $midnightblue;
+      }
+    }
   }
 }
 

部分文件因为文件数量过多而无法显示