Skip to content

Commit

Permalink
make the git cmd stay on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDTR committed Nov 11, 2024
1 parent a63474f commit 247135e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
the commit link in the footer. If you're wondering, <a
href="https://github.com/AndrewDTR/website/blob/e848da9a97124a891b659fce1a2a0fcffb2cf736/src/components/Footer.astro#L2-L7"
target="_blank">that's done server-side at build time</a
> by parsing the output of <code>git rev-parse --short HEAD</code> (which is
> by parsing the output of <code class="git-cmd">git rev-parse --short HEAD</code> (which is
ran by Node.js' <code>child_process</code>). That feature was inspired by Xe
Iaso, whose work I've seen on Hacker News.
</p>
Expand Down Expand Up @@ -172,4 +172,8 @@ import BaseLayout from "../layouts/BaseLayout.astro";
width: 100%;
}
}

.git-cmd {
white-space: nowrap;
}
</style>

0 comments on commit 247135e

Please sign in to comment.