Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NodeTypes/Document/Document.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ prototype(Neos.Demo:Document) < prototype(Neos.Fusion:Component) {
site = Neos.Demo:Presentation.Javascript
}
metadata = '<meta name="viewport" content="width=device-width, initial-scale=1.0">'
favicons = Neos.Demo:Presentation.Favicons
structuredData = ${props.structuredData}
}
body = ${props.content}
Expand Down
12 changes: 12 additions & 0 deletions Resources/Private/Fusion/Presentation/Favicons.fusion
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prototype(Neos.Demo:Presentation.Favicons) < prototype(Neos.Fusion:Component) {

packageKey = "Neos.Demo"

renderer = afx`
<link rel="icon" sizes="48x48" href={StaticResource.uri(props.packageKey, 'Public/Assets/Favicons/favicon.ico')} />
<link rel="icon" type="image/svg" sizes="111x125" href={StaticResource.uri(props.packageKey, 'Public/Assets/Favicons/favicon.svg')} />
<link rel="manifest" href={StaticResource.uri(props.packageKey, 'Public/Assets/Favicons/site.webmanifest')} />
<meta name="msapplication-TileColor" content="#2d89ef" />
<meta name="theme-color" content="#ffffff" />
`
}
9 changes: 9 additions & 0 deletions Resources/Public/Assets/Favicons/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square111x125logo src="/favicon.svg"/>
<TileColor>#00adee</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added Resources/Public/Assets/Favicons/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions Resources/Public/Assets/Favicons/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Resources/Public/Assets/Favicons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Neos",
"short_name": "Neos",
"prefer_related_applications": true,
"icons": [
{
"src": "/favicon.ico",
"sizes": "48x48",
"type": "image/ico"
},
{
"src": "/favicon.svg",
"sizes": "111x125",
"type": "image/svg"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff"
}