better media integration

This commit is contained in:
Gabriel 2022-09-16 16:04:37 -04:00
parent 8807411a61
commit 0312f241d5
6 changed files with 28 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<header>
<img src="{{.Site.Data.details.logo}}">
<img src="{{.Site.Params.default_img}}">
<div>
<h1>{{.Site.Title }}</h1>
<i>{{.Site.Params.subtitle}}</i>

View file

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

View file

@ -0,0 +1,4 @@
<video autoplay muted loop preload="true">
<source src='{{.Get "src" }}'>
<source src='{{.Get 0 }}'>
</video>

View file

@ -1,7 +1,7 @@
{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
<img
<img loading="lazy"
src='{{.Get "src"}}'
{{if .Get "alt"}}
alt='{{.Get "alt"}}'

View file

@ -1,3 +1,3 @@
<video {{if .Get "autoplay"}}autoplay muted loop{{else}}controls {{end}}>
<video {{if .Get "autoplay"}}autoplay muted loop preload="true"{{else}}controls preload="false"{{end}}>
<source src='{{.Get "src" }}'>
</video>

View file

@ -152,7 +152,6 @@ header {
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
bottom: 0;
font-size:1.25rem
}
@ -173,7 +172,12 @@ section {
flex-direction: column;
align-items: center;
}
h1{
font-size:200%;
}
h2{
font-size:150%;
}
article {
margin-top: 1rem;
margin-bottom: 1rem;
@ -181,7 +185,6 @@ article {
display: flex;
flex-direction: column;
align-items: center;
font-size:1.5rem;
font-family:Verdana, Geneva, Tahoma, sans-serif;
max-width:80rem;
}
@ -409,3 +412,17 @@ aside .listing img{
padding:1.5rem;
font-weight: bolder;
}
.gallery{
width:90%;
display:flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
}
.gallery>*{
margin:0.1rem;
border:1px solid var(--theme-color-accent);
}