Add auto linking to current git commit
This commit is contained in:
parent
ed2eafd664
commit
599a07e6c0
3 changed files with 15 additions and 5 deletions
|
@ -2,17 +2,20 @@
|
|||
const buttonFormat = "gif";
|
||||
|
||||
import { Icon } from "astro-icon/components";
|
||||
import { execSync } from "node:child_process";
|
||||
|
||||
const commitURL = `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -1 --pretty="format:%H"`)}`;
|
||||
---
|
||||
|
||||
<hr class="h-1" style="" />
|
||||
<footer class="flexcol">
|
||||
<div class="flexrow">
|
||||
<p>
|
||||
<a href="https://github.com/BuyMyMojo/aria.coffee" target="_blank"
|
||||
><Icon name="mdi:source-branch" class={"svg-inline"}/> Source Code</a
|
||||
> | <a href="https://aria.coffee/rss.xml" target="_blank"
|
||||
><Icon name="mdi:rss" class={"svg-inline"}/> RSS Feed</a
|
||||
>
|
||||
| <a href="https://github.com/BuyMyMojo/aria.coffee" target="_blank"
|
||||
> <Icon name="mdi:source-branch" class={"svg-inline"}/>Source Code</a
|
||||
> - Commit:<a href={commitURL}>{execSync(`git log -1 --pretty="format:%h"`)}</a> | <a href="https://aria.coffee/rss.xml" target="_blank"
|
||||
> <Icon name="mdi:rss" class={"svg-inline"}/>RSS Feed</a
|
||||
> |
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue