Skip to content

Commit

Permalink
tweaked Pager.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
brklntmhwk committed Mar 6, 2024
1 parent bdc12c1 commit 5589f48
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 515 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# key: ${{ runner.os }}-astro-${{ hashFiles('**/yarn-lock.yaml') }}
# restore-keys: ${{ runner.os }}-astro-
- name: Install dependencies
run: yarn install
run: yarn install --frozen-lockfile
- name: Build project
run: yarn run build
- name: Publish to Cloudflare Pages
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ yarn-error.log*
# Front Matter CMS files
.frontmatter/

# Wrangler files
.wrangler/
# # Wrangler files
# .wrangler/

# Yarn
.yarn/
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn format
npx lint-staged
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"preview": "astro preview",
"sync": "astro sync",
"astro": "npx astro",
"wrangler": "npx wrangler",
"pages:dev": "wrangler pages dev --compatibility-date=2024-01-17 -- astro dev",
"pages:deploy": "astro build && wrangler pages deploy ./dist",
"format": "prettier --write './src/**/*.{js,ts,json,astro}'",
"prepare": "husky"
},
Expand Down Expand Up @@ -54,8 +51,7 @@
"rehype-pretty-code": "^0.13.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"wrangler": "^3.29.0"
"remark-math": "^6.0.0"
},
"packageManager": "yarn@1.22.15",
"engines": {
Expand Down
4 changes: 1 addition & 3 deletions src/components/Pager.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const paginator = (
---

{
page !== undefined ? (
page !== undefined && (
<nav>
{page.url.prev ? (
<div>
Expand Down Expand Up @@ -70,8 +70,6 @@ const paginator = (
<Svg iconName="right-arrow" width={20} height={20} />
)}
</nav>
) : (
<></>
)
}

Expand Down
Loading

0 comments on commit 5589f48

Please sign in to comment.