minor changes

This commit is contained in:
Gabriel 2023-03-06 19:49:09 -05:00
parent 456976d3e7
commit c875f09e43
6 changed files with 35 additions and 28 deletions

View file

@ -14,7 +14,7 @@
<p>Unfortunately this isn't a real page (yet?).<br> <p>Unfortunately this isn't a real page (yet?).<br>
If you believe this is a mistake please <a href="mailto:contact@libresolutions.network?subject=RE:%20404">get in touch</a>.</p> If you believe this is a mistake please <a href="mailto:contact@libresolutions.network?subject=RE:%20404">get in touch</a>.</p>
<p>A search function is in the works...</p> <p>A search function is in the works...</p>
<p>Please consider <a href="about/#supporting-this-work">Supporting this work</a></p> <p>Please consider <a href="/about/#supporting-this-work">Supporting this work</a></p>
</article> </article>
</main> </main>
{{partial "footer" .}} {{partial "footer" .}}

View file

@ -10,15 +10,9 @@
{{partial "banner" .}} {{partial "banner" .}}
{{partial "spritesheet" .}} {{partial "spritesheet" .}}
<main> <main>
<section id="main-content">
<article> <article>
{{.Content}} {{.Content}}
</article> </article>
</section>
<section id="sidebar">
{{partial "sidebar" .}}
</section>
</main> </main>
{{ partial "footer" .}} {{ partial "footer" .}}
</body> </body>

View file

@ -1,12 +1,3 @@
{{if .Site.Taxonomies.categories.featured}}
<h2 style="text-align:center;width:100%">Featured</h2>
{{range .Site.Taxonomies.categories.featured.Pages.Reverse}}
{{ partial "item" .}}
{{end}}
{{end}}
<h2 style="text-align:center;width:100%">Recent Content</h2> <h2 style="text-align:center;width:100%">Recent Content</h2>
{{range first 3 .Site.RegularPages}} {{range first 3 .Site.RegularPages}}
{{ partial "item" .}} {{ partial "item" .}}

View file

@ -0,0 +1,5 @@
<div class="gallery">
{{range first 3 .Site.RegularPages}}
{{partial "item" .}}
{{end}}
</div>

View file

@ -0,0 +1,7 @@
<div class="gallery">
{{ $tag := .Get 0 }}
{{range .Site.RegularPages.RelatedTo (keyVals "tags" $tag) }}
{{partial "item" .}}
{{end}}
</div>

View file

@ -278,7 +278,9 @@ article .media-container {
align-items: center; align-items: center;
width: 100%; width: 100%;
} }
article section {
width:100%;
}
.media-container a { .media-container a {
width: 100%; width: 100%;
display: flex; display: flex;
@ -415,6 +417,7 @@ video {
#sidebar { #sidebar {
padding-top: 0; padding-top: 0;
align-items: flex-start; align-items: flex-start;
min-width: 540px;
} }
.recent *, .recent *,
@ -575,23 +578,20 @@ video {
margin:0; margin:0;
} }
.image-container { .media-container {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.image-container, .media-container,
.image-container a { .media-container a {
width: fit-content; width: fit-content;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
} }
.image-container .caption { .media-container .caption {
width: fit-content; width: fit-content;
border: 1px solid var(--theme-accent);
padding: 0.5rem;
border-radius: 0.5rem;
} }
.gallery>* { .gallery>* {
@ -741,3 +741,13 @@ svg{
to{background-color: transparent;backdrop-filter: blur(0px);} to{background-color: transparent;backdrop-filter: blur(0px);}
} }
} }
article a[href^="https"]:where(:not([href*="{{.Site.BaseURL}}"])) {text-decoration: none !important;}
article a[href^="https"]:where(:not([href*="{{.Site.BaseURL}}"]))::after {content:"↗️";font-size:18px;margin:5px;text-decoration: none !important;}
.media-container a::after, .liberapay-container a::after, .tags a::after, .listing a::after, #tags a::after{
content: "" !important;margin:0 !important;font-size:0;
}
.media-container a[href^="https"]:where(:not([href*="{{.Site.BaseURL}}"]))::after {content:"↗️" !important;font-size:18px;margin:5px;text-decoration: none !important;}
.media-container a{
flex-direction: row;
}