Dev.YoungKyu
YoungKyu's Devlog
전체 방문자
오늘
어제
  • 분류 전체보기 N
    • 부스트캠프
    • iOS N
    • visionOS
    • Backend
    • 알고리즘
    • CS
    • Git
    • Python
    • 끄적끄적

블로그 메뉴

  • 홈
  • 🌝 티스토리 홈
  • ⭐️ 깃허브
  • 태그

공지사항

인기 글

최근 댓글

최근 글

태그

  • Swift5.7
  • Optional
  • swift
  • 알고리즘
  • ios
  • 소프트웨어 테스트
  • image
  • 오블완
  • 백준
  • jekyll
  • 모듈화
  • guard
  • ImageResource
  • CS
  • AVAudioSession
  • 부스트캠프
  • 티스토리챌린지
  • alamofire
  • if let
  • Git
  • constraint
  • boj
  • Python
  • 소프트웨어 공학
  • AutoLayout
  • 소프트웨어공학
  • SwiftUI
  • authenticationinterceptor
  • Concurrency
  • MVC

티스토리

hELLO · Designed By 정상우.
Dev.YoungKyu
[Jekyll] 블로그 아이콘 변경하기
끄적끄적

[Jekyll] 블로그 아이콘 변경하기

2022. 9. 11. 15:12

이 글은 TeXt theme 기준이므로 개인마다 조금씩 다를 수 있습니다.




0. 블로그 내꺼만들기

12


포스트를 하기에 앞서 블로그를 들어올때마다 기본스러운 UI들이 마음에 안들었다.

네비게이션부터 시작해 색상 등 마음에 안드는 것들 투성이었지만 우선 가장 눈에 띈 건 저 은행잎 파비콘이었다.

기본 파비콘이다보니 아직 내 블로그가 아닌 느낌

그래서 파비콘을 수정하기로 했다 !




1. 이미지 다운로드

1


우선 구글에서 원하는 이미지의 .png 확장자 파일을 다운받아야 합니다.

저는 Siri의 영롱한 디자인에 꽂혔습니다..




2. PNG to ICO

<!-- start favicons snippet, use https://realfavicongenerator.net/ -->
{%- include snippets/prepend-baseurl.html path='/assets/apple-touch-icon.png' -%}
<link rel="apple-touch-icon" sizes="180x180" href="{{ __return }}">

{%- include snippets/prepend-baseurl.html path='/assets/favicon-32x32.png' -%}
<link rel="icon" type="image/png" sizes="32x32" href="{{ __return }}">

{%- include snippets/prepend-baseurl.html path='/assets/favicon-16x16.png' -%}
<link rel="icon" type="image/png" sizes="16x16" href="{{ __return }}">

{%- include snippets/prepend-baseurl.html path='/assets/site.webmanifest' -%}
<link rel="manifest" href="{{ __return }}">

{%- include snippets/prepend-baseurl.html path='/assets/safari-pinned-tab.svg' -%}
<link rel="mask-icon" href="{{ __return }}" color="#fc4d50">

{%- include snippets/prepend-baseurl.html path='/assets/favicon.ico' -%}
<link rel="shortcut icon" href="{{ __return }}">

<meta name="msapplication-TileColor" content="#ffc40d">

{%- include snippets/prepend-baseurl.html path='/assets/browserconfig.xml' -%}
<meta name="msapplication-config" content="{{ __return }}">

<meta name="theme-color" content="#ffffff">
<!-- end favicons snippet -->

includes/head/favicon.html 에 가보면 위와 같은 코드를 볼 수 있는데

2

/assets 폴더에 가보면 코드에서 언급한 파일들이 있는 걸 볼 수 있습니다.

favicon.html 에서 /assets 폴더 안에 있는 파일들을 불러오는 것 같네요

이제 다운받은 .png 이미지를 각 브라우저 및 OS별 사이즈 및 .ico 로 바꿔야 하는데,

파비콘 변환 사이트들에서 바꿀 수 있습니다.

구글에 파비콘만 검색해도 다양한 변환 사이트가 나오는데, 전 주석에 써있는대로 여기 를 이용했습니다

image

imageimage

Select Your Fabicon image 버튼을 눌러 변환한 다음 Favicon Package 를 눌러보면

image

이렇게 필요한 파일이 전부 들어있네요 !




3. /assets 덮어쓰기

전 작업환경이 달라서 깃에서 바로 작업했습니다.

image

/assets 폴더안에 전부 붙여넣습니다.




4. custom.html 수정

image

다음과 같이 html 코드를 복사한 뒤 /includes/head/custom.html 에 붙여넣습니다.

붙여넣을 때 href 앞부분에 /assets/ 를 붙여줍니다.

<!-- start custom head snippets -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png">
<link rel="manifest" href="/assets/site.webmanifest">
<link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<!-- end custom head snippets -->




😎 파비콘 완성 !

image

이렇게 파비콘이 잘 들어간 걸 확인할 수 있습니다 !




추가+




타이틀 옆 마크 변경(.svg)

image

/includes/svg/logo.svg
타이틀 옆 마크는 .svg 확장자를 가지고 있습니다.

넣고 싶은 이미지를 구글에 png to svg로 검색해서 변환해줍니다.

전 여기 에서 변환했습니다.

imageimage

이름을 logo.svg 로 바꿔주고 /includes/svg/logo.svg 에 덮어씌워줍니다.




진짜 끝 !

image


'끄적끄적' 카테고리의 다른 글

개인 프로젝트가 유기 당하는 이유와 해결 방법  (2) 2024.02.26
2022년 9월 회고  (6) 2022.10.07
[Blog] 블로그 이사 Git 에서 Velog로  (1) 2022.09.11
[Jekyll] Navigation 수정하기  (2) 2022.09.11
    '끄적끄적' 카테고리의 다른 글
    • 개인 프로젝트가 유기 당하는 이유와 해결 방법
    • 2022년 9월 회고
    • [Blog] 블로그 이사 Git 에서 Velog로
    • [Jekyll] Navigation 수정하기
    Dev.YoungKyu
    Dev.YoungKyu
    iOS를 공부하고 있습니다

    티스토리툴바