-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from Kyutech-C3/seo
SEO 対策
- Loading branch information
Showing
15 changed files
with
220 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
" | ||
:src="image.url" | ||
alt="asset image" | ||
loading="lazy" | ||
/> | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ export default { | |
{ | ||
name: 'copyright', | ||
content: | ||
'© 2022' + new Date().getFullYear() + ' Composite Computer Club' | ||
'© 2022 - ' + new Date().getFullYear() + ' Composite Computer Club' | ||
}, | ||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
{ | ||
|
@@ -56,6 +56,11 @@ export default { | |
{ | ||
rel: 'stylesheet', | ||
href: 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200' | ||
}, | ||
{ | ||
hid: 'canonical', | ||
rel: 'canonical', | ||
href: 'https://toybox.compositecomputer.club/' | ||
} | ||
] | ||
}, | ||
|
@@ -99,7 +104,8 @@ export default { | |
}, | ||
debug: true | ||
} | ||
] | ||
], | ||
'@nuxtjs/sitemap' | ||
], | ||
|
||
// Modules: https://go.nuxtjs.dev/config-modules | ||
|
@@ -159,6 +165,27 @@ export default { | |
} | ||
}, | ||
|
||
sitemap: { | ||
hostname: process.env.BASE_URL, | ||
defaults: { | ||
lastmod: new Date(), | ||
changefreq: 'always' | ||
}, | ||
cacheTime: 1000 * 60 * 60 * 24, | ||
exclude: ['/tmp', '/login', '/discord', '/works/create', '/works/*/edit'], | ||
async routes() { | ||
return Promise.all([ | ||
await axios.get(process.env.API_URL + '/users?limit=9999'), | ||
await axios.get(process.env.API_URL + '/works?limit=9999') | ||
]).then(([users, works]) => { | ||
const urls = [] | ||
users.data.map((user) => urls.push({ route: `/users/${user.id}` })) | ||
works.data.map((work) => urls.push({ route: `/works/${work.id}` })) | ||
return urls | ||
}) | ||
} | ||
}, | ||
|
||
generate: { | ||
fallback: true, | ||
async routes() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.