summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRayHammer <evkondratyev@yandex.ru>2022-10-23 13:48:18 +0200
committerRayHammer <evkondratyev@yandex.ru>2022-10-23 13:48:18 +0200
commit730d3a8eba6875fa601dece7c0e62e07510b3d1b (patch)
tree298ff4bfd10d1e8b59ed41ca40e48d95f4ce9365
parent5fa9597734f5183863bde2a4eed35fb5b8f0f115 (diff)
Made an aside block
-rw-r--r--themes/stingray/layouts/_default/baseof.html13
-rw-r--r--themes/stingray/layouts/index.html8
-rw-r--r--themes/stingray/layouts/partials/aside.html10
-rw-r--r--themes/stingray/layouts/partials/footer.html8
-rw-r--r--themes/stingray/layouts/partials/header.html10
-rw-r--r--themes/stingray/static/css/main.css2
6 files changed, 28 insertions, 23 deletions
diff --git a/themes/stingray/layouts/_default/baseof.html b/themes/stingray/layouts/_default/baseof.html
index d4ded14..38cf6a3 100644
--- a/themes/stingray/layouts/_default/baseof.html
+++ b/themes/stingray/layouts/_default/baseof.html
@@ -3,15 +3,14 @@
{{- partial "head.html" . -}}
<body>
<div class="jumbotron">
- <header>
{{- partial "header.html" . -}}
- </header>
- <main id="content">
- {{- block "main" . }}{{- end }}
- </main>
- <footer>
+ <div class="container-fluid" style="overflow: hidden;">
+ {{- partial "aside.html" . -}}
+ <main id="content">
+ {{- block "main" . }}{{- end }}
+ </main>
+ </div>
{{- partial "footer.html" . -}}
- </footer>
</div>
</body>
</html>
diff --git a/themes/stingray/layouts/index.html b/themes/stingray/layouts/index.html
index 919ef99..f752ee3 100644
--- a/themes/stingray/layouts/index.html
+++ b/themes/stingray/layouts/index.html
@@ -1,11 +1,3 @@
{{ define "main" }}
-<div id="card" class="h-card text-center">
- <a class="u-url u-uid" href="https://rayhammer.dev" rel="me">
- <img class="u-photo" src="img/rayhammer.jpg">
- </a>
- <p>
- <span class="p-nickname">RayHammer</span>
- </p>
-</div>
{{ .Content }}
{{ end }} \ No newline at end of file
diff --git a/themes/stingray/layouts/partials/aside.html b/themes/stingray/layouts/partials/aside.html
new file mode 100644
index 0000000..418581c
--- /dev/null
+++ b/themes/stingray/layouts/partials/aside.html
@@ -0,0 +1,10 @@
+<aside id="card">
+ <div class="h-card text-center">
+ <a class="u-url u-uid" href="https://rayhammer.dev" rel="me">
+ <img class="u-photo" src="img/rayhammer.jpg">
+ </a>
+ <p>
+ <span class="p-nickname">RayHammer</span>
+ </p>
+ </div>
+</aside> \ No newline at end of file
diff --git a/themes/stingray/layouts/partials/footer.html b/themes/stingray/layouts/partials/footer.html
index 5768ad1..588f5b0 100644
--- a/themes/stingray/layouts/partials/footer.html
+++ b/themes/stingray/layouts/partials/footer.html
@@ -1,3 +1,5 @@
-<p class="text-center">
- (c) 2022 <a class="h-card" href="https://rayhammer.dev">RayHammer</a>
-</p> \ No newline at end of file
+<footer>
+ <p class="text-center">
+ (c) 2022 <a class="h-card" href="https://rayhammer.dev">RayHammer</a>
+ </p>
+</footer> \ No newline at end of file
diff --git a/themes/stingray/layouts/partials/header.html b/themes/stingray/layouts/partials/header.html
index 5759242..9b61ee6 100644
--- a/themes/stingray/layouts/partials/header.html
+++ b/themes/stingray/layouts/partials/header.html
@@ -1,4 +1,6 @@
-<div class="text-center">
- <h1 class="title">{{ .Site.Title }}</h1>
- {{ .Site.Params.Description }}
-</div> \ No newline at end of file
+<header>
+ <div class="text-center">
+ <h1 class="title">{{ .Site.Title }}</h1>
+ {{ .Site.Params.Description }}
+ </div>
+</header>
diff --git a/themes/stingray/static/css/main.css b/themes/stingray/static/css/main.css
index a32caa2..76f7ef0 100644
--- a/themes/stingray/static/css/main.css
+++ b/themes/stingray/static/css/main.css
@@ -1,5 +1,5 @@
.jumbotron {
- max-width: 900px;
+ max-width: 1200px;
margin: auto;
}