changed to source alias

This commit is contained in:
Sebastian Wendel 2023-04-07 22:32:14 +02:00
parent 7bb61e261a
commit be4b60a9a5
No known key found for this signature in database
GPG key ID: 14ED8B1EC3371ECE
19 changed files with 1906 additions and 184 deletions

View file

@ -19,7 +19,7 @@ All commands are run from the root of the project, from a terminal:
### Nix
| Command | Action |
| :-------------------------- | :------------------------------------------ |
| `nix run .#serve` | Starts local dev server at `localhost:3001` |
| `nix build .#nixos_hamburg` | Build your Nix Package |
| Command | Action |
| :---------------- | :------------------------------------------ |
| `nix run .#serve` | Starts local dev server at `localhost:3001` |
| `nix build .#` | Build your Nix Package |

View file

@ -1,17 +1,40 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import path from 'path';
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import image from "@astrojs/image";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import robotsTxt from 'astro-robots-txt';
import sitemap from '@astrojs/sitemap';
import compress from 'astro-compress';
const mkPath = (name) => path.resolve(`./src/${name}`);
const external = ['svgo'];
const alias = {
'@assets': mkPath('assets'),
'@components': mkPath('components'),
'@content': mkPath('content'),
'@layouts': mkPath('layouts'),
'@pages': mkPath('pages'),
'@utils': mkPath('utils'),
};
// https://astro.build/config
export default defineConfig({
site: "https://astroship.web3templates.com",
site: "https://nixos.hamburg",
integrations: [
tailwind(),
image({
serviceEntryPoint: "@astrojs/image/sharp",
}),
mdx(),
tailwind(),
image(),
sitemap(),
robotsTxt(),
// compress(),
],
server: { port: 3001 },
vite: {
ssr: { external },
resolve: { alias },
},
experimental: {
contentCollections: true,
},
});

View file

