minor changes

This commit is contained in:
Gabriel 2022-09-05 19:26:00 -04:00
parent 332becdf6f
commit 8a2f71f7a1
4 changed files with 59 additions and 31 deletions

View file

@ -18,7 +18,7 @@
<section class="listing"> <section class="listing">
<div> <div>
{{ if .Params.video}} {{ if .Params.video}}
<video autoplay muted> <video controls>
<source src="{{.Params.video}}"> <source src="{{.Params.video}}">
</video> </video>
{{else}} {{else}}

View file

@ -11,6 +11,7 @@
{{.Content}} {{.Content}}
</section> </section>
{{ if .Params.author}} {{ if .Params.author}}
<hr>
<section> <section>
{{partial "metadata" .}} {{partial "metadata" .}}
</section> </section>

View file

@ -1,15 +1,17 @@
<div class="metadata"> <div class="metadata">
<div> <div>
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}} {{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
<img src="{{$author.image}}" style="max-width:10rem;border-radius:5rem;">
<h2>{{$author.name}}</h2> <h2>{{$author.name}}</h2>
<p>Date: {{.Date | time.Format "Jan 02 2006"}}</p> <p>Date: {{.Date | time.Format "Jan 02 2006"}}</p>
</div> </div>
<h4>Tags:</h4> <div>
<ul>
<h3>Tags:</h3>
{{ range (.GetTerms "tags")}} {{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}"><li>{{.LinkTitle}}</li></a> <a href="{{.Permalink}}">{{.LinkTitle}}</a>
{{end}} {{end}}
</ul> </div>
</div> </div>
</div> </div>

View file

@ -65,13 +65,17 @@ hr {
main,aside { main,aside {
padding:2.5rem; padding:2.5rem;
max-width:80rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: flex-start; align-items: flex-start;
justify-content: space-evenly; justify-content: space-evenly;
padding:1rem; padding:1rem;
max-width:90vw;
}
main{
padding-left:10%;
padding-right:10%;
} }
.listing { .listing {
width: 100%; width: 100%;
@ -110,6 +114,9 @@ audio {
.metadata>div { .metadata>div {
margin: 1rem; margin: 1rem;
display:flex;
flex-direction: column;
align-items: center;
} }
.metadata p { .metadata p {
@ -161,12 +168,10 @@ section {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
padding: 1.25rem; padding: 1.25rem;
border-radius: 1rem; border-radius: 1rem;
min-width: 30vw;
font-size:125%; font-size:125%;
} }
article { article {
min-width: 30rem;
background-color: #000015b6; background-color: #000015b6;
margin-top: 1rem; margin-top: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
@ -176,14 +181,13 @@ article {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
font-size:115%;
padding-left:10%;
padding-right:10%;
} }
blockquote { blockquote {
margin-left: 10%; margin-left: 10%;
padding-left: 5%; padding-left: 2.5rem;
width:80%;
border-left: 0.5rem solid var(--theme-color-accent2); border-left: 0.5rem solid var(--theme-color-accent2);
font-style: italic; font-style: italic;
} }
@ -198,6 +202,14 @@ article ul {
article>a { article>a {
text-align: center; text-align: center;
} }
article h2,h1{
font-size:150%;
width:100%;
text-align: center;
}
h1{
font-size:175%;
}
article h3, article h3,
section h3, section h3,
@ -212,13 +224,17 @@ article h3 {
text-decoration: underline; text-decoration: underline;
} }
article img, article img{
align-self: center;
max-width: 80%;
max-height: 50vh;
}
article video, article video,
article iframe { article iframe {
align-self: center; align-self: center;
max-width: 60rem; max-width: 60rem;
width: 80%; width: 80%;
min-height: fit-content;
} }
article iframe{ article iframe{
height:30rem; height:30rem;
@ -228,6 +244,7 @@ article>section>a{
display:flex; display:flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
width:100%;
} }
@ -252,10 +269,12 @@ video{
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
padding:1.5%; padding:1.5%;
justify-content: center; justify-content: flex-start;
text-decoration: none; text-decoration: none;
text-align: left; text-align: left;
max-width: 80%; }
.link-preview>div{
margin:1rem;
} }
.link-preview>img{ .link-preview>img{
max-width: 20%; max-width: 20%;
@ -280,24 +299,21 @@ aside .listing img{
padding-top:0; padding-top:0;
margin:2rem; margin:2rem;
margin-top:3rem; margin-top:3rem;
align-items: flex-start;
} }
.recent,.featured{
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-start;
}
.recent *, .recent *,
.featured *{ .featured *{
margin:0; margin:0;
padding:0; padding:0;
font-size:100%;
text-align: left;
} }
.recent img, .recent img,
.featured img, .featured img,
.recent video, .recent video,
.featured video{ .featured video{
max-width:20rem; max-width: 20rem;
max-height:10rem;
margin:1rem; margin:1rem;
} }
@ -342,21 +358,30 @@ aside .listing img{
border:none; border:none;
box-shadow: none; box-shadow: none;
padding:0; padding:0;
max-width:100vw; max-width:90vw;
} }
main{
max-width:100vw;
}
} }
.recent,.featured{
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
}
.featured a,.recent a{
width:initial;
}
@media screen and (orientation:portrait){ @media screen and (orientation:portrait){
main{ main{
flex-direction: column; flex-direction: column;
align-items: center;
}
.recent,.featured{
flex-direction: column;
align-items: center;
} }
} }