Skip to content

Commit 2db30b6

Browse files
author
Nir Galon
authored
bug: Fix accessibility issues (#7)
* docs: fix github CD badge on README fix #6 * docs: change hugo min version * fix: fix accessibility issues * refactor: change screenshot dimensions * ci: deploy website to gh-pages in CD action
1 parent dc0c7c6 commit 2db30b6

8 files changed

Lines changed: 25 additions & 16 deletions

File tree

.github/workflows/continuous-deployment.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,26 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14-
- name: Setup Hugo
14+
- name: Setup Hugo 💡
1515
uses: peaceiris/actions-hugo@v2
1616
with:
1717
hugo-version: 'latest'
1818
extended: true
1919

20-
- name: Hugo Build
20+
- name: Hugo Build 🚧
2121
run: hugo --source=exampleSite --minify -e production
2222

23-
- name: Release
23+
- name: Create Release 🚀
2424
uses: ridedott/release-me-action@master
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
with:
2828
release-branches: '["main"]'
29+
30+
- name: Deploy gh-pages 🖥️
31+
uses: JamesIves/github-pages-deploy-action@3.7.1
32+
with:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
BRANCH: gh-pages
35+
FOLDER: exampleSite/public
36+
CLEAN: true

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,25 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14-
- name: Setup Hugo
14+
- name: Setup Hugo 💡
1515
uses: peaceiris/actions-hugo@v2
1616
with:
1717
hugo-version: 'latest'
1818
extended: true
1919

20-
- name: Hugo Build
20+
- name: Hugo Build 🚧
2121
run: hugo --source=exampleSite --minify -v
2222

2323
- uses: actions/checkout@v2
2424
- name: Set up Ruby 2.6
2525
uses: actions/setup-ruby@v1
2626
with:
2727
ruby-version: 2.6
28+
2829
- name: Install dependencies
2930
run: gem install html-proofer
3031

31-
- name: Proof HTML
32+
- name: Proof HTML 📚
3233
run: |
3334
hugo --source=exampleSite --minify -v
3435
htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# devRes Theme
22

3-
[![CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-blue.svg)](http://creativecommons.org/licenses/by/4.0/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/nirgn975/devRes)](https://github.com/nirgn975/devRes/releases) ![Continuous Integration](https://github.com/nirgn975/devRes/workflows/Continuous%20Integration/badge.svg?branch=main) [![Hugo](https://img.shields.io/badge/Hugo-%5E0.62.0-ff4088?logo=hugo)](https://gohugo.io/) [![Donate](https://img.shields.io/badge/PayPal-Donate-lightgrey.svg)](https://www.paypal.me/nirgn/2)
3+
[![CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-orange.svg)](http://creativecommons.org/licenses/by/4.0/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/nirgn975/devRes)](https://github.com/nirgn975/devRes/releases) ![Continuous Deployment](https://github.com/nirgn975/devRes/workflows/Continuous%20Deployment/badge.svg?branch=main) [![Hugo](https://img.shields.io/badge/Hugo-%5E0.41.0-ff4088?logo=hugo)](https://gohugo.io/) [![Donate](https://img.shields.io/badge/PayPal-Donate-lightgrey.svg)](https://www.paypal.me/nirgn/2)
44

55
> A Hugo resume theme with a Developer focus in mind.
66
@@ -21,8 +21,8 @@ theme = "devRes"
2121
- Generate GitHub project cards automatically from a repo name.
2222
- Automagically get the latest posts from your blog.
2323
- Use [Font Awesome](https://fontawesome.com) or [Devicons](https://devicon.dev) icons.
24-
- Support [Google Analytics](https://analytics.google.com/analytics) and [Plausible](https://plausible.io) analytics.
25-
- Optimized for performance: 86/100 on mobile and 99/100 on desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights).
24+
- Support [Google](https://analytics.google.com/analytics) and [Plausible](https://plausible.io) analytics.
25+
- Optimized for Performance, Accessibility, Best Practices, and SEO: 90+ (out of 100) on mobile and desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights).
2626
- **CDN** for all third-party libraries supported
2727

2828
# Customization
@@ -36,7 +36,7 @@ You can check the `exampleSite` directory for an example.
3636

3737
Great! All issues and pull requests are welcome.
3838

39-
For local development just copy all the files to the `exampleSite` directory, navigate to it and just start [hugo](https://gohugo.io) with
39+
For local development just start [hugo](https://gohugo.io) with `exampleSite` as the source.
4040

4141
```bash
4242
$ hugo server --source=exampleSite -v --gc

images/screenshot.webp

134 Bytes
Loading

layouts/partials/_about-me.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<span class="category-header">
33
<i class="fas fa-user fa-2x"></i>
44
<h2>About Me</h2>
5-
<button class="uk-icon-button" uk-icon="paint-bucket" type="button" onClick="switchTheme(this)"></button>
5+
<button class="uk-icon-button" uk-icon="paint-bucket" type="button" onClick="switchTheme(this)" aria-label="Switch Theme"></button>
66
</span>
77

88
<div>

layouts/partials/_banner.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="header">
22
<div class="uk-card uk-card-default">
33
<div class="uk-card-media-top">
4-
<img src="{{ .Site.Data.content.banner.photo }}">
4+
<img src="{{ .Site.Data.content.banner.photo }}" alt="Profile Image">
55
</div>
66
<div class="uk-card-body">
77
<div class="description">
@@ -20,7 +20,7 @@
2020
</div>
2121

2222
<!-- This is a button toggling the off-canvas -->
23-
<button id="mobile" uk-toggle="target: #mobile-banner" type="button">
23+
<button id="mobile" uk-toggle="target: #mobile-banner" type="button" aria-label="Open Menu">
2424
<span uk-icon="icon: menu; ratio: 1.5"></span>
2525
</button>
2626

@@ -31,7 +31,7 @@
3131
<div id="mobile-banner" uk-offcanvas>
3232
<div class="uk-offcanvas-bar">
3333
<button class="uk-offcanvas-close" type="button" uk-close></button>
34-
<img src="{{ .Site.Data.content.banner.photo }}">
34+
<img src="{{ .Site.Data.content.banner.photo }}" alt="Profile Image">
3535
<div class="description">
3636
{{ .Site.Data.content.banner.text | safeHTML }}
3737
</div>

layouts/partials/_contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2>Contact</h2>
2020
<textarea class="uk-textarea" name="message-body" rows="5"></textarea>
2121
</div>
2222

23-
<button class="uk-button uk-button-default" type="submit">Send</button>
23+
<button class="uk-button uk-button-default" type="submit" aria-label="Send Email">Send</button>
2424

2525
</fieldset>
2626
</form>

layouts/partials/_talks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h2>Talks</h2>
77
{{ range .Site.Data.content.talks }}
88
<div class="uk-grid-collapse uk-child-width-1-2@s uk-margin" uk-grid>
99
<div class="uk-card-media-left uk-cover-container">
10-
<img src="{{ .cover }}" uk-cover>
10+
<img src="{{ .cover }}" uk-cover alt="Talk Thumbnail">
1111
</div>
1212
<div>
1313
<div class="uk-card-body">

0 commit comments

Comments
 (0)