Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customization NB header #7

Closed
brecht-d-m opened this issue Apr 23, 2016 · 1 comment
Closed

Customization NB header #7

brecht-d-m opened this issue Apr 23, 2016 · 1 comment

Comments

@brecht-d-m
Copy link
Owner

Customization colour and company title via settings file

How:

  • When creating docker, in settings file (app.js or server.js reads a settings file)
@brecht-d-m
Copy link
Owner Author

Customization will be done via settings file (or via env vars when starting docker)

settings.headerBackgroundColor = process.env['DATATONIC_HEADER_BACKGROUND_COLOR'] || '#fff';
settings.headerColor = process.env['DATATONIC_HEADER_COLOR'] || '#6d7078';
settings.headerFont = process.env['DATATONIC_HEADER_FONT'] || "400 17px 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif",
settings.headerCompanyName = process.env['DATATONIC_HEADER_COMPANY_NAME'] || 'Datatonic';
settings.headerCompanyLink = process.env['DATATONIC_HEADER_COMPANY_LINK'] || 'http://www.datatonic.com';
settings.headerCompanyLogo = process.env['DATATONIC_HEADER_COMPANY_LOGO'] || 'http://datatonic.com/wp-content/themes/datatonic/img/logo.png';
settings.headerCompanyLogoAlt = process.env['DATATONIC_HEADER_COMPANY_LOGO_ALT'] || 'datatonic';
settings.headerCompanyLogoWidth = process.env['DATATONIC_HEADER_COMPANY_LOGO_WIDTH'] || 168;
settings.headerCompanyLogoHeight = process.env['DATATONIC_HEADER_COMPANY_LOGO_HEIGHT'] || 31;

This will change the header and footer (both NB and Tree template), and will set company logo & name & url, text, text color, and background color

brecht-d-m added a commit that referenced this issue Apr 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant