Compare commits

...

3 commits

Author SHA1 Message Date
Leon Mika df3c3285d6 Fixed bad reference for default sidebar 2025-02-04 22:09:32 +11:00
Leon Mika 54623c2cdb Fixed reference to sidebar template 2025-02-04 22:04:36 +11:00
Leon Mika cd04e9bc5f Styling to suit bayou theme
Also moved the sidebar components in a new directory.
2025-02-04 22:00:53 +11:00
5 changed files with 20 additions and 8 deletions

View file

@ -1 +1 @@
{{ partial "sidebar-for-tiny-theme/sidebar.html" . }}
{{ partial "sidebar-for-bayou/sidebar.html" . }}

View file

@ -5,7 +5,7 @@
{{ if and (.Site.Data.blogrolls) (.Site.Data.blogrolls.recommendations) }}
<ul class="blogroll">
{{ range .Site.Data.blogrolls.recommendations }}
<li><a href="{{ .url }}">{{ .name }}: <span>{{ (urls.Parse .url).Hostname }}</span></a></li>
<li><a href="{{ .url }}"><span>{{ .name }}:</span> {{ (urls.Parse .url).Hostname }}</a></li>
{{ end }}
</ul>
<div class="blogroll-footer-links">

View file

@ -7,7 +7,7 @@
{{ if templates.Exists "partials/sidebar.html" }}
{{ partial "sidebar.html" . }}
{{ else }}
{{ partial "sidebar-for-tiny-theme/recommendations.html" . }}
{{ partial "sidebar-for-bayou/recommendations.html" . }}
{{ end }}
</div>
{{ end -}}

View file

@ -3,7 +3,7 @@
max-width: 50em;
}
div.page-content:has(div.sidebar) {
div.page-content-wrapper:has(div.sidebar) {
display: grid;
grid-template-columns: minmax(20em,35em) 15em;
column-gap: 60px;
@ -28,7 +28,7 @@ div.sidebar {
div.sidebar-item {
border-block-start: solid thin var(--accent1);
border-block-start: solid thin var(--primary);
padding-block-start: 20px;
padding-block-end: 20px;
}
@ -44,7 +44,6 @@ div.sidebar-item header {
div.sidebar-item header h1 {
font-size: 1.0em;
color: var(--accent1);
}
div.sidebar-item ul.blogroll,
@ -60,11 +59,15 @@ div.sidebar-item ul.links li {
div.sidebar-item ul.blogroll li a {
text-decoration: none;
color: var(--text);
color: var(--primary);
}
div.sidebar-item ul.blogroll li a:hover {
text-decoration: underline;
}
div.sidebar-item ul.blogroll li a span {
color: var(--accent2);
color: var(--text-color);
}
div.sidebar-item div.blogroll-footer-links {
@ -78,6 +81,11 @@ div.sidebar-item div.blogroll-footer-links a {
text-decoration: none;
}
div.sidebar-item div.blogroll-footer-links a:hover {
text-decoration: underline;
}
div.sidebar-item div.blogroll-footer-links a:first-of-type {
margin-inline-start: 0;
}
@ -85,3 +93,7 @@ div.sidebar-item div.blogroll-footer-links a:first-of-type {
div.sidebar-item ul.links li a {
text-decoration: none;
}
div.sidebar-item ul.links li a:hover {
text-decoration: underline;
}