@@ -51,6 +51,8 @@ const GREETING = `/*
5151
5252*/`
5353
54+ const CONSOLE_GREETING = "console.log('🟥🟥🟥🟥🟥🟥🟥\\n🟧🟧🟧🟧🟧🟧🟧\\n⬜️⬜️⬜️⬜️⬜️⬜️⬜️\\n🌸🌸🌸🌸🌸🌸🌸\\n🟪🟪🟪🟪🟪🟪🟪')"
55+
5456const HTML : React . FunctionComponent < {
5557 htmlAttributes : any
5658 headComponents : any
@@ -66,77 +68,78 @@ const HTML: React.FunctionComponent<{
6668 bodyAttributes,
6769 postBodyComponents
6870} ) => (
69- < html lang = "en" { ...htmlAttributes } >
70- < head >
71- < meta charSet = "utf-8" />
72- < meta httpEquiv = "x-ua-compatible" content = "ie=edge" />
73- < title > Juliette Pretot</ title >
74- < meta
75- name = "description"
76- content = "Creative, ambitious, and enterprising software engineer"
77- />
78- < meta
79- name = "viewport"
80- content = "width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"
81- />
82- < link
83- rel = "preload"
84- href = { FONTS . regular }
85- as = "font"
86- type = "font/woff2"
87- crossOrigin = "anonymous"
88- />
89- < link
90- rel = "preload"
91- href = { FONTS . bold }
92- as = "font"
93- type = "font/woff2"
94- crossOrigin = "anonymous"
95- />
96- < link
97- rel = "preload"
98- href = { FONTS . sans }
99- as = "font"
100- type = "font/woff2"
101- crossOrigin = "anonymous"
102- />
103- < meta name = "theme-color" content = "#101722" />
104- < link rel = "manifest" href = "/manifest.json" />
105- < meta name = "apple-mobile-web-app-capable" content = "yes" />
106- < meta
107- name = "apple-mobile-web-app-status-bar-style"
108- content = "black-translucent"
109- />
110- < link
111- rel = "apple-touch-icon"
112- sizes = "180x180"
113- href = "/favicons/apple-touch-icon-180x180.png"
114- />
115- < link
116- rel = "icon"
117- type = "image/png"
118- sizes = "32x32"
119- href = "/favicons/favicon-32x32.png"
120- />
121- < link rel = "shortcut icon" href = "/favicons/favicon.ico" />
122- < style
123- dangerouslySetInnerHTML = { {
124- __html : WEBFONTS
125- } }
126- />
127- < script
128- dangerouslySetInnerHTML = { {
129- __html : GREETING
130- } }
131- />
132- { headComponents }
133- </ head >
134- < body { ...bodyAttributes } >
135- { preBodyComponents }
136- < div id = "___gatsby" dangerouslySetInnerHTML = { { __html : body } } />
137- { postBodyComponents }
138- </ body >
139- </ html >
140- )
71+ < html lang = "en" { ...htmlAttributes } >
72+ < head >
73+ < meta charSet = "utf-8" />
74+ < meta httpEquiv = "x-ua-compatible" content = "ie=edge" />
75+ < title > Juliette Pretot</ title >
76+ < meta
77+ name = "description"
78+ content = "Creative, ambitious, and enterprising software engineer"
79+ />
80+ < meta
81+ name = "viewport"
82+ content = "width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"
83+ />
84+ < link
85+ rel = "preload"
86+ href = { FONTS . regular }
87+ as = "font"
88+ type = "font/woff2"
89+ crossOrigin = "anonymous"
90+ />
91+ < link
92+ rel = "preload"
93+ href = { FONTS . bold }
94+ as = "font"
95+ type = "font/woff2"
96+ crossOrigin = "anonymous"
97+ />
98+ < link
99+ rel = "preload"
100+ href = { FONTS . sans }
101+ as = "font"
102+ type = "font/woff2"
103+ crossOrigin = "anonymous"
104+ />
105+ < meta name = "theme-color" content = "#101722" />
106+ < link rel = "manifest" href = "/manifest.json" />
107+ < meta name = "apple-mobile-web-app-capable" content = "yes" />
108+ < meta
109+ name = "apple-mobile-web-app-status-bar-style"
110+ content = "black-translucent"
111+ />
112+ < link
113+ rel = "apple-touch-icon"
114+ sizes = "180x180"
115+ href = "/favicons/apple-touch-icon-180x180.png"
116+ />
117+ < link
118+ rel = "icon"
119+ type = "image/png"
120+ sizes = "32x32"
121+ href = "/favicons/favicon-32x32.png"
122+ />
123+ < link rel = "shortcut icon" href = "/favicons/favicon.ico" />
124+ < style
125+ dangerouslySetInnerHTML = { {
126+ __html : WEBFONTS
127+ } }
128+ />
129+ < script
130+ dangerouslySetInnerHTML = { {
131+ __html : GREETING
132+ } }
133+ />
134+ { headComponents }
135+ </ head >
136+ < body { ...bodyAttributes } >
137+ { preBodyComponents }
138+ < div id = "___gatsby" dangerouslySetInnerHTML = { { __html : body } } />
139+ { postBodyComponents }
140+ </ body >
141+ < script dangerouslySetInnerHTML = { { __html : CONSOLE_GREETING } } />
142+ </ html >
143+ )
141144
142145export default HTML
0 commit comments