diff options
| author | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-09-29 00:14:30 -0400 |
|---|---|---|
| committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-09-29 00:14:30 -0400 |
| commit | 81200fa6a598557f36593c950d7a63c52aa0b22f (patch) | |
| tree | 7d51cadde76655cd4a928adf3d4a536b97c3124b | |
| parent | b179606dac7cf36c490512146ad8ce898f7800b2 (diff) | |
tweak styles
| -rw-r--r-- | assets/css/main.css | 21 | ||||
| -rw-r--r-- | layouts/index.html | 9 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 5 | ||||
| -rw-r--r-- | layouts/partials/header.html | 10 |
4 files changed, 27 insertions, 18 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index 934e91b..792f1f6 100644 --- a/assets/css/main.css +++ b/assets/css/main.css | |||
| @@ -42,16 +42,33 @@ footer { | |||
| 42 | position:relative; | 42 | position:relative; |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | .poweredby, | ||
| 45 | .copyright { | 46 | .copyright { |
| 46 | background: #00000055; | ||
| 47 | position: absolute; | 47 | position: absolute; |
| 48 | left: 0; | 48 | left: 0; |
| 49 | bottom: 0; | ||
| 50 | width: 100%; | 49 | width: 100%; |
| 51 | padding: 1rem; | 50 | padding: 1rem; |
| 52 | text-align: center; | 51 | text-align: center; |
| 53 | } | 52 | } |
| 54 | 53 | ||
| 54 | .poweredby { | ||
| 55 | background: #00000055; | ||
| 56 | bottom: 0; | ||
| 57 | padding: .5rem; | ||
| 58 | } | ||
| 59 | |||
| 60 | .copyright { | ||
| 61 | background: #00000022; | ||
| 62 | bottom: 50px; | ||
| 63 | } | ||
| 64 | |||
| 55 | .post { | 65 | .post { |
| 56 | margin-bottom: 1em; | 66 | margin-bottom: 1em; |
| 57 | } | 67 | } |
| 68 | |||
| 69 | .wordmark { | ||
| 70 | font-size: 2em; | ||
| 71 | text-transform: uppercase; | ||
| 72 | font-weight: 600; | ||
| 73 | } | ||
| 74 | |||
diff --git a/layouts/index.html b/layouts/index.html index 16138b4..2f86fca 100644 --- a/layouts/index.html +++ b/layouts/index.html | |||
| @@ -3,12 +3,5 @@ | |||
| 3 | <article> | 3 | <article> |
| 4 | {{- .Content -}} | 4 | {{- .Content -}} |
| 5 | </article> | 5 | </article> |
| 6 | {{ with .Site.GetPage "post" }} | ||
| 7 | {{ range .Pages }} | ||
| 8 | <article> | ||
| 9 | <p>{{ .Render "summary" }}</p> | ||
| 10 | </article> | ||
| 11 | {{ end }} | ||
| 12 | {{ end }} | ||
| 13 | </div> | 6 | </div> |
| 14 | {{ end }} \ No newline at end of file | 7 | {{ end }} |
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d60e941..3800b98 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html | |||
| @@ -47,6 +47,9 @@ | |||
| 47 | </section> | 47 | </section> |
| 48 | </div> | 48 | </div> |
| 49 | </div> | 49 | </div> |
| 50 | <div class="poweredby"> | ||
| 51 | Powered by <a href="https://gohugo.io">Hugo</a> & Blackbear | ||
| 52 | </div> | ||
| 50 | <div class="copyright">© Copyright {{ now.Format "2006" }} | All Rights Reserved | 53 | <div class="copyright">© Copyright {{ now.Format "2006" }} | All Rights Reserved |
| 51 | </div> | 54 | </div> |
| 52 | </footer> \ No newline at end of file | 55 | </footer> |
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4a9ae70..28d3734 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | <header> | 1 | <header> |
| 2 | <div class="container"> | 2 | <div class="container"> |
| 3 | <nav> | 3 | <nav> |
| 4 | <ul> | 4 | <div class='wordmark'> |
| 5 | <li> | ||
| 6 | <strong> | ||
| 7 | {{ .Site.Title }} | 5 | {{ .Site.Title }} |
| 8 | </strong> | 6 | </div> |
| 9 | </li> | ||
| 10 | </ul> | ||
| 11 | <ul> | 7 | <ul> |
| 12 | {{ range .Site.Menus.main }} | 8 | {{ range .Site.Menus.main }} |
| 13 | <li><a href="{{ .URL }}">{{ .Name }}</a></li> | 9 | <li><a href="{{ .URL }}">{{ .Name }}</a></li> |
| @@ -15,4 +11,4 @@ | |||
| 15 | </ul> | 11 | </ul> |
| 16 | </nav> | 12 | </nav> |
| 17 | </div> | 13 | </div> |
| 18 | </header> \ No newline at end of file | 14 | </header> |
