Add blueprints and a navigation bar snippet for generating a primary navigation bar of pages.
This commit is contained in:
24
blueprints/fields/link-location.yml
Normal file
24
blueprints/fields/link-location.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
type: fields
|
||||
|
||||
fields:
|
||||
linkLocation:
|
||||
label: Link Location
|
||||
type: select
|
||||
options:
|
||||
type: query
|
||||
query: site.linkLocations.toStructure
|
||||
text: "{{ item.description }}"
|
||||
value: "{{ item.location }}"
|
||||
linkIndex:
|
||||
label: Link Position
|
||||
type: number
|
||||
min: 1
|
||||
default: 10
|
||||
linkText:
|
||||
label: Link Text
|
||||
help: Custom link text to use instead of the title.
|
||||
type: text
|
||||
linkIcon:
|
||||
label: Link Icon
|
||||
help: Font Awesome icon that is used for the link text.
|
||||
type: text
|
||||
15
blueprints/fields/link-locations.yml
Normal file
15
blueprints/fields/link-locations.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
type: fields
|
||||
|
||||
fields:
|
||||
linkLocations:
|
||||
label: Link Locations
|
||||
type: structure
|
||||
fields:
|
||||
description:
|
||||
label: Location Description
|
||||
type: text
|
||||
help: A friendly description for selecting this location on pages.
|
||||
location:
|
||||
label: Location Key
|
||||
type: text
|
||||
help: This is what is used when finding links for this location.
|
||||
Reference in New Issue
Block a user