Ver código fonte

Regular fixes

Track3 6 anos atrás
pai
commit
16eb1f0196
5 arquivos alterados com 51 adições e 25 exclusões
  1. 29 6
      assets/scss/style.scss
  2. 1 1
      config.toml
  3. 3 3
      content/about.md
  4. 16 11
      layouts/index.html
  5. 2 4
      layouts/partials/footer.html

+ 29 - 6
assets/scss/style.scss

@@ -280,10 +280,10 @@ table {
   p {
     margin: 0;
   }
-}
 
-#copyright a {
-  border: none;
+  a {
+    border: none;
+  }
 }
 
 // Spotlight
@@ -350,19 +350,42 @@ p.catguard {
   }
 }
 
+#home-center {
+  display: flex;
+  flex-grow: 1;
+  flex-direction: column;
+  justify-content: center;
+}
+
 #home-title {
   margin: 0;
+  text-align: center;
 }
 
 #home-social {
   font-size: 1.4em;
+  text-align: center;
 }
 
 #home-nav a {
-    display: block;
+  display: block;
+  border: none;
+  text-align: center;
+  margin-top: .5em;
+}
+
+#home-footer {
+  text-align: center;
+  font-size: .6em;
+  line-height: normal;
+
+  p {
+    margin-top: 0;
+  }
+
+  a {
     border: none;
-    text-align: center;
-    margin-top: .5em;
+  }
 }
 
 // list.html

+ 1 - 1
config.toml

@@ -33,7 +33,7 @@ rssLimit = 10
 
   [[params.social]]
     name = "telegram"
-    url = "http://t.me/mytrack3"
+    url = "http://t.me/ThatTrack3"
 
   [[params.social]]
     name = "github"

+ 3 - 3
content/about.md

@@ -11,9 +11,9 @@ comments: false
 
 ## Contact
 
-* Telegram: [@mytrack3](http://t.me/mytrack3)
-* Twitter: [@mytrack03](https://twitter.com/mytrack03)
-* Weibo: [@Track3](http://weibo.com/u/2350674815)
+* Telegram: [@ThatTrack3](http://t.me/ThatTrack3)
+* Twitter: [@ThatTrack3](https://twitter.com/ThatTrack3)
+* Weibo: [@Track-3](http://weibo.com/u/2350674815)
 * QQ: 5-7-2-3-0-3-7-1-2[^1]
 * Email: pengliabc(at)live.cn[^2]
 

+ 16 - 11
layouts/index.html

@@ -1,18 +1,23 @@
 {{ define "main" }}
 	<div id="spotlight" class="animated fadeIn">
-		<h1 id="home-title">Track3's Blog</h1>
-		{{- with .Site.Params.social }}
-		<div id="home-social" class="social-icons">
-			{{ range . -}}
-			<a href="{{ .url }}" target="_blank" rel="noopener"><span class="screen-reader-text">{{ .name }}</span>{{ partial "social-svg.html" . }}</a>
+		<div id="home-center">
+			<h1 id="home-title">Track3's Blog</h1>
+			{{- with .Site.Params.social }}
+			<div id="home-social" class="social-icons">
+				{{ range . -}}
+				<a href="{{ .url }}" target="_blank" rel="noopener"><span class="screen-reader-text">{{ .name }}</span>{{ partial "social-svg.html" . }}</a>
+				{{- end }}
+			</div>
 			{{- end }}
+			<nav id="home-nav" class="site-nav">
+				{{- range .Site.Menus.main }}
+				<a href="{{ .URL }}">{{ .Name }}</a>
+				{{- end }}
+			</nav>
+		</div>
+		<div id="home-footer">
+			<p>&copy; 2018 <a href="https://www.xxxlbox.com">{{ .Site.Author.name }}</a>. Some Rights Reserved.</p>
 		</div>
-		{{- end }}
-		<nav id="home-nav" class="site-nav">
-			{{- range .Site.Menus.main }}
-			<a href="{{ .URL }}">{{ .Name }}</a>
-			{{- end }}
-		</nav>
 	</div>
 {{ end }}
 

+ 2 - 4
layouts/partials/footer.html

@@ -1,6 +1,4 @@
 	<footer id="site-footer" class="section-inner thin animated fadeIn faster">
-		<div id="copyright">
-			<p>&copy; 2018 <a href="https://www.xxxlbox.com">{{ .Site.Author.name }}</a> &#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/deed.zh" target="_blank" rel="noopener">CC BY-NC 4.0</a></p>
-			<p>Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> &#183; <a href="http://www.miitbeian.gov.cn" target="_blank" rel="noopener">鄂ICP备16022650号-1</a> &#183; <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><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-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></p>
-		</div>
+		<p>&copy; 2018 <a href="https://www.xxxlbox.com">{{ .Site.Author.name }}</a> &#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/deed.zh" target="_blank" rel="noopener">CC BY-NC 4.0</a></p>
+		<p>Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> &#183; <a href="http://www.miitbeian.gov.cn" target="_blank" rel="noopener">鄂ICP备16022650号-1</a> &#183; <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><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-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></p>
 	</footer>