messed with the header a bit and made homepage have recent articles

This commit is contained in:
Pagwin 2024-11-30 17:19:28 -05:00
parent eb27d6c289
commit ae7fe28e58
5 changed files with 29 additions and 11 deletions

View file

@ -1,4 +1,3 @@
Here's some links to various things of mine \
#link("https://github.com/Pagwin-Fedora")[Github] \
#link("https://www.linkedin.com/in/spencer-powell-pagwin/")[Linkedin] #strike[I barely look at this] \
#link("/index.xml")[RSS] \

View file

@ -68,7 +68,7 @@ time {
}
#header {
header#header {
box-sizing: border-box;
display: flex;
flex-flow: row nowrap;
@ -108,7 +108,7 @@ main {
max-width: -webkit-fill-available;;
max-width: fill-available;
}
header {
header#article-header {
max-width: -moz-available;
max-width: -webkit-fill-available;;
max-width: fill-available;
@ -149,6 +149,11 @@ blockquote {
width: 2rem;
height: 2rem;
}
/*https://stackoverflow.com/questions/35269947/how-can-i-align-one-item-right-with-flexbox#35270047*/
.back-shover {
margin-left:auto;
margin-top:auto;
}
/* div element with this class can be a bitch so need to select those as well as pre*/
.sourceCode {
max-width: -moz-available;

View file

@ -23,20 +23,21 @@
<body>
<!-- originally handled dark v light via js but decided it would be better to just do it all in css and have no toggle 8a7917a0cd34bd7637d9a9a8ad327e4b847cdeed is the last commit where I had the system setup -->
<div id="header">
<header id="header">
<a class="nav-link" href="/">Home</a>
<a class="nav-link" href="/posts/">Blog Posts</a>
<a class="nav-link" href="/links/">Links</a>
</div>
<a class="nav-link" href="/posts/">All Posts</a>
<a class="nav-link" href="/links/">Other places I'm at</a>
<div class="back-shover"></div>
<a class="icon" href="/index.xml"> <object width="100" height="100" class="icon svg"
data="/static/images/rss.svg">atom/rss/web
feed</object></a>
</header>
<div id="content-outer">
<div id="content">
<main>
{{{content}}}
</main>
<footer>
<!-- don't bother with anchor on outside anchor is inside svg-->
<a href="/index.xml"> <object width="100" height="100" class="icon" data="/static/images/rss.svg">rss
feed</object></a>
</footer>
</div>
</div>

View file

@ -1,2 +1,15 @@
<h2>Hi there, I'm Pagwin</h2>
<p>I post here sometimes</p>
<hr>
<h2>Recent posts:</h2>
<dl>
{{#posts}}
<div>
<dt class="post-title-item"><a href="{{link}}">{{title}}</a> </dt>
<dd class="dt-subtitle"><time datetime="{{{iso_date}}}">{{date}}</time></dd>
<dd>
<p>{{summary}}</p>
</dd>
</div>
{{/posts}}
</dl>

View file

@ -1,4 +1,4 @@
<header>
<header id="article-header">
<h1 style="font-variant: small-caps;">{{{title}}}</h1>
<div class=" info">
{{{date}}}