Skip to content

Commit

Permalink
feat(colophon): improve last commit display
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Feb 14, 2025
1 parent e39eb43 commit dda03a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
5 changes: 5 additions & 0 deletions _sass/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ code {
background-color: var(--color-emphasis);
}

code.block {
display: block;
margin: 0.5em -0.5em 0;
}

div.highlighter-rouge {
width: 100%;
max-width: var(--max-width);
Expand Down
13 changes: 5 additions & 8 deletions colophon.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,11 @@ <h3>Accessibility</h3>
<h3>Build information</h3>
{%- assign commit = site.data.git -%}
<p>
Last updated on {{ commit.date | readableDate }}<br />
<code
><a
href="https://github.com/goshatch/gosha.net/commit/{{ commit.hash }}"
>{{ commit.hash }}</a
></code
>
&rarr; {{ commit.subject }}
Last updated on <time datetime="{{ commit.date | date: "%Y-%m-%d" }}">{{ commit.date | date: "%e %B, %Y" }}</time>:
<code class="block">
<a href="https://github.com/goshatch/gosha.net/commit/{{ commit.hash }}">{{ commit.hash }}</a>
&rarr; {{ commit.subject }}
</code>
</p>
<p>
Made with <i class="twa twa-red-heart"></i> in London
Expand Down

0 comments on commit dda03a7

Please sign in to comment.