Skip to content

Commit 465c1d2

Browse files
committed
link to spelling error with anchor text. add "read article" link.
1 parent 2a44959 commit 465c1d2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,17 +458,22 @@ <h1 class="text-xl">Articles</h1>
458458
class="px-3 py-3 max-w-prose truncate"></td>
459459
<td x-text="`${dateLabel(article.lastmod)}`" class="px-3 py-3 text-xs whitespace-nowrap"></td>
460460
<td x-text="`${lastCheckLabel(article)}`" class="px-3 py-3 text-xs whitespace-nowrap"></td>
461-
<td class="p-3">
462-
<a :href="article.editUrl" target="_blank" x-on:click.stop="">
461+
<td class="p-3 whitespace-nowrap">
462+
<a :href="article.editUrl" target="_blank" title="Edit article" x-on:click.stop="" class="inline-block">
463+
<svg class="feather-icon hover:stroke-amber-600 stroke-stone-500" style="width: 20px; height: 20px;"><use href="feather-sprite.svg#edit"/></svg>
464+
</a>
465+
<a :href="article.url" target="_blank" title="Read article" x-on:click.stop="" class="inline-block">
463466
<svg class="feather-icon hover:stroke-amber-600 stroke-stone-500" style="width: 20px; height: 20px;"><use href="feather-sprite.svg#external-link"/></svg>
464467
</a>
465468
</td>
466469
</tr>
467470
<tr class="even:bg-zinc-600 select-none"
468471
x-show="article.context.length > 0">
469-
<td colspan="4"
470-
x-html="`${article.context}`"
472+
<td colspan="4"
471473
class="px-3 py-3 text-sm finding-context">
474+
<a :href="article.url + '#:~:text=' + article.context.replace(/<em>/, '').replace(/<\/em>/, '')" target="_blank" title="View article with error highlighted">
475+
<span x-html="`${article.context}`"></span>
476+
</a>
472477
</td>
473478
</tr>
474479
</tbody>

0 commit comments

Comments
 (0)