Skip to content

Commit

Permalink
Make excerpt optional, update headline.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed May 29, 2023
1 parent 35ff7b9 commit 2992b63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/(blog)/api/posts/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function POST(request) {
);
}

if (res.html) {
if (res.html && !res.excerpt) {
res.excerpt = getExcerpt({ description: res.html || res.content });
}

Expand Down
4 changes: 2 additions & 2 deletions app/(home)/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default async function Home() {
<h2 className="p-name">Hi, I'm Thomas.</h2>

<p className="p-note">
I build startups and tools to help businesses and educators.
I build companies and tools to support small businesses and educators.
</p>
<p>
Alongside my work at{" "}
Expand All @@ -42,7 +42,7 @@ export default async function Home() {
NearSt
</a>
, I consult founders and engineers on everything from setting up
their first business to designing modern technology platforms.
their first business to designing technology platforms.
</p>
</div>
</main>
Expand Down

0 comments on commit 2992b63

Please sign in to comment.