Skip to content

Commit

Permalink
Merge branch 'main' into test-basic-post-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
riceball-tw committed Jun 15, 2024
2 parents 4ad3d28 + f6c6f86 commit 62aeb29
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pages-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ jobs:
${{ runner.os }}-lfs-
- name: Git LFS Pull
run: git lfs pull
- name: Build / Cypress E2E test
- name: Build for Production (main) branch
if: github.ref == 'refs/heads/main'
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Build for Non-production (other) branch
if: github.ref != 'refs/heads/main'
uses: cypress-io/github-action@v6
with:
build: pnpm build:staging
Expand Down
2 changes: 1 addition & 1 deletion src/components/post/CategoryList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const CategoryElement = categoryHref ? 'a' : 'div';

<CategoryElement
data-astro-prefetch
class="p-1 relative mr-4 whitespace-nowrap capitalize opacity-60 hover:opacity-100"
class="p-1.5 relative mr-4 whitespace-nowrap capitalize opacity-60 hover:opacity-100"
{...categoryHref && {
href: categoryHref,
}}
Expand Down
5 changes: 3 additions & 2 deletions src/components/post/TagsList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ const { tags, tagHrefs } = Astro.props;
{
tagHrefs ? tagHrefs.map((href, index) => (
<li data-cy="tag">
<a data-cy="tag-link" data-astro-prefetch class="p-1 inline-block capitalize opacity-60 hover:opacity-100" {href}>
<a data-cy="tag-link" data-astro-prefetch class="p-1.5 inline-block capitalize opacity-60 hover:opacity-100" {href}>
<a data-astro-prefetch class="p-1.5 inline-block capitalize opacity-60 hover:opacity-100" {href}>
<span>#</span> <span data-pagefind-filter="tag">{tags[index]}</span>
</a>
</li>
)) : tags.map((tag) => (
<li data-cy="tag">
<span class="p-1 inline-block capitalize opacity-60 hover:opacity-100">
<span class="p-1.5 inline-block capitalize opacity-60 hover:opacity-100">
<span>#</span> <span data-pagefind-filter="tag">{tag}</span>
</span>
</li>
Expand Down

0 comments on commit 62aeb29

Please sign in to comment.