@ -1,5 +1,5 @@
{
description = "nixos_hamburg - Website";
description = "NixOS Hamburg User Group Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable";
@ -37,7 +37,7 @@
${pkgs.miniserve}/bin/miniserve -p 3001 --index index.html ${self'.packages.default}
''}";
packages.default = self'.packages.nixos_hamburg;
packages.default = self'.packages.nixos-hamburg-website;
devShells.default = pkgs.mkShell {
packages = builtins.attrValues {

View file

@ -15,14 +15,14 @@ in {
../yarn.lock
];
};
projects.nixos_hamburg = {
name = "nixos_hamburg";
projects.nixos-hamburg-website = {
name = "nixos-hamburg-website";
subsystem = "nodejs";
translator = "yarn-lock";
subsystemInfo.nodejs = 18;
};
packageOverrides.nixos_hamburg.copyNixos_hamburg = {
packageOverrides.nixos-hamburg-website.copyNixos-hamburg-website = {
installPhase = ''
mkdir -p $out
cp -rv ./dist/* $out
@ -30,6 +30,6 @@ in {
};
};
packages.nixos_hamburg = config.dream2nix.outputs.self.packages.nixos_hamburg;
packages.nixos-hamburg-website = config.dream2nix.outputs.self.packages.nixos-hamburg-website;
};
}

View file

@ -4,28 +4,45 @@
"version": "0.0.1",
"private": true,
"scripts": {
"astro": "astro",
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"sync": "astro sync",
"astro": "astro"
"start": "astro dev",
"sync": "astro sync"
},
"dependencies": {
"@astrojs/image": "^0.14.1",
"@astrojs/mdx": "^0.16.0",
"@astrojs/sitemap": "^1.0.1",
"@astrojs/tailwind": "^3.0.1",
"@astrojs/image": "^0.16.5",
"@astrojs/mdx": "^0.18.2",
"@astrojs/sitemap": "^1.2.2",
"@astrojs/tailwind": "^3.1.1",
"@fontsource/inter": "^4.5.15",
"astro": "^2.0.11",
"@tailwindcss/typography": "^0.5.9",
"astro": "^2.2.0",
"astro-compress": "^1.1.35",
"astro-feather-icons": "^1.0.2",
"astro-forms": "^1.0.11",
"astro-icon": "^0.8.0",
"astro-navbar": "^1.1.5",
"astro-seo": "^0.7.0",
"tailwindcss": "^3.2.4"
"astro-robots-txt": "^0.4.1",
"astro-seo": "^0.7.2",
"tailwindcss": "^3.3.1"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"sharp": "^0.31.3"
"@types/lodash": "^4.14.192",
"@types/luxon": "^3.3.0",
"@types/marked": "^4.0.8",
"@types/seedrandom": "^3.0.5",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.37.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-astro": "^0.26.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^2.8.7",
"prettier-plugin-astro": "^0.8.0",
"sanitize-html": "^2.10.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View file

@ -1,4 +0,0 @@
User-agent: *
Allow: /
Sitemap: http://astroship.web3templates.com/sitemap-index.xml

View file

@ -1,8 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"assignees": ["Nobbz"],
"rangeStrategy": "update-lockfile",
"schedule": ["* 0-5 * * *"],
"nix": { "enabled": true }
}

View file

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="856.22845mm"
height="171.82593mm"
viewBox="0 0 856.22847 171.82593"
version="1.1"
id="svg5"
xml:space="preserve"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
sodipodi:docname="nixos.hamburg.logo.svg"
inkscape:export-filename="nixos.hamburg.logo.png"
inkscape:export-xdpi="96.000008"
inkscape:export-ydpi="96.000008"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
showguides="false"
inkscape:zoom="0.14110391"
inkscape:cx="-988.63311"
inkscape:cy="276.39205"
inkscape:window-width="1920"
inkscape:window-height="1080"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g2343" /><defs
id="defs2"><rect
x="-679.21991"
y="100.02922"
width="2760.6389"
height="668.38367"
id="rect454" /></defs><g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(4.2857519,-66.260116)"><g
id="g378"
transform="translate(285.23794,22.275917)" /><g
id="g2105"
transform="translate(-397.71438,-16.139739)"><g
id="g2343"
transform="translate(288.67684,-66.569559)"><g
id="g1890"
transform="matrix(1.3107559,0,0,1.3107559,5.90292,5.51902)"><path
style="fill:#5076c1;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0"
d="m 134.86381,193.9476 c 0,-0.0857 0.23503,-0.85001 0.52228,-1.69842 0.69122,-2.0415 1.39376,-4.68055 1.89147,-7.10522 0.32515,-1.584 0.39028,-1.98987 0.59623,-3.71602 0.22657,-1.89888 0.35104,-2.82908 0.38279,-2.86083 0.0275,-0.0275 25.54965,0.0675 25.59462,0.0953 0.0235,0.0145 0.0555,0.26309 0.0709,0.55234 0.0155,0.28925 0.16334,1.4924 0.32854,2.67366 0.40635,2.90559 0.82023,4.92136 1.54771,7.53795 0.2864,1.03013 0.70663,2.41328 0.93385,3.07367 0.27679,0.8045 0.41312,1.26716 0.41312,1.40206 v 0.20135 h -6.08699 -6.08699 v -3.5386 -3.53861 l -0.2328,-0.78693 -0.2328,-0.78692 -0.69051,-0.6849 -0.69051,-0.6849 -0.70677,-0.23304 -0.70677,-0.23304 h -0.68182 c -0.62663,0 -0.72549,0.0119 -1.22129,0.14727 l -0.53948,0.14728 -0.61908,0.47966 -0.61908,0.47966 -0.4469,0.79792 -0.4469,0.79792 -0.0734,3.759 c -0.0404,2.06745 -0.0811,3.76664 -0.0904,3.77599 -0.0127,0.0127 -8.74161,0.0876 -11.73288,0.1006 l -0.37616,0.002 z"
id="path1740" /><path
style="fill:#5076c1;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0"
d="m 141.01626,163.28512 c -0.22608,-0.50135 -0.25404,-0.51826 -0.85725,-0.51826 h -0.62356 l 0.27509,-0.56621 0.27509,-0.56621 -0.27677,-0.38868 c -0.15222,-0.21377 -0.27676,-0.42325 -0.27676,-0.4655 0,-0.0422 0.26311,-0.0768 0.58468,-0.0768 0.53147,0 0.60892,-0.0411 0.85089,-0.45118 0.2992,-0.50711 0.39506,-0.49769 0.6267,0.0615 0.14483,0.34967 0.21935,0.38966 0.72609,0.38966 0.62586,0 0.67497,0.0959 0.33974,0.66342 -0.21801,0.36906 -0.2159,0.39655 0.0683,0.8904 l 0.29328,0.50959 h -0.57688 c -0.53622,0 -0.59865,0.0365 -0.88592,0.51826 l -0.30905,0.51825 z"
id="path1811" /><path
style="fill:#5076c1;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0"
d="m 160.46267,163.21824 c -0.19688,-0.41286 -0.26273,-0.45138 -0.77169,-0.45138 -0.30605,0 -0.55645,-0.0319 -0.55645,-0.0709 0,-0.039 0.0933,-0.25142 0.20746,-0.47207 0.19064,-0.36866 0.19064,-0.43646 0,-0.83623 -0.29822,-0.62537 -0.26904,-0.68409 0.34063,-0.68549 0.49663,-0.001 0.57441,-0.0466 0.82836,-0.48362 l 0.28026,-0.48234 0.20508,0.48361 c 0.1981,0.46714 0.22707,0.48361 0.85079,0.48361 h 0.64571 l -0.26317,0.51585 -0.26317,0.51586 0.26317,0.51585 0.26317,0.51585 h -0.57244 c -0.51511,0 -0.60038,0.0452 -0.8514,0.45138 -0.15343,0.24825 -0.30419,0.45137 -0.33502,0.45137 -0.0308,0 -0.15291,-0.20312 -0.27129,-0.45137 z"
id="path1813" /><path
style="fill:#7cb5e0;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0"
d="m 136.56594,175.9856 c 0,-0.71236 0.0716,-0.77377 0.90275,-0.77377 h 0.90274 v -4.77165 -4.77164 h 2.83719 2.8372 v 4.77164 4.77165 h 1.93445 1.93445 v -5.02957 -5.02957 h -0.77378 c -0.68781,0 -0.77378,-0.086 -0.77378,-0.77378 0,-0.64665 0.10258,-0.77379 0.62432,-0.77379 0.48177,0 0.66252,-0.17391 0.79161,-0.76166 0.21534,-0.98042 1.00916,-1.98255 1.95989,-2.47419 0.61076,-0.31584 0.751,-0.55571 0.751,-1.28448 0,-0.78392 -0.0807,-0.89613 -0.64481,-0.89613 -0.47287,0 -0.64482,-0.13756 -0.64482,-0.51585 0,-0.37829 0.17195,-0.51585 0.64482,-0.51585 0.51585,0 0.64481,-0.12897 0.64481,-0.64482 0,-0.47286 0.13756,-0.64481 0.51586,-0.64481 0.37829,0 0.51585,0.17195 0.51585,0.64481 0,0.51585 0.12896,0.64482 0.64482,0.64482 0.47286,0 0.64481,0.13756 0.64481,0.51585 0,0.37829 -0.17195,0.51585 -0.64481,0.51585 -0.5627,0 -0.64482,0.11287 -0.64482,0.88624 0,0.76028 0.14177,0.96592 0.99739,1.44681 0.94392,0.53051 1.8398,1.84783 1.8398,2.70528 0,0.23139 0.25023,0.37813 0.64482,0.37813 0.54451,0 0.64482,0.12037 0.64482,0.77379 0,0.6878 -0.086,0.77378 -0.77378,0.77378 h -0.77378 v 5.02957 5.02957 h 1.80548 1.80549 v -4.77165 -4.77164 h 2.96616 2.96615 v 4.77164 4.77165 h 1.03171 c 0.97439,0 1.03171,0.043 1.03171,0.77377 v 0.77379 H 151.1388 136.56594 Z"
id="path1815" /></g><g
id="g2071"
transform="matrix(1.2975874,0,0,1.2975874,-619.59787,118.20666)"><path
style="fill:#7cb5e0;stroke-width:0.264583"
d="m 664.15359,156.1272 c -5.09659,-8.6079 -9.13884,-15.83345 -14.1944,-24.67092 -6.78561,-0.0483 -13.57121,-0.0965 -20.35682,-0.1448 -2.87219,-4.93889 -5.74439,-9.87778 -8.61658,-14.81667 24.78625,-0.18247 49.57201,-0.0909 74.3583,0 -2.78419,4.93889 -5.56836,9.87778 -8.35253,14.81667 -6.56739,0.0463 -13.13477,0.0925 -19.70216,0.1388 v 0.11371 0.11371 c 3.09516,5.39745 6.19032,10.79489 9.28548,16.19234 l 0.14624,0.3811 0.14624,0.38109 c -1.37255,2.38443 -2.74511,4.76885 -4.11766,7.15327 -3.03592,-0.0327 -5.62944,0.14523 -8.59611,0.3417 z m -83.11835,-26.817 -0.13229,0.001 -4.21129,-7.18425 -4.21128,-7.18424 v -0.28844 -0.28844 c 3.20437,-5.50724 6.40879,-11.01445 9.6132,-16.521658 v -0.26705 c -6.55127,-0.11965 -13.64745,-0.284 -19.73114,-0.32819 -1.34456,-2.43178 -3.03688,-5.04044 -4.13441,-7.28239 1.4468,-2.49022 2.8936,-4.98045 4.34039,-7.47067 9.4629,-0.007 18.9258,-0.0133 28.3887,-0.02 l 5.02708,-8.71914 5.02708,-8.71914 8.55486,-0.003 8.55486,-0.003 -0.0882,0.25715 -0.0882,0.25714 -36.77708,63.760798 -0.13229,0.001 z m 83.2862,-41.112008 -0.0977,0.0977 C 651.9132,66.968582 639.60266,45.641258 627.29212,24.313943 l 0.0226,-0.211492 0.0226,-0.211494 h 16.97804 c 3.2668,5.691244 6.53358,11.382492 9.80037,17.073741 3.30867,-5.691247 6.61733,-11.382494 9.926,-17.073741 h 8.5952 l 4.17024,7.143749 0.004,0.308235 0.004,0.308234 c -4.68722,8.059693 -9.37443,16.119387 -14.06164,24.179077 3.3673,5.86746 6.73461,11.73493 10.10191,17.60239 -2.81184,4.88926 -5.62367,9.77853 -8.4355,14.66779 l -0.0977,0.0977 z"
id="path1004"
sodipodi:nodetypes="cccccccccccccccccccccccccccccccccccccccccccccccccccc" /><path
style="fill:#5076c1;fill-opacity:1;stroke-width:0.264583"
d="m 592.18252,148.52221 c 4.90637,-8.71773 9.14275,-15.83119 14.26845,-24.62817 -3.35098,-5.90066 -6.70204,-11.80126 -10.05301,-17.70192 2.84111,-4.95684 5.68221,-9.913685 8.52332,-14.87052 12.55115,21.37429 24.86473,42.88518 37.17915,64.39618 -5.6693,0.0583 -11.33859,0.11655 -17.00788,0.17483 -3.32379,-5.66437 -6.64749,-11.32879 -9.97128,-16.99317 l -0.0985,0.0569 -0.0985,0.0568 c -3.12675,5.37921 -6.25349,10.75842 -9.38024,16.13763 l -0.25692,0.3172 -0.25692,0.31719 c -2.75125,0.004 -5.5025,0.007 -8.25374,0.0106 -1.48964,-2.64553 -2.94049,-4.80262 -4.59398,-7.2736 z m -18.33497,-85.391106 -0.067,-0.114066 4.1161,-7.23921 4.11609,-7.239195 0.2498,-0.14422 0.24979,-0.14422 c 6.3716,0.02145 12.74319,0.04295 19.11478,0.06445 l 0.23127,-0.133525 c -3.17201,-5.733391 -6.57777,-11.961038 -9.58134,-17.251764 1.4337,-2.380313 2.8467,-5.150235 4.23952,-7.221699 2.87999,0.0079 5.75999,0.01571 8.63998,0.02356 4.73751,8.191612 9.47442,16.383574 14.21167,24.575336 l 10.06454,-0.006 10.06454,-0.006 4.28003,7.407226 4.28003,7.407226 -0.2668,0.05219 -0.26679,0.05219 -73.60701,0.03051 -0.067,-0.114067 z m 77.24714,51.571966 -0.13346,-0.0358 c 12.31472,-21.324898 24.62946,-42.649801 36.94418,-63.974699 l 0.19446,-0.08617 0.19446,-0.08617 8.48902,14.703413 c -3.29536,5.674754 -6.59074,11.349493 -9.88611,17.02424 6.5831,0.01977 13.1662,0.03953 19.7493,0.0593 l 4.2976,7.443662 -4.10155,7.183408 -0.26494,0.157581 -0.26494,0.157582 c -9.32351,-0.0294 -18.64701,-0.0588 -27.97052,-0.0882 -3.39771,5.849903 -6.79544,11.699813 -10.19316,17.549713 -5.64014,0.01 -11.28029,0.019 -16.92043,0.0285 l -0.13346,-0.0358 z"
id="path2067"
sodipodi:nodetypes="cccccccccccccccccccccccccccccccccccccccccccccccccccc" /></g><text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,494.09427,121.67874)"
id="text452"
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:306.667px;line-height:1.05;font-family:Lexend;-inkscape-font-specification:'Lexend Medium';font-variant-ligatures:none;letter-spacing:0px;white-space:pre;shape-inside:url(#rect454);display:inline"><tspan
x="-679.2207"
y="353.02956"
id="tspan570">NixOS Hamburg
</tspan><tspan
x="-679.2207"
y="675.02989"
id="tspan572">User Group</tspan></text></g></g></g></svg>

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -5,13 +5,12 @@ import Link from "./ui/link.astro";
<div
class="bg-black p-8 md:px-20 md:py-20 mt-20 mx-auto max-w-5xl rounded-lg flex flex-col items-center text-center">
<h2 class="text-white text-4xl md:text-6xl tracking-tight">
Build faster websites.
Join our chat.
</h2>
<p class="text-slate-400 mt-4 text-lg md:text-xl">
Pull content from anywhere and serve it fast with Astro's next-gen island
architecture.
We use Matrix, because is decentralized, end-to-end encrypted and open source.
</p>
<div class="flex mt-5">
<Link href="#" style="inverted">Get Started</Link>
<Link href="https://matrix.to/#/#nixos.hamburg:curious.bio" style="inverted">Join</Link>
</div>
</div>

View file

@ -1,19 +1,14 @@
<footer class="my-20">
<p class="text-center text-sm text-slate-500">
Copyright © {new Date().getFullYear()} Astroship. All rights reserved.
Copyright © {new Date().getFullYear()} Nix/NixOS Hamburg User Group.
</p>
<!--
Can we ask you a favor 🙏
Please keep this backlink on your website if possible.
or Purchase a commercial license from https://web3templates.com
-->
<p class="text-center text-xs text-slate-500 mt-1">
Made by <a
href="https://web3templates.com"
Served by <a
href="https://srx.dev"
target="_blank"
rel="noopener"
class="hover:underline">
Web3Templates
srx.dev
</a>
</p>
</footer>

View file

@ -1,6 +1,6 @@
---
import { Picture } from "@astrojs/image/components";
import heroImage from "assets/hero.png";
import heroImage from "@assets/hero.png";
import Link from "@components/ui/link.astro";
import { Icon } from "astro-icon";
---
@ -21,33 +21,28 @@ import { Icon } from "astro-icon";
<div>
<h1
class="text-5xl lg:text-6xl xl:text-7xl font-bold lg:tracking-tight xl:tracking-tighter">
Marketing website done with Astro
Nix/NixOS Hamburg User Group
</h1>
<p class="text-lg mt-4 text-slate-600 max-w-xl">
Astroship is a starter template for startups, marketing websites & landing
pages.<wbr /> Built with Astro.build and TailwindCSS. You can quickly create
any website with this starter.
Are you feeling like youre stuck in a tech rut, using the same old Ansible and Kubernetes for your Linux infrastructure management? Boring!
Its time to shake things up and join us at Matrix for some Nix/NixOS excitement. We dont do things the boring old way - were all about the thrill of the declarative approach to system configuration.
</p>
<div class="mt-6 flex flex-col sm:flex-row gap-3">
<Link
href="#"
href="https://web3templates.com/templates/astroship-starter-website-template-for-astro"
href="https://nixos.org/download.html"
target="_blank"
class="flex gap-1 items-center justify-center"
rel="noopener">
<Icon class="text-white w-5 h-5" name="bx:bxs-cloud-download" />
Download for Free
Download
</Link>
<Link
size="lg"
style="outline"
rel="noopener"
href="https://github.com/surjithctly/astroship"
href="https://nixos.wiki/"
class="flex gap-1 items-center justify-center"
target="_blank">
<Icon class="text-black w-4 h-4" name="bx:bxl-github" />
GitHub Repo
Wiki
</Link>
</div>
</div>

View file

@ -6,26 +6,13 @@ import { Astronav, MenuItems, MenuIcon } from "astro-navbar";
const menuitems = [
{
title: "Features",
path: "#",
children: [
{ title: "Action", path: "#" },
{ title: "Another action", path: "#" },
{ title: "Dropdown Submenu", path: "#" },
],
},
{
title: "Pricing",
path: "/pricing",
title: "Blog",
path: "/blog",
},
{
title: "About",
path: "/about",
},
{
title: "Blog",
path: "/blog",
},
{
title: "Contact",
path: "/contact",
@ -72,17 +59,7 @@ const menuitems = [
))
}
</ul>
<div class="lg:hidden flex items-center mt-3 gap-4">
<Link href="#" style="muted" block size="md">Log in</Link>
<Link href="#" size="md" block>Sign up</Link>
</div>
</MenuItems>
</Astronav>
<div>
<div class="hidden lg:flex items-center gap-4">
<a href="#">Log in</a>
<Link href="#" size="md">Sign up</Link>
</div>
</div>
</header>
</Container>

View file

@ -1,7 +1,5 @@
// 1. Import utilities from `astro:content`
import { z, defineCollection } from 'astro:content';
// 2. Define your collection(s)
const blogCollection = defineCollection({
schema: z.object({
draft: z.boolean(),
@ -31,8 +29,6 @@ const teamCollection = defineCollection({
}),
});
// 3. Export a single `collections` object to register your collection(s)
// This key should match your collection directory name in "src/content"
export const collections = {
'blog': blogCollection,
'team': teamCollection,

View file

@ -18,8 +18,8 @@ const resolvedImageWithDomain = new URL(
const { title } = Astro.props;
const makeTitle = title
? title + " | " + "Astroship"
: "Astroship - Starter Template for Astro with Tailwind CSS";
? title + " | " + "nixos.hamburg"
: "Nix/NixOS Hamburg User Group";
---
<!DOCTYPE html>
@ -33,22 +33,22 @@ const makeTitle = title
<!-- <link rel="preload" as="image" href={src} alt="Hero" /> -->
<SEO
title={makeTitle}
description="Astroship is a starter website template for Astro built with TailwindCSS."
description="Nix/NixOS Hamburg User Group"
canonical={canonicalURL}
twitter={{
creator: "@surjithctly",
site: "@web3templates",
creator: "srx.dev",
site: "nixos.hamburg",
card: "summary_large_image",
}}
openGraph={{
basic: {
url: canonicalURL,
type: "website",
title: `Astroship - Starter Template for Astro`,
title: `Nix/NixOS Hamburg User Group`,
image: resolvedImageWithDomain,
},
image: {
alt: "Astroship Homepage Screenshot",
alt: "Nix/NixOS Hamburg User Group Homepage Screenshot",
},
}}
/>

View file

@ -1,4 +1,3 @@
/** */
export const getFormattedDate = (date) =>
date
? new Date(date).toLocaleDateString("en-us", {

View file

@ -1,27 +1,12 @@
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"strictNullChecks": true,
"baseUrl": "src",
"paths": {
"@lib/*": [
"lib/*"
],
"@utils/*": [
"utils/*"
],
"@components/*": [
"components/*"
],
"@layouts/*": [
"layouts/*"
],
"@assets/*": [
"assets/*"
],
"@pages/*": [
"pages/*"
],
}
"baseUrl": ".",
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"strictNullChecks": true
}
}

5
vite.config.js Normal file
View file

@ -0,0 +1,5 @@
import { defineConfig } from 'vite';
const cacheDir = process.env.VITE_CACHE ? process.env.VITE_CACHE : 'node_modules/.vite';
export default defineConfig({ cacheDir });

1765
yarn.lock

File diff suppressed because it is too large Load diff