Skip to content

Commit

Permalink
Implement template updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joriswitstok committed Sep 21, 2024
1 parent a5137a8 commit 6046c7e
Show file tree
Hide file tree
Showing 11 changed files with 116 additions and 437 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/template-sync.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workflow for automatically syncing updates to the AstroWind template as pull requests (https://github.com/AndreasAugustin/actions-template-sync?tab=readme-ov-file)
# Workflow for automatically syncing updates to the AstroWind template as pull requests (https://github.com/AndreasAugustin/actions-template-sync)
name: Sync template repository via pull request

on:
Expand Down
1 change: 1 addition & 0 deletions .templatesyncignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ src/content/post/*
src/layouts/*
src/pages/*
src/config.yaml
src/navigation.ts
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Personal website repository

## Setup

See the repositories of the [website template](https://github.com/onwidget/astrowind/), the [cookie consent implementation](https://github.com/jop-software/astro-cookieconsent), and the [template sync action](https://github.com/AndreasAugustin/actions-template-sync) for more details.

```console
# Install dependencies
npm install

# Install cookieconsent
npx astro add @jop-software/astro-cookieconsent

# Start local dev server
npm run dev
99 changes: 0 additions & 99 deletions astro.config.mjs

This file was deleted.

81 changes: 36 additions & 45 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,51 +24,42 @@ const whenExternalScripts = (items: (() => AstroIntegration) | (() => AstroInteg
export default defineConfig({
output: 'static',

integrations: [
tailwind({
applyBaseStyles: false,
}),
sitemap(),
mdx(),
icon({
include: {
tabler: ['*'],
'flat-color-icons': [
'template',
'gallery',
'approval',
'document',
'advertising',
'currency-exchange',
'voice-presentation',
'business-contact',
'database',
],
},
}),

...whenExternalScripts(() =>
partytown({
config: { forward: ['dataLayer.push'] },
})
),

compress({
CSS: true,
HTML: {
'html-minifier-terser': {
removeAttributeQuotes: false,
},
integrations: [tailwind({
applyBaseStyles: false,
}), sitemap(), mdx(), icon({
include: {
tabler: ['*'],
'flat-color-icons': [
'template',
'gallery',
'approval',
'document',
'advertising',
'currency-exchange',
'voice-presentation',
'business-contact',
'database',
],
},
}), ...whenExternalScripts(() =>
partytown({
config: { forward: ['dataLayer.push'] },
})
), compress({
CSS: true,
HTML: {
'html-minifier-terser': {
removeAttributeQuotes: false,
},
Image: false,
JavaScript: true,
SVG: false,
Logger: 1,
}),

astrowind({
config: './src/config.yaml',
}),
},
Image: false,
JavaScript: true,
SVG: false,
Logger: 1,
}),
astrowind({
config: './src/config.yaml',
}),
],

image: {
Expand All @@ -87,4 +78,4 @@ export default defineConfig({
},
},
},
});
});
17 changes: 16 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
"@astrolib/analytics": "^0.5.0",
"@astrolib/seo": "^1.0.0-beta.6",
"@fontsource-variable/inter": "^5.1.0",
"@jop-software/astro-cookieconsent": "^3.0.0",
"astro": "^4.15.5",
"astro-embed": "^0.7.2",
"astro-icon": "^1.1.1",
"limax": "4.1.0",
"lodash.merge": "^4.6.2",
"unpic": "^3.18.0"
"unpic": "^3.18.0",
"vanilla-cookieconsent": "^3.0.1"
},
"devDependencies": {
"@astrojs/check": "^0.9.3",
Expand Down
89 changes: 0 additions & 89 deletions src/navigation.js

This file was deleted.

Loading

0 comments on commit 6046c7e

Please sign in to comment.