Skip to content

Commit

Permalink
Meta info and sitemap links
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasztyrala committed Jan 1, 2025
1 parent 50ba0d5 commit 2600ac0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
5 changes: 5 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
User-agent: *
Allow: /
Disallow: /test.html

Sitemap: https://lukasztyrala.pl/sitemap-index.xml
8 changes: 1 addition & 7 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const { title, description, image = '/lt-og-feed-img.png' } = Astro.props;
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="sitemap" href="/sitemap-index.xml" />
<meta name="generator" content={Astro.generator} />

<!-- Canonical URL -->
Expand All @@ -36,10 +37,3 @@ const { title, description, image = '/lt-og-feed-img.png' } = Astro.props;
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={new URL(image, Astro.url)} />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={Astro.url} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={new URL(image, Astro.url)} />
8 changes: 6 additions & 2 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
---
const today = new Date();
const today = new Date();
---

<div class="page-foot"><a title="Top" href="#start"><svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" width="36" height="36"><title>Return to page start</title><path fill="#223E5D" d="M12.7,12.5C12.7,12.5,12.7,12.5,12.7,12.5c-0.4-0.4-1-0.4-1.4,0l-3,3c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l2.3-2.3l2.3,2.3c0.2,0.2,0.4,0.3,0.7,0.3c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L12.7,12.5z M9.7,11.5L12,9.2l2.3,2.3c0.2,0.2,0.4,0.3,0.7,0.3c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4l-3-3c0,0,0,0,0,0c-0.4-0.4-1-0.4-1.4,0l-3,3c-0.4,0.4-0.4,1,0,1.4C8.7,11.8,9.3,11.8,9.7,11.5z"/></svg></a></div>

<footer class="page-footer">
<p>
This <abbr title="Hyper Text Markup Language">HTML</abbr> + <abbr title="Cascading Style Sheets">CSS</abbr> <time datetime="2021-03-30">was</time> hand crafted with <span class="love" title="love">❤︎</span> for you.<br>
This <abbr title="Hyper Text Markup Language">HTML</abbr> + <abbr title="Cascading Style Sheets">CSS</abbr> <time datetime="2021-03-30">was</time> hand crafted with <span class="love" title="love">❤︎</span> using Astro framework.
Theme inspired by <a href="https://en.wikipedia.org/wiki/The_Great_Wave_off_Kanagawa" title="“The Great Wave off Kanagawa” by Hokusai">🌊</a>.
<br>
All opinions are mine only, subjected to change upon new knowledge.
<br>
No trackers, no ads. No data collected or retained.
</p>
<p class="elsewhere">
<a href="https://www.linkedin.com/in/lukasztyrala/" class="icon linkedin" rel="me"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>LinkedIn</title><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg></a>
Expand Down

0 comments on commit 2600ac0

Please sign in to comment.