Skip to content

Release v2.0.0 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 112 commits into from
Feb 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
a304936
feat(ui): config TailwindCSS
ansidev Feb 23, 2023
945811d
feat(ui): config Tailwind Typography
ansidev Feb 23, 2023
3c476ac
Merge pull request #2 from ansidev/feature/config-tailwind
ansidev Feb 23, 2023
c6dbbbb
feat(component): add component SEOMeta
ansidev Feb 23, 2023
5008f4f
Merge pull request #3 from ansidev/feature/component-seo-meta
ansidev Feb 23, 2023
c6ee409
feat: update index page UI using TailwindCSS
ansidev Feb 23, 2023
667339c
Merge pull request #4 from ansidev/feature/default-tailwind-page
ansidev Feb 23, 2023
6a0ff7b
fix: favicon mime type
ansidev Feb 24, 2023
66dca5b
Merge pull request #5 from ansidev/patchfix/favicon-mime-type
ansidev Feb 24, 2023
5b93e23
feat(content): add LeetCode solutions
ansidev Feb 24, 2023
4a8b2ed
Merge pull request #7 from ansidev/content/add
ansidev Feb 24, 2023
39ec373
feat(content): add content config
ansidev Feb 24, 2023
0d2c90e
Merge pull request #6 from ansidev/feature/config-content
ansidev Feb 24, 2023
3f81bce
feat(component): add component Icon
ansidev Feb 24, 2023
3ba04a4
build(dep): add package lodash.get
ansidev Feb 24, 2023
1576b66
build(dep): add package @iconify-json/bi
ansidev Feb 24, 2023
5c6b235
Merge pull request #8 from ansidev/feature/component-icon
ansidev Feb 24, 2023
9138d22
build(dep): add package tailwindcss-themer
ansidev Feb 24, 2023
32641ff
feat(theme): add theme config
ansidev Feb 24, 2023
b68845a
Merge pull request #9 from ansidev/feature/config-multi-theme
ansidev Feb 24, 2023
8fc54f9
feat(config): add author's avatar
ansidev Feb 24, 2023
d8789c1
build(dep): add package sass
ansidev Feb 24, 2023
a12192e
feat(theme): add theme colors
ansidev Feb 24, 2023
2df0a34
feat(component): add component AppHeader
ansidev Feb 24, 2023
502690c
chore(ui): update the default layout and homepage
ansidev Feb 24, 2023
e0367bc
Merge pull request #10 from ansidev/feature/component-app-header
ansidev Feb 24, 2023
ef9633e
build(dep): add package @astrojs/partytown
ansidev Feb 24, 2023
dea0d72
feat(config): add config for @astrojs/partytown
ansidev Feb 24, 2023
ec52cb9
Merge pull request #11 from ansidev/feature/config-partytown
ansidev Feb 24, 2023
28b7c92
feat(component): add configs for Google Analytics
ansidev Feb 24, 2023
caf2e37
feat(component): add component GoogleAnalytics
ansidev Feb 24, 2023
cea67b7
Merge pull request #12 from ansidev/feature/component-google-analytics
ansidev Feb 24, 2023
a9016db
feat(component): add configs for Swetrix
ansidev Feb 24, 2023
7c4497a
feat(component): add component Swetrix
ansidev Feb 24, 2023
dee58a6
Merge pull request #13 from ansidev/feature/component-swetrix
ansidev Feb 24, 2023
f80b44a
build(deps): update astro to version 2.0.15
ansidev Feb 24, 2023
811c73c
Merge pull request #14 from ansidev/deps/astro
ansidev Feb 24, 2023
5fad06f
build(deps): update tailwindcss to version 3.2.7
ansidev Feb 24, 2023
d6996af
Merge pull request #15 from ansidev/deps/tailwindcss
ansidev Feb 24, 2023
71264af
build(deps): update @types/node to version 18.14.1
ansidev Feb 24, 2023
58e00e6
Merge pull request #16 from ansidev/deps/@types/node
ansidev Feb 24, 2023
968c945
feat(component): add configs for Counter Analytics
ansidev Feb 24, 2023
02151d0
feat(component): add component CounterAnalytics
ansidev Feb 24, 2023
678bd5d
Merge pull request #17 from ansidev/feature/component-counter-analytics
ansidev Feb 24, 2023
547f66a
refactor: adjust site config
ansidev Feb 24, 2023
48f540e
chore: add utils/plugin
ansidev Feb 24, 2023
a88f12f
feat(config): update site and plugin configs
ansidev Feb 24, 2023
49c9609
feat(component): add component AppFooter
ansidev Feb 24, 2023
427be3a
Merge pull request #18 from ansidev/feature/component-app-footer
ansidev Feb 24, 2023
9e5fee4
refactor(theme): refactor theme functions
ansidev Feb 24, 2023
8636d6c
feat(component): add component PostItem
ansidev Feb 24, 2023
454053b
feat(page): update homepage
ansidev Feb 24, 2023
902e961
fix: remove field `layout` from markdown posts
ansidev Feb 24, 2023
5fc47ff
Merge pull request #19 from ansidev/feature/component-post-item
ansidev Feb 24, 2023
1d3095c
feat(component): add component PostList
ansidev Feb 25, 2023
d560b15
feat(page): update homepage
ansidev Feb 25, 2023
3ae08d9
Merge pull request #20 from ansidev/feature/component-post-list
ansidev Feb 25, 2023
62b6c56
feat(page): add page /404
ansidev Feb 25, 2023
322f5a6
Merge pull request #21 from ansidev/feature/page-404
ansidev Feb 25, 2023
f9cdc28
build(dep): add package lodash.kebabcase
ansidev Feb 25, 2023
bcf6339
fix: wrong light theme colors
ansidev Feb 25, 2023
cb08439
feat(theme): update theme colors
ansidev Feb 25, 2023
3e0a5dd
feat(component): add component LeetCodeDifficulty
ansidev Feb 25, 2023
75c3a57
feat(page): update homepage
ansidev Feb 25, 2023
0c834fb
Merge pull request #22 from ansidev/feature/component-leetcode-diffic…
ansidev Feb 25, 2023
622aa6e
chore: add utils/date
ansidev Feb 25, 2023
b0425c1
fix(component): adjust background color for LeetCode difficulty
ansidev Feb 25, 2023
9b4a99d
feat(component): add component PostHeader
ansidev Feb 25, 2023
49f71a7
Merge pull request #23 from ansidev/feature/component-post-header
ansidev Feb 25, 2023
dd1f9ff
feat(style): update site style
ansidev Feb 25, 2023
a0e8279
Merge pull request #24 from ansidev/feature/update-site-style
ansidev Feb 25, 2023
17fcfcb
feat(component): add component Breadcrumb
ansidev Feb 25, 2023
d929a28
Merge pull request #25 from ansidev/feature/component-breadcrumb
ansidev Feb 25, 2023
f8cdbb5
fix(layout): add field `keywords` to AppLayout
ansidev Feb 25, 2023
dfcd6d3
fix(component): adjust padding and margin-bottom for PostHeader
ansidev Feb 25, 2023
c7078f3
feat(layout): add layout PostLayout
ansidev Feb 25, 2023
aa78b83
Merge pull request #26 from ansidev/feature/layout-post
ansidev Feb 25, 2023
03c6141
fix(layout): adjust padding-x
ansidev Feb 25, 2023
c0e5f89
feat(page): add page /{slug}
ansidev Feb 25, 2023
fd7b2a9
Merge pull request #27 from ansidev/feature/page-post
ansidev Feb 25, 2023
5c5405b
feat(component): support custom tag for component LeetCodeDifficulty
ansidev Feb 25, 2023
a2c5527
feat(page): add page /difficulties/{slug}
ansidev Feb 25, 2023
8b7967f
Merge pull request #28 from ansidev/feature/page-difficulty
ansidev Feb 25, 2023
5916113
fix(style): update style for .badge-default
ansidev Feb 25, 2023
0754c71
feat(page): add page /tags/{slug}
ansidev Feb 25, 2023
56e5bc5
Merge pull request #29 from ansidev/feature/page-tag
ansidev Feb 25, 2023
86bedaf
build(dep): add package @astrojs/sitemap
ansidev Feb 25, 2023
3474b08
feat(component): add sitemap config
ansidev Feb 25, 2023
514a61e
Merge pull request #30 from ansidev/feature/sitemap
ansidev Feb 25, 2023
5de33da
fix: remove redundant import
ansidev Feb 25, 2023
63c3d23
Merge pull request #31 from ansidev/patchfix/remove-redundant-import
ansidev Feb 25, 2023
5a9cb36
build(dep): add package @astrojs/rss
ansidev Feb 25, 2023
8dab828
feat(page): add page /rss.xml
ansidev Feb 25, 2023
2426e90
Merge pull request #32 from ansidev/feature/rss
ansidev Feb 25, 2023
c4dc709
feat(ui): update site styles
ansidev Feb 26, 2023
a15aad6
feat(component): add component ThemeSelector
ansidev Feb 26, 2023
deb093f
feat(page): add theme selector to AppHeader
ansidev Feb 26, 2023
d206941
Merge pull request #33 from ansidev/feature/component-theme-selector
ansidev Feb 26, 2023
cc57c8a
feat: difficulty-based style for post item
ansidev Feb 26, 2023
f68fe31
Merge pull request #34 from ansidev/feature/difficulty-based-post-ite…
ansidev Feb 26, 2023
d8cbf5d
build(deps): update astro-compress to version 1.1.34
ansidev Feb 26, 2023
e19bc9f
Merge pull request #35 from ansidev/deps/astro-compress
ansidev Feb 26, 2023
4e9b3ed
feat(theme): add light theme google
ansidev Feb 26, 2023
33c6d62
feat(theme): add light theme microsoft
ansidev Feb 26, 2023
1655281
feat(theme): add light theme twitter
ansidev Feb 26, 2023
75f446b
Merge pull request #36 from ansidev/feature/add-themes
ansidev Feb 26, 2023
16406c3
fix: task:clean command
ansidev Feb 26, 2023
73a2d72
Merge pull request #37 from ansidev/patchfix/task-clean-command
ansidev Feb 26, 2023
6a4a9cd
fix: change GitHub authentication token
ansidev Feb 26, 2023
2a32f98
Merge pull request #38 from ansidev/patchfix/pr-branch-was-not-delete…
ansidev Feb 26, 2023
bc19ece
docs(readme): add Netlify status badge
ansidev Feb 26, 2023
b9b53e1
chore(release): v2.0.0
ansidev Feb 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changes/v2.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## v2.0.0 (2023-02-26)

