-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.js
56 lines (51 loc) · 1.29 KB
/
header.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Configuration for the header component on all pages
// ----------- imports -----------
import { getPermalink, getBlogPermalink } from '~/utils/permalinks';
// ----------- imports -----------
const headerData = {
// List of links to be displayed in the header
links: [
{
text: 'Pages',
links: [
{
text: 'About',
href: getPermalink('/about'),
},
{
text: 'Contact',
href: getPermalink('/contact'),
},
{
text: 'Team',
href: getPermalink('/team'),
},
{
text: 'Gallery',
href: getPermalink('/gallery'),
},
],
},
// The blog link is a special case, it uses the getBlogPermalink function
{
text: 'Blog',
href: getBlogPermalink(),
},
],
// List of buttons to be displayed in the header
// actions: [
// {
// // text to display on the button
// text: 'Download',
// // link to go to when the button is clicked
// href: 'https://github.com/grantbirki/astrowind',
// // can be 'button', 'primary', or 'ghost'
// type: 'button',
// // HTML rel attribute
// rel: '',
// // HTML target attribute
// target: '_blank',
// },
// ],
};
export default headerData;