added commit hash to footer
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { version } from '$app/environment';
|
||||
|
||||
var ratCounter = 0;
|
||||
|
||||
let playSound = function() {
|
||||
@@ -18,6 +20,7 @@
|
||||
<div class="content-container">
|
||||
<div class="content-box center-box">
|
||||
<p>〔 2023–2026 〕denizk0461</p>
|
||||
<p>Built from commit <a class="commit" href="https://codeberg.org/denizk0461/pages-svelte/src/commit/{version}">{version.substring(0, 6)}</a></p>
|
||||
</div>
|
||||
<div class="content-box">
|
||||
<h6>Content</h6>
|
||||
@@ -103,6 +106,10 @@
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
.commit {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
.content-container {
|
||||
flex-direction: column;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import adapter from '@sveltejs/adapter-node';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
import { mdsvex } from 'mdsvex';
|
||||
import * as child_process from 'node:child_process';
|
||||
|
||||
const missingPaths = [
|
||||
// "/games/swordsnstuff",
|
||||
@@ -24,6 +25,9 @@ const config = {
|
||||
handleMissingId: 'warn',
|
||||
handleUnseenRoutes: 'warn',
|
||||
},
|
||||
version: {
|
||||
name: child_process.execSync('git rev-parse HEAD').toString().trim()
|
||||
},
|
||||
},
|
||||
extensions: ['.svelte', '.md'],
|
||||
preprocess: [
|
||||
|
||||
Reference in New Issue
Block a user