From 4a476bbd82e5f24b7783fed4bd546b17535a16db Mon Sep 17 00:00:00 2001 From: Zihao Zhang Date: Sat, 18 Mar 2017 20:18:33 -0700 Subject: [PATCH] Use wrapper class instead of id --- layouts/404.html | 2 +- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- layouts/about/single.html | 2 +- layouts/index.html | 2 +- layouts/partials/profile.html | 20 +++++++++----------- layouts/tags/single.html | 2 +- static/css/style.css | 10 +++++----- 8 files changed, 20 insertions(+), 22 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index d5b27a6..06246e4 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,7 +2,7 @@ {{ partial "nav.html" . }} -
+

{{ with .Site.Params.title404 }}{{ . }}{{ else }}404 - Page not found{{ end }}

diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 860a629..5539d55 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,7 +3,7 @@ {{ partial "nav.html" . }} {{ partial "profile.html" . }} -
+
{{ range .Data.Pages.GroupByDate "2006" }}

{{ .Key }}

diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6dbb01a..b274288 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@ {{ partial "nav.html" . }} -
+

diff --git a/layouts/about/single.html b/layouts/about/single.html index 4933005..6e131de 100644 --- a/layouts/about/single.html +++ b/layouts/about/single.html @@ -3,7 +3,7 @@ {{ partial "nav.html" . }} {{ partial "profile.html" . }} -
+
{{ .Content }} {{ if .Site.Params.enableDisqus }} diff --git a/layouts/index.html b/layouts/index.html index 74411da..273b5a9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ {{ partial "profile.html" . }} -
+
{{ partial "post-list.html" . }} {{ partial "pagination.html" . }} {{ partial "footer.html" . }} diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index d58f285..ec80961 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -1,11 +1,9 @@ -
-
- -
-
\ No newline at end of file +
+ +
diff --git a/layouts/tags/single.html b/layouts/tags/single.html index d03d7a0..a16f3d4 100644 --- a/layouts/tags/single.html +++ b/layouts/tags/single.html @@ -3,7 +3,7 @@ {{ partial "nav.html" . }} {{ partial "profile.html" . }} -
+
{{ range $name, $taxonomy := .Site.Taxonomies.tags }} diff --git a/static/css/style.css b/static/css/style.css index 8de4f4f..06aa687 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -134,7 +134,7 @@ h2 { color: #bbb; } -.profile #wrapper { +.wrapper.profile { padding: 100px 40px 0px; max-width: 600px; margin: 0 auto; @@ -200,13 +200,13 @@ nav.main-nav a.cta { margin-left: 12px; } -#wrapper { +.wrapper { max-width: 600px; margin: 0 auto; padding: 60px 40px 100px 40px; } -#wrapper.home { +.wrapper.home { max-width: 600px; margin: 0 auto; padding: 0px 40px 20px 40px; @@ -747,7 +747,7 @@ h2.month { /* Media Queries */ @media screen and (max-width: 540px) { - #wrapper { + .wrapper { padding: 20px 20px 20px 20px; } #header { @@ -871,7 +871,7 @@ code { * tags page */ -#wrapper.tags { +.wrapper.tags { padding: 0px 40px 20px 40px; } .page-tags {