File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,15 @@ jobs:
64
64
uses : actions/checkout@v3
65
65
66
66
- name : Publish
67
- uses : netlify/actions/build@master
67
+ uses : nwtgck/actions-netlify@v1.2
68
+ with :
69
+ publish-dir : " ./dist"
70
+ production-branch : main
71
+ github-token : ${{ secrets.GITHUB_TOKEN }}
72
+ deploy-message : " Deploy from GitHub Actions"
68
73
env :
69
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
70
75
NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
71
- NETLIFY_CMD : npm run build
72
- NETLIFY_DIR : dist
73
76
74
77
build-index :
75
78
needs : deploy
Original file line number Diff line number Diff line change 12
12
13
13
<a href =" /contact" class =" text-base font-medium text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 hover:dark:text-zinc-300" >Contact</a >
14
14
15
- <button id =" theme-button" onclick =" handleClick ()" ></button >
15
+ <button id =" theme-button" onclick =" handleClick ()" aria-label = " change theme color " ></button >
16
16
</div >
17
17
18
18
<script is:inline >
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ const posts = (await Astro.glob("./**/*.{md,mdx}"))
21
21
{
22
22
posts .map ((post ) => (
23
23
<div class = " flex flex-col bg-zinc-200 dark:bg-zinc-700 rounded-sm" >
24
- <a href = { post .url } class = " flex-1" >
24
+ <a href = { post .url } class = " flex-1" aria-label = " Title goes to post " >
25
25
<h3 class = " p-2 text-xl" >{ post .frontmatter .title } </h3 >
26
26
</a >
27
27
28
- <a href = { post .url } >
29
- <img src = { post .frontmatter .featuredImage } class = " object-cover my-2 w-full h-60" />
28
+ <a href = { post .url } aria-label = " hero image goes to post " >
29
+ <img src = { post .frontmatter .featuredImage } class = " object-cover my-2 w-full h-60" alt = { ` ${ post . frontmatter . title } post hero image ` } />
30
30
</a >
31
31
32
32
<p class = " line-clamp-3 m-2" >
@@ -49,7 +49,11 @@ const posts = (await Astro.glob("./**/*.{md,mdx}"))
49
49
</span >
50
50
51
51
<span class = " ml-1 text-sm flex self-end" >
52
- <a href = { ` /categories/${post .frontmatter .category } ` } class = " ml-1 hover:text-zinc-700 dark:hover:text-zinc-400" >
52
+ <a
53
+ href = { ` /categories/${post .frontmatter .category } ` }
54
+ class = " ml-1 hover:text-zinc-700 dark:hover:text-zinc-400"
55
+ aria-label = { ` go to ${post .frontmatter .category } category ` }
56
+ >
53
57
<i class = " fa-regular fa-folder" />
54
58
{ post .frontmatter .category }
55
59
</a >
You can’t perform that action at this time.
0 commit comments