Skip to content

Commit 23ae109

Browse files
authored
feat: Use smaller logo for faster initial page rendering (#43)
1 parent 617e19d commit 23ae109

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# <img src="static/img/logo.png" alt="Logo" width="100"/> Springwolf Website
1+
# <img src="static/img/logo_s.png" alt="Logo" width="100"/> Springwolf Website
22
[![Build](https://github.com/springwolf/springwolf.github.io/actions/workflows/build.yml/badge.svg)](https://github.com/springwolf/springwolf.github.io/actions/workflows/build.yml)
33
[![Netlify Status](https://api.netlify.com/api/v1/badges/8dc370e2-1578-4a72-a729-747929a94400/deploy-status)](https://app.netlify.com/sites/springwolf/deploys)
44

docusaurus.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ const config = {
3939
navbar: {
4040
title: 'Springwolf',
4141
logo: {
42-
src: 'img/logo.png'
42+
src: 'img/logo_s.png',
43+
height: '32px',
44+
width: '32px'
4345
},
4446
items: [
4547
{

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function HomepageHeader() {
1111
return (
1212
<header className={clsx('hero hero--primary', styles.heroBanner)}>
1313
<div className="container">
14-
<img src={"img/logo.png"} alt={"logo"} width={"200"} />
14+
<img src={"img/logo_s.png"} alt={"logo"} width={"200px"} height={"200px"} />
1515
<h1 className="hero__title">{siteConfig.title}</h1>
1616
<p className="hero__subtitle">{siteConfig.tagline}</p>
1717
<div className={styles.buttons}>

static/img/logo_s.png

21.8 KB
Loading

0 commit comments

Comments
 (0)