Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add schema.org structured data and improve semantic markup #85

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions src/views/index.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" itemscope itemtype="https://schema.org/WebPage">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down Expand Up @@ -35,24 +35,41 @@
}
</script>
</head>
<body>
<body itemprop="about" itemscope itemtype="https://schema.org/Person">
<header>
<picture>
<source type="image/webp" srcset="../assets/images/profile100w100h.png?as=webp" />
<img class="clazz-profile-image" src="../assets/images/profile100w100h.png" alt="Profile picture of <%= name %>, CTO @ Apter" loading="eager" width="100" height="100" />
<img class="clazz-profile-image"
src="../assets/images/profile100w100h.png"
alt="Profile picture of <%= name %>, CTO @ Apter"
itemprop="image"
loading="eager"
width="100"
height="100" />
</picture>
<h1><%= name %><br/><span>CTO & Engineering Lead</span></h1>
<h1><span itemprop="name"><%= name %></span><br/><span itemprop="jobTitle">CTO & Engineering Lead</span></h1>
</header>
<main>
<nav class="clazz-profile-links" aria-label="Profile links">
<% links.forEach(function(link) { %>
<a class="clazz-button" href="<%- link.url %>" aria-label="Visit <%= link.name %>" target="_blank" rel="noopener noreferrer ugc"><%= link.name %></a>
<a class="clazz-button"
href="<%- link.url %>"
aria-label="Visit <%= link.name %>"
target="_blank"
rel="noopener noreferrer ugc"
itemprop="url">
<%= link.name %>
</a>
<% }); %>
</nav>
<nav class="clazz-social-links" aria-label="Social links">
<% socialLinks.forEach(function(link) { %>
<div class="clazz-social-link-container">
<a href="<%- link.url %>" aria-label="Visit <%= link.name %>" target="_blank" rel="noopener noreferrer ugc">
<a href="<%- link.url %>"
aria-label="Visit <%= link.name %>"
target="_blank"
rel="noopener noreferrer ugc"
itemprop="sameAs">
<%- include(`../assets/images/fa6-brands-${link.icon}.svg`) %>
</a>
</div>
Expand Down