}
@@ -67,7 +62,7 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
+
Last updated on
)
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 46975d8..776a571 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,7 +1,7 @@
---
-import BaseHead from '../components/BaseHead.astro';
-import Header from '../components/Header.astro';
-import Footer from '../components/Footer.astro';
+import BaseHead from '@components/BaseHead.astro';
+import Header from '@components/Header.astro';
+import Footer from '@components/Footer.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
---
@@ -10,41 +10,8 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
-
+
-
- 🧑🚀 Hello, Astronaut!
-
- Welcome to the official Astro blog starter template. This
- template serves as a lightweight, minimally-styled starting point for anyone looking to build
- a personal website, blog, or portfolio with Astro.
-
-
- This template comes with a few integrations already configured in your
- astro.config.mjs file. You can customize your setup with
- Astro Integrations to add tools like Tailwind,
- React, or Vue to your project.
-
- Here are a few ideas on how to get started with the template:
-
- - Edit this page in
src/pages/index.astro
- - Edit the site header items in
src/components/Header.astro
- - Add your name to the footer in
src/components/Footer.astro
- - Check out the included blog posts in
src/pages/blog/
- - Customize the blog post page layout in
src/layouts/BlogPost.astro
-
-
- Have fun! If you get stuck, remember to read the docs
- or join us on Discord to ask questions.
-
-
- Looking for a blog template with a bit more personality? Check out astro-blog-template
- by Maxi Ferreira.
-
-
diff --git a/src/pages/version.json.js b/src/pages/version.json.js
new file mode 100644
index 0000000..2f701ee
--- /dev/null
+++ b/src/pages/version.json.js
@@ -0,0 +1,18 @@
+import childProcess from "child_process";
+
+// obtain Git commit hash
+const hash = childProcess
+ .execSync("git rev-parse --short HEAD")
+ .toString()
+ .trim();
+
+// obtain release version
+import { version } from "@/../package.json";
+
+export async function GET({ params, request }) {
+ const versionMetadata = {
+ hash,
+ version,
+ };
+ return new Response(JSON.stringify(versionMetadata));
+}
\ No newline at end of file
diff --git a/src/styles/global.css b/src/styles/global.css
index fe9ecf0..0b88e30 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -34,11 +34,11 @@ body {
margin: 0;
padding: 0;
text-align: left;
- background: linear-gradient(var(--gray-gradient)) no-repeat;
- background-size: 100% 600px;
+ /* background: linear-gradient(var(--gray-gradient)) no-repeat; */
+ /* background-size: 100% 600px; */
word-wrap: break-word;
overflow-wrap: break-word;
- color: rgb(var(--gray-dark));
+ /* color: rgb(var(--gray-dark)); */
font-size: 20px;
line-height: 1.7;
}
diff --git a/tailwind.config.mjs b/tailwind.config.mjs
new file mode 100644
index 0000000..9ec366a
--- /dev/null
+++ b/tailwind.config.mjs
@@ -0,0 +1,9 @@
+/** @type {import('tailwindcss').Config} */
+export default {
+ content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
+ darkMode: "class",
+ theme: {
+ extend: {},
+ },
+ plugins: [],
+}
diff --git a/tsconfig.json b/tsconfig.json
index 7a36ca0..2630062 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,23 @@
{
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
- "strictNullChecks": true
+ "strictNullChecks": true,
+ "baseUrl": "/home/xevion/projects/utsa-handbook",
+ "paths": {
+ "@components/*": [
+ "./src/components/*"
+ ],
+ "@layouts/*": [
+ "./src/layouts/*"
+ ],
+ "@pages/*": [
+ "./src/pages/*"
+ ],
+ "@/*": [
+ "./src/*"
+ ]
+ },
+ "jsx": "react-jsx",
+ "jsxImportSource": "react"
}
}
\ No newline at end of file