Browse Source

Update footer style

Track3 2 years ago
parent
commit
f772e4c9ff
4 changed files with 7 additions and 20 deletions
  1. 0 5
      assets/scss/partials/_footer.scss
  2. 1 6
      assets/scss/style.scss
  3. 4 4
      config.toml
  4. 2 5
      layouts/partials/footer.html

+ 0 - 5
assets/scss/partials/_footer.scss

@@ -18,8 +18,3 @@ p.site-copy {
   }
 }
 
-.social-icon > .icon-link {
-  font-size: 2em;
-  margin-right: .4em;
-}
-

+ 1 - 6
assets/scss/style.scss

@@ -213,7 +213,6 @@ h1#page-title {
     background: transparent;
     &>.footer-inner {
       display: flex;
-      flex-direction: row-reverse;
       padding-top: 1em;
       border-top: 2px solid var(--c-bg-alt);
     }
@@ -222,15 +221,11 @@ h1#page-title {
     display: flex;
   }
   .footer-l {
-    flex: 1;
+    flex-grow: 1;
   }
   .site-nav > span {
     color: var(--c-bg-alt);
   }
-  .social-icon > .icon-link {
-    margin-left: .4em;
-    margin-right: 0;
-  }
   .recent-posts-list a {
     display: inline;
   }

+ 4 - 4
config.toml

@@ -58,10 +58,10 @@ googleAnalytics = "UA-125057333-1"
     url = "/writing/"
     weight = 10
 
-  # [[menu.main]]
-  #   name = "Gallery"
-  #   url = "/gallery/"
-  #   weight = 20
+  [[menu.main]]
+    name = "Gallery"
+    url = "/gallery/"
+    weight = 20
 
   [[menu.main]]
     name = "Links"

+ 2 - 5
layouts/partials/footer.html

@@ -1,10 +1,5 @@
 	<footer id="site-footer" class="wrapper">
 		<div class="footer-inner">
-			<div class="footer-r">
-				{{- with .Site.Params.social -}}
-				<p class="social-icon">{{ partialCached "social-icons.html" . }}</p>
-				{{- end -}}
-			</div>
 			<div class="footer-l">
 				<nav class="site-nav">
 					<a href="{{.Site.BaseURL}}">Home</a><span>&#47;</span>
@@ -12,6 +7,8 @@
 					<a href="{{ .URL }}">{{ .Name }}</a><span>&#47;</span>
 					{{- end }}
 				</nav>
+			</div>
+			<div class="footer-r">
 				<p class="site-copy">&copy; {{ now.Format "2006" }} <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> &#183; <a href="{{ "writing/index.xml" | absURL }}" target="_blank" title="RSS" class="icon-link"><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>
 		</div>