Skip to content

Commit

Permalink
Show updatedAt for current track
Browse files Browse the repository at this point in the history
  • Loading branch information
brookback committed Mar 25, 2024
1 parent e90ddc3 commit 46fe169
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import lume from 'lume/mod.ts';
import postcss from 'lume/plugins/postcss.ts';
import esbuild from 'lume/plugins/esbuild.ts';
import nunjucks from 'lume/plugins/nunjucks.ts';
import date from 'lume/plugins/date.ts';
import temporalDate from './src/_lume-plugins/temporal-date.ts';
import { readingTime } from './src/_lume-plugins/reading-time.ts';
import { extractExcerpt } from './src/_lume-plugins/excerpts.ts';
Expand Down Expand Up @@ -36,6 +37,7 @@ site.use(typeset({ scope: '.prose' }))
}),
)
.use(temporalDate())
.use(date())
.use(sourceMaps())
// Helpers
.filter('substr', (str: string, len: number) => str.substring(0, len))
Expand Down
19 changes: 19 additions & 0 deletions deno.lock

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

13 changes: 13 additions & 0 deletions src/_includes/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,16 @@ u {
text-decoration-style: wavy;
text-decoration-color: var(--accent);
}

@media (hover: hover) {
time[title] {
text-decoration: underline;
text-decoration-style: dotted;
text-underline-offset: .4ex;
text-decoration-color: var(--color-faint);

&:hover {
text-decoration-color: var(--color-text-detail);
}
}
}
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ You can reach me via [email](mailto:{{ meta.email }}) or [Mastodon]({{ '' | mast

***

My fav track at the moment is ♫ <u class="b">{{ current_track.name }}</u> by {{ current_track.artist }}.
My fav track <time title="Updated at {{ current_track.updatedAt | date('yyyy-MM-dd')}}" datetime="{{ current_track.updatedAt }}">at the moment</time> is ♫ <u class="b">{{ current_track.name }}</u> by {{ current_track.artist }}.

0 comments on commit 46fe169

Please sign in to comment.