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 }}
<section>
{{range .Pages}}
<section class="listing">
<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>
{{partial "item" .}}
{{end}}
</section>
{{end}}

View file

@ -1,25 +1,26 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Title }}</title>
<title>{{.Title}}</title>
<link>{{ .Permalink }}</link>
<description>{{.Params.description}}</description>
<itunes:image href="{{.Params.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 .Pages }}
<image>
<url>{{.Site.BaseURL}}{{.Site.Params.default_img}}</url>
</image>
<atom:link href="{{.Site.BaseURL}}/rss" rel="self" type="application/rss+xml" />{{ range .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>
<itunes:image href="{{.Params.image}}"/>
<enclosure url="{{.Params.video}}" />
<description>{{- .Content | html -}}</description>
</item>
{{ end }}
<guid>{{ .Permalink }}</guid>{{ if .Params.video}}
<enclosure url="{{.Site.BaseURL}}{{.Params.video}}" />
{{end}}{{ if .Params.audio}}
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}}{{ if .Params.image}}
<image>{{.Site.BaseURL}}{{.Params.image}}</image>{{end}}
<description>{{ .Summary | html}}</description>
</item>{{ end }}
</channel>
</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>
{{ if .Site.Data.details.social_links}}
<hr>
<article>
<div>
<h2>Stay up to date</h2>
<div id="social-links">
{{range .Site.Data.details.social_links}}
@ -25,7 +25,7 @@
{{end}}
</div>
</article>
</div>
{{end}}
</section>
<section id="sidebar">

View file

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

View file

@ -1,8 +1,8 @@
<header>
<img src="{{.Site.Data.details.logo}}">
<div>
<h1>{{.Site.Data.details.name }}</h1>
<i>{{.Site.Data.details.description}}</i>
<h1>{{.Site.Title }}</h1>
<i>{{.Site.Params.subtitle}}</i>
</div>
<nav>
<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">
<h2>Recent Content</h2>
<h1>Recent Content</h1>
</div>
{{range first 3 .Site.RegularPages}}
<section class="recent">
<a href="{{.Permalink}}">
{{if .Params.video}}
<video controls>
<source src="{{.Params.video}}">
</video>
{{else}}
{{ if .Params.video}}
<video controls preload="false">
<source src="{{.Params.video}}">
</video>
{{else}}
{{if .Params.image}}
<a href="{{.Permalink}}">
<img src="{{.Params.image}}">
{{end}}
</a>
{{else}}
<a href="{{.Permalink}}">
<img src="/res/default.png">
</a>
{{end}}
{{end}}
</a>
<div>
<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/">
<channel>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{.Params.description}}</description>
{{ if .Params.image}}
<image href=" {{.Params.image}}"/>
<itunes:image href=" {{.Params.image}}"/>
{{else}}
<image href="/logo.png"/>
<itunes:image href="/logo.png"/>
{{end}}
<generator>Hugo -- gohugo.io</generator>
{{ with .Site.LanguageCode }}
<language>{{.}}</language>
{{end}}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<link href=%q rel=\"self\" type=%q />" .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>
{{ 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 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>
<title>{{.Title}}</title>
<language>en</language>
<description>{{.Site.Params.subtitle}}</description>
<image>
<url>{{.Site.BaseURL}}{{.Site.Params.default_img}}</url>
</image>
{{ 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>{{ if .Params.video}}
<enclosure url="{{.Site.BaseURL}}{{.Params.video}}" />
{{end}}{{ if .Params.audio}}
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}}{{ if .Params.image}}
<image>{{.Params.image}}</image>{{end}}
<description>{{- .Summary | html -}}</description>
</item>{{ end }}
</channel>
</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" }}'>
</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 {
line-height: 1.25;
body{
--theme-color-primary: white;
--theme-color-secondary: black;
--theme-color-accent: #076cc5;
--theme-color-accent-transparent: #1d7fd444;
--theme-color-accent2: #0852a5;
--theme-color-accent2-transparent: #ebb71644;
--theme-color-accent: #0727c5;
}
@media screen and (prefers-color-scheme:dark){
body{
--theme-color-primary:black;
--theme-color-secondary:white;
--theme-color-accent: #dcb806;
}
}
body {
line-height: 1.25;
width: 100vw;
margin: 0px;
padding: 0px;
@ -35,19 +45,9 @@ header,footer{
text-align: center;
width:100vw;
}
footer{
margin-bottom:0;
}
nav{
border-radius:30%;
}
h1{
font-size:250%;
}
p {
}
a {
color: var(--theme-color-accent);
}
@ -74,6 +74,7 @@ main,aside {
}
main>section{
margin:1rem;
padding:0.5rem;
}
main{
@ -116,8 +117,6 @@ audio {
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
font-size: 1.25rem;
}
.metadata>div {
@ -154,7 +153,7 @@ header {
align-items: center;
justify-content: space-evenly;
bottom: 0;
font-size:1.5rem
font-size:1.25rem
}
nav {
@ -182,9 +181,9 @@ article {
display: flex;
flex-direction: column;
align-items: center;
font-size:2.25rem;
font-size:1.5rem;
font-family:Verdana, Geneva, Tahoma, sans-serif;
max-width:60rem;
max-width:80rem;
}
blockquote {
@ -206,13 +205,9 @@ article>a {
text-align: center;
}
article h2,h1{
font-size:150%;
width:100%;
text-align: center;
}
h1{
font-size:175%;
}
article h3,
section h3,
@ -260,8 +255,8 @@ table{
td,
th {
margin: 0;
border: 1px solid var(--theme-color-accent2);
padding: 0.5rem;
padding: 0.25rem;
width: min-content;
text-align: left !important;
}
@ -302,8 +297,6 @@ aside .listing img{
#sidebar {
padding-top:0;
border:0.5rem solid var(--theme-color-accent);
border-radius: 1rem;
align-items: flex-start;
}
@ -330,6 +323,8 @@ aside .listing img{
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-evenly;
}
.social-link{
@ -384,16 +379,16 @@ aside .listing img{
}
.section-heading{
background-color: var(--theme-color-accent);
color: var(--theme-color-primary);
color: var(--theme-color-accent);
width: 100%;
}
@media screen and (orientation:portrait){
main{
flex-direction: column;
flex-direction: column-reverse;
align-items: center;
}
.recent,.featured{
flex-direction: column;

BIN
static/res/default.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB