📘
Lab Website Template docs
  • Introduction
    • Overview
    • Is this right for me?
    • Gallery
    • Support
  • Getting Started
    • Set up your site
    • Set up your URL
    • Tidy up your repo
    • Change your site
    • Preview your site
  • Basics
    • Repo structure
    • Configure your site
    • Edit pages
    • Write basic content
    • Use your logo
    • Customize your theme
    • Team members
    • Blog posts
    • Citations
    • Components
      • Section
      • Figure
      • Button
      • Icon
      • Feature
      • List
      • Citation
      • Card
      • Portrait
      • Post Excerpt
      • Alert
      • Tags
      • Float
      • Grid
      • Cols
      • Search
      • Site Search
  • Advanced
    • Update your template
    • Embeds
    • Math, diagrams, videos, etc.
    • Analytics
    • Data and collections
    • Jekyll plugins
    • Custom components
    • Background knowledge
Powered by GitBook
On this page
  1. Basics

Use your logo

PreviousWrite basic contentNextCustomize your theme

Last updated 10 months ago

One of the first and most important things to do is replace the template's logo with your own logo.

There are three files in /images you need to update:

Filename
Acceptable formats
Purpose
Tips for best appearance

logo

.svg .png .jpg

Displayed in the header of your site on every page.

  • SVG with transparent background

  • No text¹

  • Very tight cropping (template already adds margins)

icon

.png .jpg

Your site's .

  • PNG

  • 1:1 square aspect ratio

  • 512 x 512 px

  • Very tight cropping

  • Discernable at very small size

  • Discernable on light or dark background

share

.jpg .png

Preview image when you share a link to your site on Twitter, Slack, etc.

  • JPG

  • 1000 x 500 px

  • Logo and text, centered

  • Enough margins to allow for varying aspect ratios

¹ Separating the text from your logo shape can look nicer, because then the template can wrap the text to a new line dynamically depending on the screen size. If you can't or don't want to do this, tell the template in your .

Favicon variations

The tool can generate tons of variations of your logo for things like: iOS/Android homepage bookmarks, Windows start menu bookmarks, Safari pinned tabs, and Internet Explorer fallbacks. In our opinion, these are pretty rarely used/encountered by visitors, so we elected to reduce this to a simple subset that covers most common use cases.

However, you can still easily include them in the template. Just follow the tool's process, and put the images it gives you in your repo, and paste the code it gives you in place of <link rel="icon"> in /_includes/meta.html, and that's it!

site settings
realfavicongenerator
favic
on
~2:1 aspect ratio
cover fit