### Features

- TailwindCSS for UI.
- Multiple themes.
- SEO.
- Analytics: Google Analytics, Swetrix Analytics, Counter Analytics.
- Sitemap.
- RSS.
- Posts by tags, difficulty.

Full Changelog: [v2.0.0](https://github.com/ansidev/astro-basic-template/commits/v2.0.0)
2 changes: 1 addition & 1 deletion .github/workflows/deploy_to_netlify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
steps:
- name: Delete the PR branch after merged into develop
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_REF_PATH: /repos/${{ github.repository }}/git/refs/heads/${{ github.head_ref }}
run: |
STATUS_CODE=$(gh api -i -H "Accept: application/vnd.github+json" $GIT_REF_PATH | head -1)
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ pnpm-debug.log*

# VSCode Workspace
astro-basic-template.code-workspace

# Astro directories
.astro
2 changes: 1 addition & 1 deletion .taskfiles/task_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ tasks:
clean:
desc: Clean the build output
cmds:
- rm -r {{.OUTPUT_DIR}}
- rm -r ./{{.OUTPUT_DIR}}
silent: true
ignore_error: true
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).

## v2.0.0 (2023-02-26)

### Features

- TailwindCSS for UI.
- Multiple themes.
- SEO.
- Analytics: Google Analytics, Swetrix Analytics, Counter Analytics.
- Sitemap.
- RSS.
- Posts by tags, difficulty.

