Skip to content

Commit

Permalink
ensure no duplication in all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcwilson committed Sep 13, 2020
1 parent 5c1d3d7 commit 484b8fd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions content/dev/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ layout: docs
---

Store owners, please also see [storeowner docs](/user/).

Not a developer yet? Don't worry - all these skills are learnable. [Start here](/user/first_steps/learning_trails/) and work your way to [Learn Zen Cart Development](/user/first_steps/learning_trails/#learn-zen-cart-development). Then jump in - with your [first PR](/dev/contributing/) or [first plugin](/dev/plugins/)!
2 changes: 1 addition & 1 deletion content/user/_allpages.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Zen Cart Storeowner Documentation - All FAQs
description: All FAQs View for Zen Cart User Documentation
linkTitle: Storeowner Docs - All Pages
layout: allpages
index: false
noindex: true
---

**Note:** [Admin Menu Sections](/user/admin_pages/menu_sections/) are not shown in this view.
Expand Down
2 changes: 1 addition & 1 deletion content/user/admin_pages/menu_sections.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Admin menu sections
description: All admin menus
category: admin_pages
weight: 1
index: false
noindex: true
---

### [Configuration](/user/admin_pages/configuration/)
Expand Down
2 changes: 1 addition & 1 deletion content/user/all_time_favorites/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: All Time Favorites
description: Frequently asked questions about Zen Cart
weight: 10
index: false
noindex: true
layout: docs
---

Expand Down
2 changes: 1 addition & 1 deletion content/user/products/product_info.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Product Info page
title: What is the Product Info page?
description: The add to cart page
category: products
weight: 10
Expand Down
4 changes: 3 additions & 1 deletion layouts/user/allpages.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ <h1>{{ .Title }}</h1>
{{ if (eq .Section "user") }}
{{ if (ne .Params.Category "admin_pages") }}
{{ if not .Params.noindex }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ if not .Params.url }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
Expand Down

0 comments on commit 484b8fd

Please sign in to comment.