major style changes

This commit is contained in:
Gabriel 2022-09-15 17:12:24 -04:00
parent 2f47f36ef2
commit 8807411a61
17 changed files with 129 additions and 185 deletions

View file

@ -15,23 +15,7 @@
{{ if .Pages }} {{ if .Pages }}
<section> <section>
{{range .Pages}} {{range .Pages}}
<section class="listing"> {{partial "item" .}}
<div>
{{ if .Params.video}}
<video controls>
<source src="{{.Params.video}}">
</video>
{{else}}
<a href="{{.Permalink}}">
<img src="{{.Params.image}}">
</a>
{{end}}
</div>
<div>
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
<p>{{.Params.description}}</p>
</div>
</section>
{{end}} {{end}}
</section> </section>
{{end}} {{end}}

View file

@ -1,25 +1,26 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>{{ .Title }}</title> <title>{{.Title}}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<description>{{.Params.description}}</description> <description>{{.Params.description}}</description>
<itunes:image href="{{.Params.image}}"/>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }} <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}} <language>{{.}}</language>{{end}}
{{ with .OutputFormats.Get "RSS" }} <image>
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} <url>{{.Site.BaseURL}}{{.Site.Params.default_img}}</url>
{{ end }} </image>
{{ range .Pages }} <atom:link href="{{.Site.BaseURL}}/rss" rel="self" type="application/rss+xml" />{{ range .Site.RegularPages }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>{{ if .Params.video}}
<itunes:image href="{{.Params.image}}"/> <enclosure url="{{.Site.BaseURL}}{{.Params.video}}" />
<enclosure url="{{.Params.video}}" /> {{end}}{{ if .Params.audio}}
<description>{{- .Content | html -}}</description> <enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
</item> {{end}}{{ if .Params.image}}
{{ end }} <image>{{.Site.BaseURL}}{{.Params.image}}</image>{{end}}
<description>{{ .Summary | html}}</description>
</item>{{ end }}
</channel> </channel>
</rss> </rss>

View file

@ -1,23 +0,0 @@
<rss version="2.0">
<channel>
<title>{{.Title}}</title>
<link>{{ .Permalink }}</link>
<description>{{.Params.description}}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\"/>" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range .Pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{- .Summary | html -}}</description>
<content:encoded>{{- .Content | html -}}</content:encoded>
</item>
{{ end }}
</channel>
</rss>

View file

@ -12,7 +12,7 @@
</article> </article>
{{ if .Site.Data.details.social_links}} {{ if .Site.Data.details.social_links}}
<hr> <hr>
<article> <div>
<h2>Stay up to date</h2> <h2>Stay up to date</h2>
<div id="social-links"> <div id="social-links">
{{range .Site.Data.details.social_links}} {{range .Site.Data.details.social_links}}
@ -25,7 +25,7 @@
{{end}} {{end}}
</div> </div>
</article> </div>
{{end}} {{end}}
</section> </section>
<section id="sidebar"> <section id="sidebar">

View file

@ -1,7 +1,7 @@
<title>{{ .Title}}</title> <title>{{ .Title}}</title>
<link rel="stylesheet" href="/css/theme.css"> <link rel="stylesheet" href="/css/theme.css">
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="title" content="{{ .Title }}"> <meta name="title" content="{{ .Site.Title }}">
<meta name="description" content="{{.Params.description}}"> <meta name="description" content="{{.Params.description}}">
<meta name="og:site_name" content="Libre Solutions Network"> <meta name="og:site_name" content="Libre Solutions Network">
<meta property="og:title" content="{{ .Title }}"> <meta property="og:title" content="{{ .Title }}">
@ -9,19 +9,19 @@
<meta property="og:url" content="{{.Permalink}}"> <meta property="og:url" content="{{.Permalink}}">
{{if .Params.video}} {{if .Params.video}}
<meta name="twitter:card" content="player"/> <meta name="twitter:card" content="player"/>
<meta property="og:video" content="https://libresolutions.network/embed?v={{.Params.video}}"> <meta property="og:video" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:video:url" content="https://libresolutions.network/embed?v={{.Params.video}}"> <meta property="og:video:url" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:video:secure_url" content="https://libresolutions.network/embed?v={{.Params.video}}"> <meta property="og:video:secure_url" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:type" content="video"> <meta property="og:type" content="video">
<meta name="twitter:player:width" content="480" /> <meta name="twitter:player:width" content="480" />
<meta name="twitter:player:height" content="360" /> <meta name="twitter:player:height" content="360" />
<meta property="twitter:player" content="https://libresolutions.network/embed?v={{.Params.video}}"> <meta property="twitter:player" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
{{else}} {{else}}
{{if .Params.peertubeURL}} {{if .Params.peertubeURL}}
<meta property="og:video" content="{{.Params.peertubeURL}}"> <meta property="og:video" content="{{.Params.peertubeURL}}">
{{else}} {{else}}
{{if .Params.audioURL}} {{if .Params.audioURL}}
<meta property="og:audio" content="https://libresolutions.network/media/{{.Params.audioURL}}"> <meta property="og:audio" content="{{.Site.BaseURL}}media/{{.Params.audioURL}}">
<meta property="og:type" content="audio"> <meta property="og:type" content="audio">
{{else}} {{else}}
<meta property="og:type" content="website"> <meta property="og:type" content="website">
@ -30,10 +30,10 @@
{{end}} {{end}}
{{end}} {{end}}
{{ if .Params.image }} {{ if .Params.image }}
<meta property="og:image" content="https://libresolutions.network/media/{{.Params.image}}"> <meta property="og:image" content="{{.Site.BaseURL}}media/{{.Params.image}}">
<meta property="twitter:image" content="https://libresolutions.network/media/{{.Params.image}}"> <meta property="twitter:image" content="{{.Site.BaseURL}}media/{{.Params.image}}">
{{else}} {{else}}
<meta property="og:image" content="https://libresolutions.network/logo.png"> <meta property="og:image" content="{{.Site.BaseURL}}logo.png">
<meta property="twitter:image" content="https://libresolutions.network/logo.png"> <meta property="twitter:image" content="{{.Site.BaseURL}}logo.png">
{{end}} {{end}}

