-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d30a6a3
commit e78718d
Showing
70 changed files
with
1,153 additions
and
1,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
module.exports = { | ||
extends: ['plugin:astro/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
sourceType: 'module', | ||
ecmaVersion: 'latest' | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.astro'], | ||
parser: 'astro-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
extraFileExtensions: ['.astro'] | ||
}, | ||
rules: { | ||
// override/add rules settings here, such as: | ||
'astro/no-set-html-directive': 'error' | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
test/fixtures/**/*.md | ||
test/fixtures/**/*.astro | ||
**/dist | ||
pnpm-lock.yaml | ||
.github | ||
.changeset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,40 @@ | ||
{ | ||
"name": "blog-template", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro build", | ||
"preview": "astro preview", | ||
"postbuild": "pagefind --source dist" | ||
}, | ||
"dependencies": { | ||
"@astrojs/rss": "2.4.3", | ||
"astro": "2.10.1" | ||
}, | ||
"devDependencies": { | ||
"@astrojs/mdx": "0.19.7", | ||
"@astrojs/sitemap": "2.0.1", | ||
"@astrojs/tailwind": "4.0.0", | ||
"@pagefind/default-ui": "^0.12.0", | ||
"@tailwindcss/typography": "0.5.9", | ||
"clsx": "2.0.0", | ||
"mdast-util-to-string": "^4.0.0", | ||
"motion": "^10.16.2", | ||
"pagefind": "^0.12.0", | ||
"reading-time": "^1.5.0", | ||
"slugify": "^1.6.6", | ||
"tailwind-merge": "1.14.0", | ||
"tailwindcss": "3.3.3", | ||
"typescript": "^5.1.6" | ||
} | ||
"name": "blog-template", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro build", | ||
"preview": "astro preview", | ||
"postbuild": "pagefind --source dist", | ||
"lint": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx,astro}\" && eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\"" | ||
}, | ||
"dependencies": { | ||
"@astrojs/rss": "2.4.3", | ||
"astro": "2.10.1" | ||
}, | ||
"devDependencies": { | ||
"@astrojs/mdx": "0.19.7", | ||
"@astrojs/sitemap": "2.0.1", | ||
"@astrojs/tailwind": "4.0.0", | ||
"@pagefind/default-ui": "^0.12.0", | ||
"@tailwindcss/typography": "0.5.9", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"clsx": "2.0.0", | ||
"eslint": "^8.46.0", | ||
"eslint-plugin-astro": "^0.28.0", | ||
"eslint-plugin-jsx-a11y": "^6.7.1", | ||
"mdast-util-to-string": "^4.0.0", | ||
"motion": "^10.16.2", | ||
"pagefind": "^0.12.0", | ||
"prettier": "^3.0.1", | ||
"prettier-config-standard": "^5.0.0", | ||
"prettier-plugin-astro": "^0.11.0", | ||
"reading-time": "^1.5.0", | ||
"slugify": "^1.6.6", | ||
"tailwind-merge": "1.14.0", | ||
"tailwindcss": "3.3.3", | ||
"typescript": "^5.1.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** @type {import("prettier").Config} */ | ||
module.exports = { | ||
// i am just using the standard config, change if you need something else | ||
...require('prettier-config-standard'), | ||
pluginSearchDirs: [__dirname], | ||
printWidth: 100, | ||
semi: false, | ||
singleQuote: true, | ||
jsxSingleQuote: true, | ||
tabWidth: 2, | ||
useTabs: true, | ||
|
||
plugins: [require.resolve('prettier-plugin-astro')], | ||
overrides: [ | ||
{ | ||
files: '*.astro', | ||
options: { | ||
parser: 'astro' | ||
} | ||
} | ||
] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- | ||
export interface Props { | ||
date: Date | ||
date: Date | ||
} | ||
const { date } = Astro.props | ||
--- | ||
|
||
<time class='text-sm font-bold text-opacity-60' datetime={date.toISOString()}> | ||
{ | ||
date.toLocaleDateString('en-us', { | ||
year: 'numeric', | ||
month: 'short', | ||
day: 'numeric', | ||
}) | ||
} | ||
{ | ||
date.toLocaleDateString('en-us', { | ||
year: 'numeric', | ||
month: 'short', | ||
day: 'numeric' | ||
}) | ||
} | ||
</time> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.