Full Changelog: [v2.0.0](https://github.com/ansidev/astro-basic-template/commits/v2.0.0)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# LeetCode Blog

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Netlify Status](https://api.netlify.com/api/v1/badges/278e1add-72b0-4ffe-b932-03b27a72c8b5/deploy-status)](https://app.netlify.com/sites/leetcode-blog/deploys)

Solutions for LeetCode problems - Written by [ansidev](https://github.com/ansidev).

Expand Down
10 changes: 10 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import partytown from '@astrojs/partytown'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import { defineConfig } from 'astro/config'
import compress from 'astro-compress'
import purgecss from 'astro-purgecss'
Expand All @@ -17,6 +20,13 @@ if (baseURL.length === 0) {
export default defineConfig({
site: baseURL,
integrations: [
tailwind(),
partytown({
config: {
forward: ['dataLayer.push'],
},
}),
sitemap(),
purgecss(),
compress(),
]
Expand Down
23 changes: 18 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "leetcode-blog",
"description": "Solutions for LeetCode problems - Written by ansidev",
"type": "module",
"version": "1.0.1",
"version": "2.0.0",
"license": "MIT",
"scripts": {
"dev": "astro dev",
Expand All @@ -15,14 +15,23 @@
"lint": "eslint --ext .cjs,.mjs,.ts,.astro --ignore-path .gitignore ."
},
"dependencies": {
"astro": "^2.0.14",
"astro-compress": "^1.1.33",
"astro-purgecss": "^2.0.0"
"@astrojs/partytown": "^1.0.3",
"@astrojs/rss": "^2.1.1",
"@astrojs/sitemap": "^1.1.0",
"@astrojs/tailwind": "^3.0.1",
"astro": "^2.0.15",
"astro-compress": "^1.1.34",
"astro-purgecss": "^2.0.0",
"tailwindcss": "^3.2.7"
},
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@types/node": "^18.14.0",
"@iconify-json/bi": "^1.1.15",
"@tailwindcss/typography": "^0.5.9",
"@types/lodash.get": "^4.4.7",
"@types/lodash.kebabcase": "^4.1.7",
"@types/node": "^18.14.1",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"commitizen": "^4.3.0",
Expand All @@ -31,6 +40,10 @@
"eslint-plugin-astro": "^0.23.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"lodash.get": "^4.4.2",
"lodash.kebabcase": "^4.1.1",
"sass": "^1.58.3",
"tailwindcss-themer": "^3.0.1",
"typescript": "^4.9.5"
}
}
Loading