View file

@ -1,8 +1,8 @@
<header> <header>
<img src="{{.Site.Data.details.logo}}"> <img src="{{.Site.Data.details.logo}}">
<div> <div>
<h1>{{.Site.Data.details.name }}</h1> <h1>{{.Site.Title }}</h1>
<i>{{.Site.Data.details.description}}</i> <i>{{.Site.Params.subtitle}}</i>
</div> </div>
<nav> <nav>
<a href="/"><h2>Home</h2></a> <a href="/"><h2>Home</h2></a>

View file

@ -0,0 +1,28 @@
<section class="listing">
<div>
{{ if .Params.video}}
<video controls preload="false">
<source src="{{.Params.video}}">
</video>
{{else}}
{{if .Params.image}}
<a href="{{.Permalink}}">
<img src="{{.Params.image}}">
</a>
{{else}}
<a href="{{.Permalink}}">
<img src="/res/default.png">
</a>
{{end}}
{{end}}
</div>
<div>
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
<p>{{.Params.description}}</p>
<div class="tags">
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}">{{.LinkTitle}}</a>
{{end}}
</div>
</div>
</section>

View file

@ -1,17 +1,25 @@
<div class="section-heading"> <div class="section-heading">
<h2>Recent Content</h2> <h1>Recent Content</h1>
</div> </div>
{{range first 3 .Site.RegularPages}} {{range first 3 .Site.RegularPages}}
<section class="recent"> <section class="recent">
<a href="{{.Permalink}}"> <a href="{{.Permalink}}">
{{if .Params.video}} {{ if .Params.video}}
<video controls> <video controls preload="false">
<source src="{{.Params.video}}"> <source src="{{.Params.video}}">
</video> </video>
{{else}} {{else}}
{{if .Params.image}}
<a href="{{.Permalink}}">
<img src="{{.Params.image}}"> <img src="{{.Params.image}}">
{{end}} </a>
{{else}}
<a href="{{.Permalink}}">
<img src="/res/default.png">
</a>
{{end}}
{{end}}
</a> </a>
<div> <div>
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a> <a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>

View file

@ -1,45 +1,25 @@
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:podcast="https://podcastindex.org/namespace/1.0" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<channel> <channel>
<title>{{ .Title }}</title> <title>{{.Title}}</title>
<link>{{ .Permalink }}</link> <language>en</language>
<description>{{.Params.description}}</description> <description>{{.Site.Params.subtitle}}</description>
{{ if .Params.image}}
<image href=" {{.Params.image}}"/> <image>
<itunes:image href=" {{.Params.image}}"/> <url>{{.Site.BaseURL}}{{.Site.Params.default_img}}</url>
{{else}} </image>
<image href="/logo.png"/> {{ range .Pages }}
<itunes:image href="/logo.png"/> <item>
{{end}} <title>{{ .Title }}</title>
<generator>Hugo -- gohugo.io</generator> <link>{{ .Permalink }}</link>
{{ with .Site.LanguageCode }} <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<language>{{.}}</language> {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
{{end}} <guid>{{ .Permalink }}</guid>{{ if .Params.video}}
{{ with .OutputFormats.Get "RSS" }} <enclosure url="{{.Site.BaseURL}}{{.Params.video}}" />
{{ printf "<link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{end}}{{ if .Params.audio}}
{{ end }} <enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{ range .Pages }} {{end}}{{ if .Params.image}}
<item> <image>{{.Params.image}}</image>{{end}}
<title>{{ .Title }}</title> <description>{{- .Summary | html -}}</description>
<link>{{ .Permalink }}</link> </item>{{ end }}
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> </channel>
{{ with .Site.Author.email }}
<author>{{.}}
{{ with $.Site.Author.name }}
({{.}})
{{end}}
</author>
{{end}}
<guid>{{ .Permalink }}</guid>
{{ if .Params.image}}
<image href="{{.Params.image}}"/>
<itunes:image href="{{.Params.image}}"/>
{{else}}
<image href="/logo.png"/>
<itunes:image href="/logo.png"/>
{{end}}
<description>{{- .Summary | html -}}</description>
<enclosure url=" {{.Params.audioURL}}"/>
</item>
{{ end }}
</channel>
</rss> </rss>

View file

@ -1,34 +0,0 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{.Site.Data.details.description}}</description>
<image>
<title>Libre Solutions Network</title>
<link>https://libresolutions.network</link>
<url>{{.Site.BaseURL}}{{.Site.Data.details.logo}}</url>
</image>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range first 15 .Site.RegularPages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<image>{{.Params.image}}</image>
{{ if .Params.audio }}
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}}
{{ if .Params.video}}
<enclosure url="{{.Site.BaseURL}}{{.Params.video}}" />
{{end}}
<description>{{- .Content | html -}}</description>
</item>
{{ end }}
</channel>
</rss>

