Skip to content

Commit

Permalink
remove posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhudak committed Sep 20, 2023
1 parent fe856b5 commit 21d6424
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 39 deletions.
18 changes: 1 addition & 17 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,4 @@
<meta name="twitter:card" content="summary">
</head><body><div class="u-flow"><header><div class="u-flow"><p><a href="/">Jonathan Hudak</a></p><ul class="ul"><li><a href="https://www.instagram.com/hudak_doodles/">Artist 🖼</a></li><li>Musician 🎸
&nbsp;<a title="Mystical Synth Pop from 2010-2011" href="https://tumbledry.bandcamp.com/music">🎹</a> 🎤 🎧</li><li>Coder of Web 💻
&nbsp;<a href="https://hudak.codes">hudak.codes</a> | &nbsp;💾| &nbsp;<a href="https://github.com/jonathanhudak">github</a></li><li> <a href="/about">About</a></li></ul></div></header></div><main><div class="u-flow">
<ul>
<h2>
2023
</h2>
<p>Is ongoing</p>
<h2>
<a href="/2022/">2022</a>
</h2>
<p>My great reset</p>
<h2>
<a href="/2020/">2020</a>
</h2>
<p>Seattle exit</p>

</ul>
</div></main><footer class="footer"><div class="u-flow"><p>Jonathan Hudak © 2023</p></div></footer></body></html>
&nbsp;<a href="https://hudak.codes">hudak.codes</a> | &nbsp;💾| &nbsp;<a href="https://github.com/jonathanhudak">github</a></li><li> <a href="/about">About</a></li></ul></div></header></div><main><div class="u-flow"></div></main><footer class="footer"><div class="u-flow"><p>Jonathan Hudak © 2023</p></div></footer></body></html>
2 changes: 1 addition & 1 deletion _site/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 21 additions & 20 deletions src/index.tmpl.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
import type { PageData } from "lume/core.ts";

export default function ({ search }: PageData) {
const posts = search.pages("type=year published=true");
console.log(posts);
return `
<ul>
${posts
.sort((a, b) => +b.data.title - +a.data.title)
.map(
(post) => `<h2>
${
post.data.link
? `<a href="${post.data.url}">${post.data.title}</a>`
: post.data.title
}
</h2>
${post.data.summary && `<p>${post.data.summary}</p>`}
`
)
.join("")}
</ul>
`;
return ``;
// const posts = search.pages("type=year published=true");
// console.log(posts);
// return `
// <ul>
// ${posts
// .sort((a, b) => +b.data.title - +a.data.title)
// .map(
// (post) => `<h2>
// ${
// post.data.link
// ? `<a href="${post.data.url}">${post.data.title}</a>`
// : post.data.title
// }
// </h2>
// ${post.data.summary && `<p>${post.data.summary}</p>`}
// `
// )
// .join("")}
// </ul>
// `;
}
7 changes: 6 additions & 1 deletion src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ p {
line-height: 1.3;
}

footer p {
font-size: var(--step--0);
line-height: 1;
}

.u-flow > * + * {
margin-top: var(--space-s);
}
Expand Down Expand Up @@ -168,7 +173,7 @@ p {
}

footer {
padding-top: var(--space-2xl)
padding-top: var(--space-2xl);
}


Expand Down

0 comments on commit 21d6424

Please sign in to comment.