Skip to content

Commit 98e427a

Browse files
committed
Enhance accessibility and SEO across the site by adding alt attributes to images, updating descriptions in front matter, and implementing structured data for improved search engine visibility.
1 parent 1147594 commit 98e427a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+171
-138
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ node_modules
77
npm-debug.log
88
.bundle
99
vendor
10-
.jekyll-cache/*
10+
.jekyll-cache/*
11+
AGENTS.md

Gemfile.lock

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@ GEM
33
specs:
44
addressable (2.8.7)
55
public_suffix (>= 2.0.2, < 7.0)
6-
bigdecimal (3.1.9)
76
colorator (1.1.0)
87
concurrent-ruby (1.3.5)
98
em-websocket (0.5.3)
109
eventmachine (>= 0.12.9)
1110
http_parser.rb (~> 0)
1211
eventmachine (1.2.7)
13-
ffi (1.17.1-x86_64-darwin)
12+
ffi (1.17.2-arm64-darwin)
13+
ffi (1.17.2-x86_64-darwin)
1414
forwardable-extended (2.6.0)
15-
google-protobuf (4.29.3-x86_64-darwin)
16-
bigdecimal
17-
rake (>= 13)
1815
http_parser.rb (0.8.0)
1916
i18n (1.14.7)
2017
concurrent-ruby (~> 1.0)
@@ -34,8 +31,8 @@ GEM
3431
safe_yaml (~> 1.0)
3532
terminal-table (>= 1.8, < 4.0)
3633
webrick (~> 1.7)
37-
jekyll-sass-converter (3.0.0)
38-
sass-embedded (~> 1.54)
34+
jekyll-sass-converter (2.2.0)
35+
sassc (> 2.0.1, < 3.0)
3936
jekyll-seo-tag (2.8.0)
4037
jekyll (>= 3.8, < 5.0)
4138
jekyll-watch (2.2.1)
@@ -51,22 +48,22 @@ GEM
5148
mercenary (0.4.0)
5249
pathutil (0.16.2)
5350
forwardable-extended (~> 2.6)
54-
public_suffix (6.0.1)
55-
rake (13.2.1)
51+
public_suffix (5.1.1)
5652
rb-fsevent (0.11.2)
5753
rb-inotify (0.11.1)
5854
ffi (~> 1.0)
5955
rexml (3.4.0)
60-
rouge (4.5.1)
56+
rouge (3.30.0)
6157
safe_yaml (1.0.5)
62-
sass-embedded (1.83.4-x86_64-darwin)
63-
google-protobuf (~> 4.29)
58+
sassc (2.4.0)
59+
ffi (~> 1.9)
6460
terminal-table (3.0.2)
6561
unicode-display_width (>= 1.1.1, < 3)
6662
unicode-display_width (2.6.0)
6763
webrick (1.9.1)
6864

6965
PLATFORMS
66+
arm64-darwin-25
7067
x86_64-darwin-24
7168

7269
DEPENDENCIES

README.md

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,50 @@
1-
# Pramesh Bajracharya.
1+
# Pramesh Bajracharya.
22

33
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
44
[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)
55
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badge/)
66

7+
# Personal website
8+
<http://prameshbajra.github.io>
79

8-
# Personal website
9-
<http://prameshbajra.github.io>
10+
My learnings and prototypes that I would like to share.
1011

12+
## Local Development
1113

12-
My learnings and prototypes that I would like to share.
14+
### Prerequisites
15+
- Ruby (use the version installed locally or via rbenv/rvm) with Bundler available
16+
- Node.js 16+ (asset watcher and build scripts)
17+
18+
### Install dependencies
19+
Run these once per environment:
20+
21+
```bash
22+
gem install bundler # skip if Bundler is already available
23+
bundle install
24+
npm install
25+
```
26+
27+
By default Bundler installs gems into the global path. To keep them vendored, run `bundle config set --local path 'vendor/bundle'` before `bundle install`.
28+
29+
### Start the site locally
30+
Launch Jekyll in watch mode with livereload:
31+
32+
```bash
33+
bundle exec jekyll serve --livereload
34+
```
35+
36+
This serves the site at `http://127.0.0.1:4000`. Keep the command running while you edit Markdown posts, layouts, or data files; changes trigger automatic rebuilds and browser refreshes. If you tweak Sass or JavaScript bundles, start the theme's helper in another terminal:
37+
38+
```bash
39+
npm run dev
40+
```
41+
42+
### Verify before publishing
43+
Run Jekyll's build and doctor checks to ensure templates render cleanly and config issues are caught:
44+
45+
```bash
46+
bundle exec jekyll doctor
47+
bundle exec jekyll build
48+
```
49+
50+
The build output appears in `_site/`. Commit only source files—leave `_site/` untracked when pushing to GitHub.

_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
title: Pramesh Bajracharya
55
description: Pramesh's Website, All about technology, learning, code and some more stuffs.
66
keywords: Pramesh,pramesh,bajracharya,Bajracharya,Pramesh Bajracharya,pramesh bajracharya,blog,Jekyll,github,gh-pages
7-
baseurl: # if you have suburl as homepage like '/homepage', please change it to '/homepage' and your repo's name should be 'homepage'
8-
url: https://prameshbajra/prameshbajra.github.io/ # url should be 'http://<github_username>.github.io/homepage' as before
9-
# url: http://127.0.0.1:4000
7+
lang: en
8+
baseurl: "" # if you have suburl as homepage like '/homepage', please change it to '/homepage' and your repo's name should be 'homepage'
9+
url: https://prameshbajra.github.io # url should be 'http://<github_username>.github.io/homepage' as before
1010
img_path: /homepage/static/assets/img/blog # url should be '/homepage/static/assets/img/blog' as before
1111

1212
# author -- index page "about me" section

_data/index/links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
99

1010
- last_name: Feel free to contact me.
11-
desc: Mobile Number - +91-9959204435 (India),<br>+977-9808876136 (Nepal)<br>E-mail - [email protected]<br> Twitter - @prameshbajra<br>Instagram- @prameshbajra
11+
desc: Mobile Number - E-mail - pe.messh+website@gmail.com<br> Twitter - @prameshbajra<br>Instagram- @prameshbajra
1212
email:
1313
# Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

_includes/blog_header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<input type="text" class="form-control search-content" id="search-content" style="position: fixed; top: 60px" placeholder="Search Blog">
44

55
<div style="position: fixed; top: 16px; right: 16px; z-index: 9999;">
6-
<img src="{{ "/static/assets/img/search/cb-close.png" | prepend: site.baseurl }}" id="close-btn"/>
6+
<img src="{{ "/static/assets/img/search/cb-close.png" | prepend: site.baseurl }}" id="close-btn" alt="Close search overlay"/>
77
</div>
88
</div>
99

1010
<div style="position: fixed; right: 16px; bottom: 20px; z-index: 9999;">
11-
<img src="{{ "/static/assets/img/search/cb-search.png" | prepend : site.baseurl }}" id="search-btn" title="Double click Ctrl"/>
11+
<img src="{{ "/static/assets/img/search/cb-search.png" | prepend : site.baseurl }}" id="search-btn" title="Double click Ctrl" alt="Open search"/>
1212
</div>
1313

1414
<div class="navbar-wrapper">

_includes/head.html

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,23 @@
11
<head>
22
<meta charset="utf-8">
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4-
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1; minimum-scale=1; user-scalable=no;">
5-
{% if page.desc %}
6-
<meta content="{{ page.desc }}" name="description">
7-
{% endif %}
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{% seo %}
86
{% if page.keywords %}
97
<meta name="keywords" content="{{ page.keywords }}">
8+
{% elsif site.keywords %}
9+
<meta name="keywords" content="{{ site.keywords }}">
1010
{% endif %}
11-
<meta name="author" content="{{ site.author.name }}">
12-
<meta name="baseurl" content="{{ site.baseurl }}">
1311

14-
<title>
15-
{% if page.title != "index" %}
16-
{{ site.title }}|{{ page.title }}
17-
{% else %}
18-
{{ site.title }}
19-
{% endif %}
20-
</title>
2112
<!-- favicon -->
22-
<link rel="shortcut icon" href="{{ " /static/assets/img/favicon.ico" | prepend: site.baseurl }}">
13+
<link rel="shortcut icon" href="{{ "/static/assets/img/favicon.ico" | prepend: site.baseurl }}">
2314

2415
<!-- Main CSS -->
25-
<link href="{{ " /static/assets/app-20180125.min.css" | prepend: site.baseurl }}" rel="stylesheet">
26-
<link href="{{ " /static/css/custom.css" | prepend: site.baseurl }}" rel="stylesheet">
16+
<link href="{{ "/static/assets/app-20180125.min.css" | prepend: site.baseurl }}" rel="stylesheet">
17+
<link href="{{ "/static/css/custom.css" | prepend: site.baseurl }}" rel="stylesheet">
2718

2819
<!-- Main Scripts -->
29-
<script async src="{{" /static/assets/app-20180125.min.js"| prepend: site.baseurl }}"></script>
30-
<script async src="{{" /static/assets/blog-20180125.min.js"| prepend: site.baseurl }}"></script>
31-
32-
<meta property="og:title" content="Pramesh Bajracharya's Portfolio and Blog">
33-
<meta property="og:description" content="Discover the work of Pramesh Bajracharya, a Computer Engineer with a passion for technology. Dive into the knowledge on Full Stack Development, Cloud Architectures, Deep Learning, Automation, and more. Explore the projects and read some insightful blog posts.">
34-
<meta property="og:image" content="https://prameshbajra.github.io/static/assets/img/landing/pramesh.jpg">
35-
<meta property="og:url" content="https://prameshbajra.github.io">
36-
<meta property="og:type" content="website">
37-
38-
<meta name="twitter:card" content="summary_large_image">
39-
<meta name="twitter:title" content="Pramesh Bajracharya's Portfolio and Blog">
40-
<meta name="twitter:description" content="Discover the work of Pramesh Bajracharya, a Computer Engineer with a passion for technology. Dive into the knowledge on Full Stack Development, Cloud Architectures, Deep Learning, Automation, and more. Explore the projects and read his insightful blog posts.">
41-
<meta name="twitter:image" content="https://prameshbajra.github.io/static/assets/img/landing/pramesh.jpg">
20+
<script async src="{{ "/static/assets/app-20180125.min.js" | prepend: site.baseurl }}"></script>
21+
<script async src="{{ "/static/assets/blog-20180125.min.js" | prepend: site.baseurl }}"></script>
4222

43-
</head>
23+
</head>

_includes/index_head.html

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
11
<head>
22
<meta charset="utf-8">
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4-
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1; minimum-scale=1; user-scalable=no;">
5-
6-
<meta content="{{ site.description }}" name="description">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{% seo %}
6+
{% if page.keywords %}
7+
<meta name="keywords" content="{{ page.keywords }}">
8+
{% elsif site.keywords %}
79
<meta name="keywords" content="{{ site.keywords }}">
8-
<meta name="author" content="{{ site.author.name }}">
9-
10-
<meta property="og:title" content="Pramesh Bajracharya's Portfolio and Blog">
11-
<meta property="og:description" content="Discover the work of Pramesh Bajracharya, a Computer Engineer with a passion for technology. Dive into the knowledge on Full Stack Development, Cloud Architectures, Deep Learning, Automation, and more. Explore the projects and read some insightful blog posts.">
12-
<meta property="og:image" content="https://prameshbajra.github.io/static/assets/img/landing/pramesh.jpg">
13-
<meta property="og:url" content="https://prameshbajra.github.io">
14-
<meta property="og:type" content="website">
10+
{% endif %}
11+
{% include structured-data.html %}
1512

16-
<meta name="twitter:card" content="summary_large_image">
17-
<meta name="twitter:title" content="Pramesh Bajracharya's Portfolio and Blog">
18-
<meta name="twitter:description" content="Discover the work of Pramesh Bajracharya, a Computer Engineer with a passion for technology. Dive into the knowledge on Full Stack Development, Cloud Architectures, Deep Learning, Automation, and more. Explore the projects and read his insightful blog posts.">
19-
<meta name="twitter:image" content="https://prameshbajra.github.io/static/assets/img/landing/pramesh.jpg">
20-
21-
<title>{{ site.title }}</title>
2213
<!-- favicon -->
23-
<link rel="shortcut icon" href="{{ " /static/assets/img/favicon.ico" | prepend: site.baseurl }}">
14+
<link rel="shortcut icon" href="{{ "/static/assets/img/favicon.ico" | prepend: site.baseurl }}">
2415

2516
<!-- Main CSS -->
26-
<link href="{{ " /static/assets/app-20180125.min.css" | prepend: site.baseurl }}" rel="stylesheet">
27-
<link href="{{ " /static/css/custom.css" | prepend: site.baseurl }}" rel="stylesheet">
17+
<link href="{{ "/static/assets/app-20180125.min.css" | prepend: site.baseurl }}" rel="stylesheet">
18+
<link href="{{ "/static/css/custom.css" | prepend: site.baseurl }}" rel="stylesheet">
2819

2920
<!-- Main scripts -->
30-
<script async defer src="{{ " /static/assets/app-20180125.min.js" | prepend: site.baseurl }}"></script>
21+
<script async defer src="{{ "/static/assets/app-20180125.min.js" | prepend: site.baseurl }}"></script>
3122
{% if site.data.index.projects %}
32-
<script async defer src="{{ " /static/js/github_api.min.js" | prepend: site.baseurl }}"></script>
23+
<script async defer src="{{ "/static/js/github_api.min.js" | prepend: site.baseurl }}"></script>
3324
{% endif %}
3425
{% if site.data.index.language %}
35-
<script src="{{" /static/assets/i18-20180125.min.js"| prepend: site.baseurl }}"></script>
26+
<script src="{{ "/static/assets/i18-20180125.min.js" | prepend: site.baseurl }}"></script>
3627
{% endif %}
3728

3829
<!-- Global site tag (gtag.js) - Google Analytics -->
@@ -56,4 +47,4 @@
5647
})(window, document, 'script', 'dataLayer', 'GTM-KT3NF8Z');</script>
5748
<!-- End Google Tag Manager -->
5849

59-
</head>
50+
</head>

_includes/sections/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1><span data-i18n="about_me.about_me">About Me</span></h1>
2020
<!-- avatar -->
2121
<div class="col-xs-4">
2222
<div class="team-member wow zoomIn">
23-
<img src="{{ site.author.avatar | prepend: site.baseurl }}" height="110" width="110" class="img-responsive img-circle" alt="">
23+
<img src="{{ site.author.avatar | prepend: site.baseurl }}" height="110" width="110" class="img-responsive img-circle" alt="{{ site.author.name }} portrait">
2424
<h4><span class="navy">{{ site.author.first_name }}</span> {{ site.author.last_name }}</h4>
2525
<ul class="list-inline social-icon">
2626
{% if site.author.github_username %}

_includes/sections/projects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1><span data-i18n="projects.my_projects">My Projects</span></h1>
1818
<div class="col-sm-6 wow {% if loopindex == 1 %} fadeInLeft {% else %} fadeInRight {% endif %}">
1919
{% endif %}
2020
<div class="team-member">
21-
<img src="{{ project.img | prepend: site.baseurl }}" class="img-responsive img-circle img-small" alt="">
21+
<img src="{{ project.img | prepend: site.baseurl }}" class="img-responsive img-circle img-small" alt="{{ project.name | default: 'Project thumbnail' }}">
2222
<h4>
2323
{% if project.url %}
2424
<a href="{{ project.url }}" target="_blank"><span class="navy">{{ project.name }}</span></a>

0 commit comments

Comments
 (0)