feat: add public pgp key
This commit is contained in:
parent
ef0fac10b6
commit
ca5aefc244
3 changed files with 65 additions and 9 deletions
|
|
@ -4,21 +4,23 @@
|
|||
import Icon from 'mdi-svelte';
|
||||
export let href: string;
|
||||
export let disableIcon = false;
|
||||
export let disablePrefetch = false;
|
||||
// svelte-ignore unused-export-let
|
||||
export let rel = '';
|
||||
|
||||
const internal = !href.startsWith('http');
|
||||
let spin = false;
|
||||
|
||||
// external props
|
||||
let props: Record<string,string|boolean> = {
|
||||
rel: "nofollow noreferrer noopener",
|
||||
target: "_blank"
|
||||
}
|
||||
if(internal) {
|
||||
if (internal) {
|
||||
// internal props
|
||||
props = {
|
||||
"sveltekit:prefetch": true
|
||||
if (!disablePrefetch ){
|
||||
props = {
|
||||
"sveltekit:prefetch": true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -27,9 +29,6 @@
|
|||
{...$$props}
|
||||
{...props}
|
||||
{href}
|
||||
on:mouseover={() => (spin = true)}
|
||||
on:focus={() => (spin = true)}
|
||||
on:mouseleave={() => (spin = false)}
|
||||
>
|
||||
{#if !disableIcon && !internal}
|
||||
<Icon path={internal ? mdiChevronRight : mdiLinkVariant} size="1rem" />
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
</script>
|
||||
|
||||
<script>
|
||||
import { mdiEmailEditOutline } from '@mdi/js';
|
||||
import { mdiEmailEditOutline, mdiKey } from '@mdi/js';
|
||||
import { mdiGithub } from '@mdi/js';
|
||||
import Icon from 'mdi-svelte';
|
||||
import Element from '$components/element.svelte';
|
||||
|
|
@ -23,7 +23,12 @@
|
|||
<ul>
|
||||
<ListItem>
|
||||
<Icon path={mdiEmailEditOutline} />
|
||||
E-Mail: <Link disableIcon href="mailto:me@daichendt.one">me@daichendt.one</Link>
|
||||
E-Mail: <Link disableIcon disablePrefetch href="mailto:me@daichendt.one">me@daichendt.one</Link>
|
||||
|
||||
<span style="margin-left: 4px;">
|
||||
<Icon path={mdiKey} size="1rem" />
|
||||
<Link href="/pub.key" disablePrefetch>GPG public key</Link>
|
||||
</span>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<Icon path={mdiGithub} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue