8000 feat: support rel in footer (#889) · nuxtlabs/docus@f86c37d · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit f86c37d

Browse files
Barbapapazesatinux
andauthored
feat: support rel in footer (#889)
Co-authored-by: Sébastien Chopin <seb@nuxtlabs.com>
1 parent b070cce commit f86c37d

File tree

2 files changed

+62
-59
lines changed

2 files changed

+62
-59
lines changed

.docs/content/1.introduction/4.configuration.md

Lines changed: 61 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ export default defineAppConfig({
4848
},
4949
textLinks: [
5050
{
51-
text: 'NuxtJS',
52-
href: 'https://nuxtjs.org',
53-
target: '_blank'
51+
text: 'Nuxt',
52+
href: 'https://nuxt.com',
53+
target: '_blank',
54+
rel: 'noopener'
5455
}
5556
],
5657
iconLinks: [
@@ -72,59 +73,60 @@ export default defineAppConfig({
7273

7374
::
7475

75-
| **Key** | **Type** | **Default** | **Description** |
76-
| ---------------------------- | ---------- | ---------------- | ------------------------------------------------------------------- |
77-
| `title` | `string` | Docus | Website title |
78-
| `titleTemplate` | `string` | Docus | Website title template |
79-
| `description` | `string` | My Docus Project | Website description |
80-
| `url` | `string` | | Website URL |
81-
| `layout` | `string` | default | Fallback layout to use (supports `default` or `page`) |
82-
| **Socials** | | | |
83-
| `socials` | `object` | `{}` | Social links |
84-
| `socials.github` | `string` | | The repository to use on GitHub links |
85-
| `socials.twitter` | `string` | | The account to use on Twitter links |
86-
| `socials.youtube` | `string` | | The channel to use on Youtube links |
87-
| `socials.instagram` | `string` | | The account to use on Instagram links |
88-
| `socials.facebook` | `string` | | The account to use on Facebook links |
89-
| `socials.medium` | `string` | | The account to use on Medium links |
90-
| `socials.[social]` | `object` | | Override social or display custom one |
91-
| `socials.[social].label` | `string` | | A label to use for the social |
92-
| `socials.[social].icon` | `string` | | A icon to use for the social |
93-
| `socials.[social].href` | `string` | | A link to use for the social |
94-
| **Header** | | | |
95-
| `header` | `object` | | Header configuration |
96-
| `header.logo` | `boolean` | | Whether or not to use `Logo.vue` as the header logo |
97-
| `header.title` | `string` | | If set to a string, will be used in the header |
98-
| `header.showLinkIcon` | `boolean` | | If set to `true` links icons will show in the header |
99-
| `header.exclude` | `string[]` | | An array of path to exclude out from the header navigation |
100-
| `header.fluid` | `boolean` | `true` | Make header `Container` fluid |
101-
| **Main** | | | |
102-
| `main` | `object` | | Main configuration |
103-
| `main.fluid` | `boolean` | `true` | Make main content `Container` fluid |
104-
| `main.padded` | `boolean` | `true` | Make main content `Container` padded |
105-
| **Aside** | | | |
106-
| `aside` | `object` | | Aside configuration |
107-
| `aside.level` | `string` | 0 | Aside base level of nesting |
108-
| `aside.collapsed` | `boolean` | | Will be used as default value for collapsible navigation categories |
109-
| `aside.exclude` | `string[]` | | An array of path to exclude out from the aside navigation |
110-
| **Footer** | | | |
111-
| `footer` | `object` | | Footer configuration |
112-
| `footer.credits` | `object` | | An object defining the bottom left credits |
113-
| `footer.credits.icon` | `object` | | The icon to use for the credits |
114-
| `footer.credits.text` | `object` | | The text to use for the credits |
115-
| `footer.textLinks` | `array` | `[]` | An array of texts to display at the center of footer |
116-
| `footer.textLinks[0].text` | `string` | | The text to display |
117-
| `footer.textLinks[0].href` | `string` | | A link to use for the text |
118-
| `footer.textLinks[0].target` | `string` | `_self` | Where to display the linked URL, as the name for a browsing context |
119-
| `footer.iconLinks` | `array` | `[]` | An array of icons to display in the footer |
120-
| `footer.iconLinks[0].label` | `string` | | A label to use for the icon |
121-
| `footer.iconLinks[0].href` | `string` | | A link to use for the icon |
122-
| `footer.iconLinks[0].icon` | `string` | | The icon to use (can be a component name) |
123-
| `footer.fluid` | `boolean` | `true` | Make footer `Container` fluid |
124-
| **GitHub** | | | |
125-
| `github` | `object` | `false` | GitHub integration configuration |
126-
| `github.dir` | `string` | | Directory containing the files to be edited |
127-
| `github.branch` | `string` | | Branch to start editing |
128-
| `github.repo` | `string` | | Name of the GitHub repo to edit files |
129-
| `github.owner` | `string` | | Owner of the repo |
130-
| `github.edit` | `boolean` | | Toggle "Edit this page on Github" component on documentation pages |
76+
| **Key** | **Type** | **Default** | **Description** |
77+
| ---------------------------- | ---------- | ---------------- | ---------------------------------------------------------------------------------------------------- |
78+
| `title` | `string` | Docus | Website title |
79+
| `titleTemplate` | `string` | Docus | Website title template |
80+
| `description` | `string` | My Docus Project | Website description |
81+
| `url` | `string` | | Website URL |
82+
| `layout` | `string` | default | Fallback layout to use (supports `default` or `page`) |
83+
| **Socials** | | | |
84+
| `socials` | `object` | `{}` | Social links |
85+
| `socials.github` | `string` | | The repository to use on GitHub links |
86+
| `socials.twitter` | `string` | | The account to use on Twitter links |
87+
| `socials.youtube` | `string` | | The channel to use on Youtube links |
88+
| `socials.instagram` | `string` | | The account to use on Instagram links |
89+
| `socials.facebook` | `string` | | The account to use on Facebook links |
90+
| `socials.medium` | `string` | | The account to use on Medium links |
91+
| `socials.[social]` | `object` | | Override social or display custom one |
92+
| `socials.[social].label` | `string` | | A label to use for the social |
93+
| `socials.[social].icon` | `string` | | A icon to use for the social |
94+
| `socials.[social].href` | `string` | | A link to use for the social |
95+
| **Header** | | | |
96+
| `header` | `object` | | Header configuration |
97+
| `header.logo` | `boolean` | | Whether or not to use `Logo.vue` as the header logo |
98+
| `header.title` | `string` | | If set to a string, will be used in the header |
99+
| `header.showLinkIcon` | `boolean` | | If set to `true` links icons will show in the header |
100+
| `header.exclude` | `string[]` | | An array of path to exclude out from the header navigation |
101+
| `header.fluid` | `boolean` | `true` | Make header `Container` fluid |
102+
| **Main** | | | |
103+
| `main` | `object` | | Main configuration |
104+
| `main.fluid` | `boolean` | `true` | Make main content `Container` fluid |
105+
| `main.padded` | `boolean` | `true` | Make main content `Container` padded |
106+
| **Aside** | | | |
107+
| `aside` | `object` | | Aside configuration |
108+
| `aside.level` | `string` | 0 | Aside base level of nesting |
109+
| `aside.collapsed` | `boolean` | | Will be used as default value for collapsible navigation categories |
110+
| `aside.exclude` | `string[]` | | An array of path to exclude out from the aside navigation |
111+
| **Footer** | | | |
112+
| `footer` | `object` | | Footer configuration |
113+
| `footer.credits` | `object` | | An object defining the bottom left credits |
114+
| `footer.credits.icon` | `object` | | The icon to use for the credits |
115+
| `footer.credits.text` | `object` | | The text to use for the credits |
116+
| `footer.textLinks` | `array` | `[]` | An array of texts to display at the center of footer |
117+
| `footer.textLinks[0].text` | `string` | | The text to display |
118+
| `footer.textLinks[0].href` | `string` | | A link to use for the text |
119+
| `footer.textLinks[0].target` | `string` | `_self` | Where to display the linked URL, as the name for a browsing context |
120+
| `footer.textLinks[0].rel` | `string` | | A space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types) |
121+
| `footer.iconLinks` | `array` | `[]` | An array of icons to display in the footer |
122+
| `footer.iconLinks[0].label` | `string` | | A label to use for the icon |
123+
| `footer.iconLinks[0].href` | `string` | | A link to use for the icon |
124+
| `footer.iconLinks[0].icon` | `string` | | The icon to use (can be a component name) |
125+
| `footer.fluid` | `boolean` | `true` | Make footer `Container` fluid |
126+
| **GitHub** | | | |
127+
| `github` | `object` | `false` | GitHub integration configuration |
128+
| `github.dir` | `string` | | Directory containing the files to be edited |
129+
| `github.branch` | `string` | | Branch to start editing |
130+
| `github.repo` | `string` | | Name of the GitHub repo to edit files |
131+
| `github.owner` | `string` | | Owner of the repo |
132+
| `github.edit` | `boolean` | | Toggle "Edit this page on Github" component on documentation pages |

components/app/AppFooter.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const nbSocialIcons = computed(() => (socialIcons.value ? socialIconsCount.value
2727
:aria-label="link.text"
2828
:href="link.href"
2929
:target="link.target || '_self'"
30+
:rel="link.rel"
3031
>
3132
{{ link.text }}
3233
</NuxtLink>

0 commit comments

Comments
 (0)
0