Skip to content

Commit 47ebc1d

Browse files
committed
fix: add rel="noopener noreferrer" to external links for improved security
1 parent ad8bd76 commit 47ebc1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/generate_site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def _safe_json(obj) -> str:
295295
<div class="p-4 flex flex-col gap-2 flex-1">
296296
<h3 class="font-bold text-lg">
297297
<template x-if="script.infourl">
298-
<a :href="script.infourl" target="_blank" class="text-red-600 dark:text-red-400 hover:underline flex items-center gap-1">
298+
<a :href="script.infourl" target="_blank" rel="noopener noreferrer" class="text-red-600 dark:text-red-400 hover:underline flex items-center gap-1">
299299
<span x-text="script.name"></span>
300300
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
301301
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4m-4-6l6 6m0 0l-6 6m6-6H9"/>

0 commit comments

Comments
 (0)