View file

@ -1,3 +1,3 @@
<audio> <audio controls>
<source src='{{.Get "src" }}'> <source src='{{.Get "src" }}'>
</audio> </audio>

View file

@ -0,0 +1 @@
</div>

View file

@ -0,0 +1 @@
<div class="gallery">

View file

View file

@ -0,0 +1,3 @@
<a href="https://webring.yesterweb.org/noJS/index.php?d=prev&url=https://yesterweb.org/">Previous</a>
<a href="https://webring.yesterweb.org/noJS/index.php?d=rand&url=https://yesterweb.org/">Random</a>
<a href="https://webring.yesterweb.org/noJS/index.php?d=next&url=https://yesterweb.org/">Next</a>

View file

@ -1,11 +1,21 @@
body { body{
line-height: 1.25;
--theme-color-primary: white; --theme-color-primary: white;
--theme-color-secondary: black; --theme-color-secondary: black;
--theme-color-accent: #076cc5; --theme-color-accent: #0727c5;
--theme-color-accent-transparent: #1d7fd444; }
--theme-color-accent2: #0852a5; @media screen and (prefers-color-scheme:dark){
--theme-color-accent2-transparent: #ebb71644; body{
--theme-color-primary:black;
--theme-color-secondary:white;
--theme-color-accent: #dcb806;
}
}
body {
line-height: 1.25;
width: 100vw; width: 100vw;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
@ -35,19 +45,9 @@ header,footer{
text-align: center; text-align: center;
width:100vw; width:100vw;
} }
footer{
margin-bottom:0;
}
nav{ nav{
border-radius:30%; border-radius:30%;
} }
h1{
font-size:250%;
}
p {
}
a { a {
color: var(--theme-color-accent); color: var(--theme-color-accent);
} }
@ -74,6 +74,7 @@ main,aside {
} }
main>section{ main>section{
margin:1rem; margin:1rem;
padding:0.5rem;
} }
main{ main{
@ -116,8 +117,6 @@ audio {
flex-wrap: wrap; flex-wrap: wrap;
align-items: flex-start; align-items: flex-start;
justify-content: center; justify-content: center;
font-size: 1.25rem;
} }
.metadata>div { .metadata>div {
@ -154,7 +153,7 @@ header {
align-items: center; align-items: center;
justify-content: space-evenly; justify-content: space-evenly;
bottom: 0; bottom: 0;
font-size:1.5rem font-size:1.25rem
} }
nav { nav {
@ -182,9 +181,9 @@ article {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
font-size:2.25rem; font-size:1.5rem;
font-family:Verdana, Geneva, Tahoma, sans-serif; font-family:Verdana, Geneva, Tahoma, sans-serif;
max-width:60rem; max-width:80rem;
} }
blockquote { blockquote {
@ -206,13 +205,9 @@ article>a {
text-align: center; text-align: center;
} }
article h2,h1{ article h2,h1{
font-size:150%;
width:100%; width:100%;
text-align: center; text-align: center;
} }
h1{
font-size:175%;
}
article h3, article h3,
section h3, section h3,
@ -260,8 +255,8 @@ table{
td, td,
th { th {
margin: 0; margin: 0;
border: 1px solid var(--theme-color-accent2); padding: 0.25rem;
padding: 0.5rem; width: min-content;
text-align: left !important; text-align: left !important;
} }
@ -302,8 +297,6 @@ aside .listing img{
#sidebar { #sidebar {
padding-top:0; padding-top:0;
border:0.5rem solid var(--theme-color-accent);
border-radius: 1rem;
align-items: flex-start; align-items: flex-start;
} }
@ -330,6 +323,8 @@ aside .listing img{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
align-items: baseline;
justify-content: space-evenly;
} }
.social-link{ .social-link{
@ -384,16 +379,16 @@ aside .listing img{
} }
.section-heading{ .section-heading{
background-color: var(--theme-color-accent); color: var(--theme-color-accent);
color: var(--theme-color-primary);
width: 100%; width: 100%;
} }
@media screen and (orientation:portrait){ @media screen and (orientation:portrait){
main{ main{
flex-direction: column; flex-direction: column-reverse;
align-items: center; align-items: center;
} }
.recent,.featured{ .recent,.featured{
flex-direction: column; flex-direction: column;

BIN
static/res/default.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB