minor changes
This commit is contained in:
parent
456976d3e7
commit
c875f09e43
6 changed files with 35 additions and 28 deletions
|
@ -14,7 +14,7 @@
|
|||
<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>
|
||||
<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>
|
||||
</main>
|
||||
{{partial "footer" .}}
|
||||
|
|
|
@ -10,15 +10,9 @@
|
|||
{{partial "banner" .}}
|
||||
{{partial "spritesheet" .}}
|
||||
<main>
|
||||
|
||||
<section id="main-content">
|
||||
<article>
|
||||
{{.Content}}
|
||||
</article>
|
||||
</section>
|
||||
<section id="sidebar">
|
||||
{{partial "sidebar" .}}
|
||||
</section>
|
||||
<article>
|
||||
{{.Content}}
|
||||
</article>
|
||||
</main>
|
||||
{{ partial "footer" .}}
|
||||
</body>
|
||||
|
|
|
@ -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>
|
||||
{{range first 3 .Site.RegularPages}}
|
||||
{{ partial "item" .}}
|
||||
|
|
5
layouts/shortcodes/recent-items.html
Normal file
5
layouts/shortcodes/recent-items.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<div class="gallery">
|
||||
{{range first 3 .Site.RegularPages}}
|
||||
{{partial "item" .}}
|
||||
{{end}}
|
||||
</div>
|
7
layouts/shortcodes/relevant-items.html
Normal file
7
layouts/shortcodes/relevant-items.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
<div class="gallery">
|
||||
{{ $tag := .Get 0 }}
|
||||
{{range .Site.RegularPages.RelatedTo (keyVals "tags" $tag) }}
|
||||
{{partial "item" .}}
|
||||
{{end}}
|
||||
</div>
|
|
@ -278,7 +278,9 @@ article .media-container {
|
|||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
article section {
|
||||
width:100%;
|
||||
}
|
||||
.media-container a {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
@ -415,6 +417,7 @@ video {
|
|||
#sidebar {
|
||||
padding-top: 0;
|
||||
align-items: flex-start;
|
||||
min-width: 540px;
|
||||
}
|
||||
|
||||
.recent *,
|
||||
|
@ -575,23 +578,20 @@ video {
|
|||
margin:0;
|
||||
}
|
||||
|
||||
.image-container {
|
||||
.media-container {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.image-container,
|
||||
.image-container a {
|
||||
.media-container,
|
||||
.media-container a {
|
||||
width: fit-content;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.image-container .caption {
|
||||
.media-container .caption {
|
||||
width: fit-content;
|
||||
border: 1px solid var(--theme-accent);
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.gallery>* {
|
||||
|
@ -740,4 +740,14 @@ svg{
|
|||
from{background-color: rgba(0, 0, 0, 0.25);}
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue