Skip to content

Commit

Permalink
feat(blog): render preview as first paragraph of post
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Sep 27, 2023
1 parent 1c0d0d9 commit 244d166
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion site/src/mdsvex/BlogLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
export let title;
export let date;
export let author;
export let preview;
</script>

<main
class="blog-post-container sm:text-xl p-4 sm:mt-4 justify-center max-w-2xl justify-center self-center"
>
<h1 class="text-3xl sm:text-5xl font-bold mb-0">{title}</h1>
<div class="font-mono mb-2 sm:text-lg"
<div class="font-mono mb-2 mt-1 sm:text-lg"
>{date} - <a class="text-accent" href={`https://x.com/${author}`}>{author}</a></div
>
<p>{preview}</p>
<slot />
</main>
2 changes: 1 addition & 1 deletion site/src/routes/blog/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<section class="p-4">
<h1 class="text-3xl sm:text-5xl font-bold mb-0">{metadata.title}</h1>
<div class="font-mono mb-2 mt-1 sm:text-lg">{metadata.date} - <a class="text-accent" href={`https://x.com/${metadata.author}`}>{metadata.author}</a></div>
<p class="text-xl">{metadata.preview}</p>
<p class="sm:text-xl">{metadata.preview}</p>
<a class="block mt-2 font-mono text-lg" href="/blog/the-journey-so-far">READ FULL POST -&gt;</a>
</section>
{/each}
Expand Down
4 changes: 1 addition & 3 deletions site/src/routes/blog/the-journey-so-far/+page.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
title: The Journey So Far
date: "2023-09-26"
date: "2023-09-27"
author: "@union_build"
preview: "Today, we are happy to announce the work we have done so far on Union, the trustless infrastructure layer. Over the last six months, unionlabs was founded with nothing but an idea, a diverse skillset, and a mission to ship zkp powered infra everywhere."
---

Today, we are happy to announce the work we have done so far on Union, the trustless infrastructure layer. Over the last six months, unionlabs was founded with nothing but an idea, a diverse skillset, and a mission to ship zkp powered infra everywhere.

We spent months building in stealthmode, heads-down, as we validated our technical assumptions. The product of that is the Union testnet, CometBLS, Voyager, and Galois. These components allowed us to achieve **IBC to Ethereum, the endgame**.`

Union is designed around a few key principles: permissonless interopability, censorship resistance, and decentralized infrastrucutre. Anyone should be allowed to transact, with any counterparty, on any chain, and this system may not rely on massive, closed source infrastructure.
Expand Down

0 comments on commit 244d166

Please sign in to comment.