fixed _GithubSource.tsx
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Struchkov Mark 2024-09-05 02:11:45 +03:00
parent 5ec339cc4c
commit 656af4a884
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -23,21 +23,21 @@ export default ((opts?: Partial<GithubSourceOptions>) => {
}: QuartzComponentProps) => {
return (
<div class={classNames(displayClass, "github-source")}>
<h3>Source code</h3>
<h3>Исходники заметки</h3>
<ul>
<li>
<a href={`${options?.repoLink}/blob/${options?.branch}/${fileData.filePath!}`}>
Source
<a href={`${options?.repoLink}/blob/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} className="external">
Редактировать
</a>
</li>
<li>
<a href={`${options?.repoLink}/blame/${options?.branch}/${fileData.filePath!}`}>
<a href={`${options?.repoLink}/blame/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} class="external">
Blame
</a>
</li>
<li>
<a href={`${options?.repoLink}/commits/${options?.branch}/${fileData.filePath!}`} class="external">
GitHistory
<a href={`${options?.repoLink}/commits/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} class="external">
История изменений
</a>
<svg
class="external-icon"