-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance(frontend): 個別お知らせページではmetaタグを出力するように (#14902)
* enhance(frontend): 個別お知らせページではmetaタグを出力するように * Update Changelog
- Loading branch information
1 parent
5b60ae8
commit e75b62f
Showing
5 changed files
with
62 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
extends ./base | ||
|
||
block vars | ||
- const title = announcement.title; | ||
- const description = announcement.text.length > 100 ? announcement.text.slice(0, 100) + '…' : announcement.text; | ||
- const url = `${config.url}/announcements/${announcement.id}`; | ||
|
||
block title | ||
= `${title} | ${instanceName}` | ||
|
||
block desc | ||
meta(name='description' content=description) | ||
|
||
block og | ||
meta(property='og:type' content='article') | ||
meta(property='og:title' content= title) | ||
meta(property='og:description' content= description) | ||
meta(property='og:url' content= url) | ||
if announcement.imageUrl | ||
meta(property='og:image' content=announcement.imageUrl) | ||
meta(property='twitter:card' content='summary_large_image') |
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