Skip to content

Commit

Permalink
add more SEO options
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Aug 30, 2024
1 parent 048298b commit 91a9565
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .robots.development.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
User-agent: *
Disallow: /private/
Allow: /

# Specify the location of your sitemap if you have one
Sitemap: https://hetari.github.io/portfolio/
6 changes: 6 additions & 0 deletions .robots.production.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
User-agent: *
Disallow: /private/
Allow: /

# Specify the location of your sitemap if you have one
Sitemap: https://hetari.github.io/portfolio/
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
name="keywords"
content="full-stack developer,frontend developer,backend developer,freelance creative developer,freelance,web developer,portfolio,ebraheem alhetari,ابراهيم الهتاري,software engineer,web development,programming,coding,portfolio,portfolio website,ebraheem,alhetari,hetari"
/>
<meta name="robots" content="index, follow" />
<meta name="author" content="Ebraheem Alhetari" />
<meta
itemprop="image"
content="http://hetari.github.io/portfolio/assets/profile-dtKvApsu.webp"
content="https://hetari.github.io/portfolio/assets/profile-dtKvApsu.webp"
/>
<link rel="canonical" href="https://hetari.github.io/portfolio/" />

<!-- Open Graph Meta Tags -->
<meta property="og:image:type" content="image/jpeg" />
Expand Down
34 changes: 34 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"tailwindcss": "^3.4.9",
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vite-plugin-robots": "^1.0.5",
"vite-plugin-sitemap": "^0.7.1",
"vue-tsc": "^2.0.6"
}
}
18 changes: 18 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Ebraheem Alhetari Portfolio",
"short_name": "Ebraheem Alhetari Portfolio",
"icons": [
{
"src": "/apple-touch-icon-180x180.png",
"sizes": "180x180",
"type": "image/png"
},
{
"src": "/apple-touch-icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
}
],
"start_url": "/portfolio/",
"display": "standalone"
}
18 changes: 18 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="https://hetari.github.io/portfolio/sitemap/0.9">
<url>
<loc>https://hetari.github.io/portfolio</loc>
<lastmod>2024-08-30</lastmod>
<priority>1.00</priority>
</url>
<!-- <url>
<loc>https://yourwebsite.com/about</loc>
<lastmod>2024-08-28</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://yourwebsite.com/contact</loc>
<lastmod>2024-08-28</lastmod>
<priority>0.80</priority>
</url> -->
</urlset>
11 changes: 10 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import sitemap from 'vite-plugin-sitemap';
import { robots } from 'vite-plugin-robots';

// https://vitejs.dev/config/
export default defineConfig({
base: '/portfolio/',
plugins: [vue()],
plugins: [
vue(),
sitemap({
hostname: 'https://hetari.github.io/',
basePath: 'portfolio',
}),
robots(),
],
resolve: {
alias: {
'@': '/src',
Expand Down

0 comments on commit 91a9565

Please sign in to comment.