Skip to content

Commit

Permalink
inject top nav entry for resource
Browse files Browse the repository at this point in the history
  • Loading branch information
mustardamus committed Apr 9, 2019
1 parent f9a60a5 commit 8454a16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _templates/nuxt/page/inject-top-nav.ejs.t
Expand Up @@ -5,5 +5,5 @@ after: "inject:top-nav:entry"
skip_if: <%= 'to="/' + name %>
---
<nuxt-link to="/<% if(locals.subfolder) { %><%= subfolder + '/' %><% } %><%= name %>" class="navbar-item">
<%= name %>
<%= h.capitalize(name) %>
</nuxt-link><%= '\n' %>
9 changes: 9 additions & 0 deletions _templates/nuxt/resource/inject-top-nav.ejs.t
@@ -0,0 +1,9 @@
---
to: src/components/the-top-nav.vue
inject: true
after: "inject:top-nav:entry"
skip_if: <%= 'to="/' + namePlural %>
---
<nuxt-link to="/<%= namePlural %>" class="navbar-item">
<%= h.capitalize(namePlural) %>
</nuxt-link><%= '\n' %>

0 comments on commit 8454a16

Please sign in to comment.