glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.48k stars 295 forks source link

Allow some branding customization. #75

Closed realdavidops closed 2 months ago

realdavidops commented 6 months ago

I wanted to be able to configure and disable some of the currently default branding. This pull requests adds a new top level configuration object for branding, along with several sub objects. This is tested and running fine locally for me, input is appreciated.

Branding

You can adjust the various parts of the branding through a top level branding property. Example:

branding:
  show: true
  name: Glance
  short-name: G

Properties

Name Type Required Default
show bool no true
name string no Glance
short-name string no G

show

True will show the glance footer, false will hide it.

name

Sets the name presented after the page name in the title.

short-name

Sets the name presented before the pages in the header.

realdavidops commented 5 months ago

@svilenmarkov Any feedback?

svilenmarkov commented 5 months ago

Hey, thanks for contributing and sorry I didn't get back to you earlier!

There's a few small things I'd like to change like replacing short-name with logo as I'm sure most people would rather have an image there instead of a character. I'll get it sorted out and merged for the next release.

realdavidops commented 5 months ago

That makes sense to me. I would maybe also give a logo-type option to allow people to select either text or an image. Deciding to load text only would keep the page size down for some use cases.

vishalkadam47 commented 2 months ago

Does this include footer section also, Instead of Hiding the footer it would be nice to have an option to add any text and links

svilenmarkov commented 2 months ago

@vishalkadam47 Yup, I've added that as well.

Thanks again for contributing and sorry it took so long to get this merged!

vishalkadam47 commented 2 months ago

@svilenmarkov add one option for PWA app name, if LogoText name is long it would be nice to have an option for short name for pwa app.