repos / neovimcraft

website that makes it easy to find neovim plugins
git clone https://github.com/neurosnap/neovimcraft.git

commit
469a633
parent
975edc2
author
Benedikt Müller
date
2022-01-06 21:02:20 +0000 UTC
Remove target attributes from all links (#22)

Ok sounds reasonable
6 files changed,  +13, -13
M src/lib/nav.svelte
+1, -1
1@@ -22,7 +22,7 @@
2 <div class="nav">
3   <h1 id="logo">
4     <a href="/" class="logo-header">neovimcraft</a>
5-    <a href="https://github.com/neurosnap/neovimcraft" class="gh" target="_blank">
6+    <a href="https://github.com/neurosnap/neovimcraft" class="gh">
7       <Icon icon="github" />
8     </a>
9   </h1>
M src/lib/plugin-view.svelte
+2, -2
 1@@ -53,13 +53,13 @@
 2   </div>
 3   {#if isPlugin}
 4     <div class="install">
 5-      <h3><a href="https://github.com/wbthomason/packer.nvim" target="_blank">packer</a></h3>
 6+      <h3><a href="https://github.com/wbthomason/packer.nvim">packer</a></h3>
 7       <pre><code>require('packer').startup(function()
 8   use '{plugin.id}'
 9 end)</code></pre>
10     </div>
11     <div class="install">
12-      <h3><a href="https://github.com/savq/paq-nvim" target="_blank">paq</a></h3>
13+      <h3><a href="https://github.com/savq/paq-nvim">paq</a></h3>
14       <pre><code>require "paq" &lcub; 
15   '{plugin.id}'
16 &rcub;</code></pre>
M src/lib/plugin.svelte
+1, -1
1@@ -16,7 +16,7 @@
2     </h2>
3     <div class="metrics">
4       <Tooltip tip="github repo" bottom>
5-        <a href={plugin.link} target="_blank"><Icon icon="github" /></a>
6+        <a href={plugin.link}><Icon icon="github" /></a>
7       </Tooltip>
8       <Tooltip tip="stars" bottom>
9         <div class="metric-item"><Icon icon="star" /> <span>{plugin.stars}</span></div>
M src/routes/about.svelte
+5, -5
 1@@ -24,13 +24,13 @@
 2       </p>
 3       <p>
 4         I also care deeply about open-source code and have an active{' '}
 5-        <a href="https://github.com/neurosnap" target="_blank">Github</a>
 6+        <a href="https://github.com/neurosnap">Github</a>
 7         , check it out if you&apos;re interested. I also write{' '}
 8-        <a href="https://erock.io" target="_blank">blog articles about software</a>.
 9+        <a href="https://erock.io">blog articles about software</a>.
10       </p>
11       <p>
12         I&apos;m happy to read feedback about neovim craft so please feel free to{' '}
13-        <a href="mailto:neovimcraft@erock.io" target="_blank">email me</a>.
14+        <a href="mailto:neovimcraft@erock.io">email me</a>.
15       </p>
16     </div>
17     <div>
18@@ -41,7 +41,7 @@
19         As of right now, most of our data is scraped from github. You can find our scrape script
20         <a
21           href="https://github.com/neurosnap/neovimcraft/blob/main/scripts/scrape.ts"
22-          target="_blank">here</a
23+         >here</a
24         >.
25       </p>
26       <h3>How can I submit a plugin or resource to this project?</h3>
27@@ -49,7 +49,7 @@
28         The easiest way is to submit a PR that adds the resource to our
29         <a
30           href="https://github.com/neurosnap/neovimcraft/blob/main/src/lib/resources.json"
31-          target="_blank">resources.json file</a
32+         >resources.json file</a
33         >.
34       </p>
35     </div>
M src/routes/guides.svelte
+2, -2
 1@@ -63,14 +63,14 @@
 2               allowfullscreen
 3             />
 4           {:else}
 5-            <a href={link.url} target="_blank">
 6+            <a href={link.url}>
 7               <img src={link.media} alt={link.text} class="media" />
 8             </a>
 9           {/if}
10         {/if}
11         <div class="article-header">
12           <h2>
13-            <a href={link.url} target="_blank">{link.text}</a>
14+            <a href={link.url}>{link.text}</a>
15           </h2>
16           <small class="date">{format(link.date)}</small>
17           <div class="tags">
M src/routes/plugin/[username]/[repo].svelte
+2, -2
 1@@ -52,8 +52,8 @@
 2   <div class="view">
 3     <div class="header">
 4       <h1>{plugin.id}</h1>
 5-      {#if plugin.homepage}<a href={plugin.homepage} target="_blank">website</a>{/if}
 6-      <a href={plugin.link} target="_blank"><Icon icon="github" /> <span>github</span></a>
 7+      {#if plugin.homepage}<a href={plugin.homepage}>website</a>{/if}
 8+      <a href={plugin.link}><Icon icon="github" /> <span>github</span></a>
 9     </div>
10     <PluginView {plugin} {tags} {html} />
11   </div>