Only link to gpg key if it exists in the filesystem #5

Merged
jonny merged 1 commit from stop_hardcoding_gpg_key into develop 2024-08-23 19:31:01 +02:00
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View file

@ -21,3 +21,4 @@ yarn-error.log
/.idea
/.vscode
ray.php
/public/gpg.key

View file

@ -20,7 +20,9 @@
<link rel="micropub" href="{{ route('micropub-endpoint') }}">
<link rel="webmention" href="{{ config('app.url') }}/webmention">
<link rel="shortcut icon" href="{{ config('app.url') }}/assets/img/memoji-orange-bg-small-fs8.png">
<link rel="pgpkey" href="/assets/jonnybarnes-public-key-ecc.asc">
@if (File::exists(public_path('gpg.key')))
<link rel="pgpkey" href="{{ config('app.url')}}/gpg.key">
@endif
</head>
<body class="grid">
<header id="site-header">