Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit ba9e359

Browse files
committed
Added comments highlighting the difference between n-link's and a's
1 parent 62f51d6 commit ba9e359

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

layouts/default.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
<template>
22
<div class="layout">
33
<div class="header">
4+
<!-- This link is an n-link because it links to another Nuxt route -->
45
<n-link class="logo" to="/"><logo/></n-link>
56
</div>
67
<nuxt />
78
<div class="footer">
89
<div class="footer-inner">
910
<p>
11+
<!-- This link is not an n-link because it is external -->
1012
<a target="_blank"
1113
rel="noopener noreferrer"
1214
href="https://github.com/tylermercer/nuxt-netlifycms-boilerplate">
1315
View this project on Github
1416
</a>
1517
</p>
1618
<p>
17-
<n-link to="/admin">
19+
<!-- This is not an n-link because the NetlifyCMS admin page is static.
20+
If you make it an n-link, you'll get a "Page could not be found" when
21+
you click it. -->
22+
<a href="/admin">
1823
NetlifyCMS Admin Login
19-
</n-link>
24+
</a>
2025
</p>
2126
</div>
2227
</div>

0 commit comments

Comments
 (0)