๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
"๊ณต๋ถ€" ๐‘Ÿ๐‘’๐‘๐‘œ๐‘Ÿ๐‘‘/๐น๐‘Ÿ๐‘œ๐‘›๐‘ก๐‘’๐‘›๐‘‘

Github Pages ๋ฐฐํฌ ์‹œ favicon ์ ์šฉ ์•ˆ๋˜๋Š” ์ด์Šˆ

by เท† Yoni เท† 2022. 4. 12.
728x90

์ตœ๊ทผ React๋กœ ๊ฐ„๋‹จํ•˜๊ฒŒ ์œ ํŠœ๋ธŒ ํด๋ก  ํ”„๋กœ์ ํŠธ๋ฅผ ํ•ด๋ณด์•˜๋‹ค.
Github Pages๋ฅผ ํ†ตํ•ด ํ”„๋กœ์ ํŠธ ๋ฐฐํฌ๋ฅผ ํ–ˆ๋Š”๋ฐ
favicon์ด ์ ์šฉ๋˜์ง€ ์•Š๋Š” ์ด์Šˆ๋ฅผ ๊ฒช์—ˆ๋‹ค.

์ด ๊ธ€์„ ํ†ตํ•ด
ํ•ด๋‹น ์ด์Šˆ๋ฅผ ํ•ด๊ฒฐํ•œ ๋ฐฉ๋ฒ•์„ ์ ์–ด๋ณด๋ ค ํ•œ๋‹ค.

์ผ๋‹จ ์ฒ˜์Œ์— ๋‚˜๋Š” public ๋””๋ ‰ํ† ๋ฆฌ ์†์—
favicon.ico๋ฅผ ๋„ฃ์–ด๋‘์—ˆ๋‹ค.

index.html ํŒŒ์ผ์˜ link ํƒœ๊ทธ๋„ ๊ณ ์ณ๋ณด๊ณ ,
๊ฐ€๋” favicon ์ ์šฉ์— ๋ฌธ์ œ๊ฐ€ ์žˆ์œผ๋ฉด
์ฟ ํ‚ค ๋ฌธ์ œ์ผ ๋•Œ๊ฐ€ ์žˆ์–ด์„œ ์ฟ ํ‚ค๋ฅผ ์‚ญ์ œํ•˜๊ณ  ๋‹ค์‹œ ํ•ด๋ดค์ง€๋งŒ
์—ฌ์ „ํžˆ ๊ณ ์ณ์ง€์ง€ ์•Š์•˜๋‹ค...

๊ทธ๋Ÿฌ๋‹ค๊ฐ€ stackoverflow๋ฅผ ํ†ตํ•ด
ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์„ ์ฐพ๊ฒŒ ๋˜์—ˆ๋‹ค.

 

Favicon with GitHub Pages

I'm hosting a few sites with GitHub Pages (User and Project Pages), but they are not displaying their favicons (in the browser). <link rel="shortcut icon" type="image/png" href="/favicon.png"&g...

stackoverflow.com


ํ”„๋กœ์ ํŠธ์˜ root ๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๋Š”
index.html ์ฝ”๋“œ ์†์— favicon์„ ์„ค์ •ํ•˜๋Š” link ํƒœ๊ทธ๋ฅผ

 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico?">

์ด์™€ ๊ฐ™์ด ์„ค์ •ํ•˜๊ณ  ๊ฐ™์€ root ๋””๋ ‰ํ† ๋ฆฌ์—
favicon.ico ํŒŒ์ผ์„ ์œ„์น˜์‹œ์ผœ์•ผ ํ•œ๋‹ค๋Š” ๊ฒƒ์ด๋‹ค.

๋‚˜๋Š” ๋ฐ”๋ณด๊ฐ™์ด public ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ
ํ˜ผ์ž ๋‚œ๋ฆฌ๋ถ€๋ฅด์Šค๋ฅผ ์น˜๊ณ  ์žˆ์—ˆ๋‹ค ใ…Žใ…Ž... ใ… ใ… 

์•„๋ฌดํŠผ ํ•ด๊ฒฐ ์™„๋ฃŒ เฅช 'ฺก' เฅช
๋‚˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๋ฅผ ๊ฒช๊ณ  ์žˆ๋Š”๋ถ„๋“ค์—๊ฒŒ ๋„์›€์ด ๋˜๊ธธ !!

728x90

๋Œ“๊ธ€