Make link to commit open in new tab
This commit is contained in:
parent
c78d23920a
commit
5862d78613
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { Icon } from "astro-icon/components";
|
|||
import { execSync } from "node:child_process";
|
||||
|
||||
const commitURL = import.meta.env.PUBLIC_COMMIT === "" ? "" : `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -1 --pretty="format:%H"`)}`;
|
||||
const COMMIT = import.meta.env.PUBLIC_COMMIT === "" ? "Docker Build!" : `<a href=${commitURL}>${execSync(`git log -1 --pretty="format:%h"`)}</a>`;
|
||||
const COMMIT = import.meta.env.PUBLIC_COMMIT === "" ? "Docker Build!" : `<a href=${commitURL} target="_blank">${execSync(`git log -1 --pretty="format:%h"`)}</a>`;
|
||||
---
|
||||
|
||||
<hr class="h-1" style="" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue