Browse Source

Code optimization

Track3 6 years ago
parent
commit
823f9c2add
5 changed files with 11 additions and 11 deletions
  1. 3 1
      assets/scss/style.scss
  2. 4 6
      config.toml
  3. 2 2
      layouts/404.html
  4. 1 1
      layouts/index.html
  5. 1 1
      layouts/partials/footer.html

+ 3 - 1
assets/scss/style.scss

@@ -276,6 +276,8 @@ table {
   flex-direction: column;
   align-items: center;
   justify-content: center;
+  max-width: 93%;
+  margin: auto;
   font-size: 1.5rem;
 
   &.error-404 {
@@ -284,7 +286,7 @@ table {
   }
 }
 
-p.catguard {
+p.img-404 {
   margin: 0;
 
   img {

+ 4 - 6
config.toml

@@ -1,27 +1,25 @@
 baseURL = "https://www.xxxlbox.com"
 languageCode = "zh-cn"
-DefaultContentLanguage = "zh"
 title = "Track3's Blog"
-copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
 
 enableGitInfo = true
 pygmentsCodefences  = true
 pygmentsUseClasses  = true
 hasCJKLanguage = true
 rssLimit = 10
-
-[blackfriday]
-  hrefTargetBlank = true
+copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
 
 [author]
   name = "Track3"
 
+[blackfriday]
+  hrefTargetBlank = true
+
 [taxonomies]
   tag = "tags"
   category = ""
 
 [params]
-  author          = "Track3"
   dateform        = "Jan 2, 2006"
   dateformShort   = "Jan 2"
   dateformNum     = "2006-01-02"

+ 2 - 2
layouts/404.html

@@ -1,10 +1,10 @@
 {{ define "main" }}
 	<div id="spotlight" class="error-404 animated fadeIn">
-		<p class="catguard">
+		<p class="img-404">
 			<img src="{{ "img/404.png" | absURL }}" alt="Nothing Found">
 		</p>
 		<div class="banner-404">
-			<h1 id="404-title">404</h1>
+			<h1>404</h1>
 			<p>Oops, page not found…</p>
 			<p class="btn-404">
 				<a href="{{.Site.BaseURL}}"><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-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>Home</a>

+ 1 - 1
layouts/index.html

@@ -14,7 +14,7 @@
 			</nav>
 		</div>
 		<div id="home-footer">
-			<p>&copy; 2018 <a href="https://www.xxxlbox.com">{{ .Site.Author.name }}</a>. Some Rights Reserved.</p>
+			<p>&copy; 2018 <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>. Some Rights Reserved.</p>
 		</div>
 	</div>
 {{ end }}

+ 1 - 1
layouts/partials/footer.html

@@ -1,4 +1,4 @@
 	<footer id="site-footer" class="section-inner thin animated fadeIn faster">
-		<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>&copy; 2018 <a href="{{ .Site.BaseURL }}">{{ .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>