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