Skip to content

Commit

Permalink
feat: Use smaller logo for faster initial page rendering (springwolf#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback authored Jul 25, 2023
1 parent 617e19d commit 23ae109
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# <img src="static/img/logo.png" alt="Logo" width="100"/> Springwolf Website
# <img src="static/img/logo_s.png" alt="Logo" width="100"/> Springwolf Website
[![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)
[![Netlify Status](https://api.netlify.com/api/v1/badges/8dc370e2-1578-4a72-a729-747929a94400/deploy-status)](https://app.netlify.com/sites/springwolf/deploys)

Expand Down
4 changes: 3 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const config = {
navbar: {
title: 'Springwolf',
logo: {
src: 'img/logo.png'
src: 'img/logo_s.png',
height: '32px',
width: '32px'
},
items: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function HomepageHeader() {
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<img src={"img/logo.png"} alt={"logo"} width={"200"} />
<img src={"img/logo_s.png"} alt={"logo"} width={"200px"} height={"200px"} />
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
Expand Down
Binary file added static/img/logo_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 23ae109

Please sign in to comment.