Skip to content

Commit

Permalink
fix download attr value
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonRP committed Oct 13, 2024
1 parent dbf56e4 commit cfbc938
Show file tree
Hide file tree
Showing 81 changed files with 15,352 additions and 15,451 deletions.
34 changes: 17 additions & 17 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { defineConfig } from "astro/config";
import svelte from "@astrojs/svelte";
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';

export default defineConfig({
// your configuration options here...
// https://docs.astro.build/en/reference/configuration-reference/
site: "https://JonathonRP.github.io",
integrations: [svelte()],
vite: {
server: {
watch: {
usePolling: true,
},
},
},
experimental: {
serverIslands: true,
contentLayer: true,
},
// your configuration options here...
// https://docs.astro.build/en/reference/configuration-reference/
site: 'https://JonathonRP.github.io',
integrations: [svelte()],
vite: {
server: {
watch: {
usePolling: true,
},
},
},
experimental: {
serverIslands: true,
contentLayer: true,
},
});
8 changes: 0 additions & 8 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
"semiColons": true,
"singleQuote": true,
"proseWrap": "preserve",
"options": {
"useTabs": true,
"lineWidth": 120,
"indentWidth": 2,
"semiColons": true,
"singleQuote": true,
"proseWrap": "preserve"
},
"include": ["src/", "./**/*.ts"]
},
"unstable": ["byonm", "fmt-component"]
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { author } = siteConfig;
id="pdf"
class="download pdf"
href="resume/download/pdf"
download=`${author} Resume`
download={author + " Resume"}
title="download pdf"
data-astro-preload="hover"
>
Expand All @@ -25,7 +25,7 @@ const { author } = siteConfig;
id="word"
class="download word"
href="resume/download/docx"
download=`${author} Resume`
download={author + " Resume"}
title="download word"
data-astro-preload="hover"
>
Expand Down
6 changes: 3 additions & 3 deletions src/components/PWA.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<svelte:options runes />
<script lang="ts">
import website from "@/website.config";
import website from '@/website.config';
</script>

<svelte:head>
<meta name="theme-color" content={website.themeColor} />
<link rel="apple-touch-icon" href="/images/profile.png" />
<meta name="theme-color" content={website.themeColor} />
<link rel="apple-touch-icon" href="/images/profile.png" />
</svelte:head>
102 changes: 51 additions & 51 deletions src/components/SEO/OpenGraph.svelte
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
<svelte:options runes />
<script lang="ts">
const {
article = false,
datePublished,
lastUpdated,
facebookAuthorPage = "",
facebookPage = "",
image,
squareImage,
metadescription,
ogLanguage,
pageTitle,
siteTitle,
url,
}: {
article: boolean;
datePublished: string;
lastUpdated: string;
facebookAuthorPage?: string;
facebookPage?: string;
image: { url: string; alt: string };
squareImage: { url: string; alt: string };
metadescription: string;
ogLanguage: string;
pageTitle: string;
siteTitle: string;
url: string;
} = $props();
const {
article = false,
datePublished,
lastUpdated,
facebookAuthorPage = '',
facebookPage = '',
image,
squareImage,
metadescription,
ogLanguage,
pageTitle,
siteTitle,
url,
}: {
article: boolean;
datePublished: string;
lastUpdated: string;
facebookAuthorPage?: string;
facebookPage?: string;
image: { url: string; alt: string };
squareImage: { url: string; alt: string };
metadescription: string;
ogLanguage: string;
pageTitle: string;
siteTitle: string;
url: string;
} = $props();
</script>

<svelte:head>
<meta property="og:site_name" content={siteTitle} />
<meta property="og:locale" content={ogLanguage} />
<meta property="og:url" content={url} />
<meta property="og:type" content={article ? "article" : "website"} />
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={metadescription} />
{#if image}
<meta property="og:image" content={image.url} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="627" />
<meta property="og:image:alt" content={image.alt} />
{/if}
{#if squareImage}
<meta property="og:image" content={squareImage.url} />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="400" />
<meta property="og:image:alt" content={squareImage.alt} />
{/if}
{#if article}
<meta property="article:publisher" content={facebookPage} />
<meta property="article:author" content={facebookAuthorPage} />
<meta property="article:published_time" content={datePublished} />
<meta property="article:modified_time" content={lastUpdated} />
{/if}
<meta property="og:site_name" content={siteTitle} />
<meta property="og:locale" content={ogLanguage} />
<meta property="og:url" content={url} />
<meta property="og:type" content={article ? 'article' : 'website'} />
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={metadescription} />
{#if image}
<meta property="og:image" content={image.url} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="627" />
<meta property="og:image:alt" content={image.alt} />
{/if}
{#if squareImage}
<meta property="og:image" content={squareImage.url} />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="400" />
<meta property="og:image:alt" content={squareImage.alt} />
{/if}
{#if article}
<meta property="article:publisher" content={facebookPage} />
<meta property="article:author" content={facebookAuthorPage} />
<meta property="article:published_time" content={datePublished} />
<meta property="article:modified_time" content={lastUpdated} />
{/if}
</svelte:head>
Loading

0 comments on commit cfbc938

Please sign in to comment.