Clone
2
Custom MOTD and Formatting
Patrick J Gallagher edited this page 2016-10-10 21:34:47 -05:00

In some cases, you might want a custom message to appear on the splash page. To do this, you simply have to edit a template file found at butterfly/templates/motd

While editing the template, you can take advantage of the double brace {{ }} notation to add some formatting to your text.

Color Code
black {{ colors.black}}
red {{ colors.red}}
green {{ colors.green}}
yellow {{ colors.yellow}}
blue {{ colors.blue}}
magenta {{ colors.magenta}}
cyan {{ colors.cyan}}
white {{ colors.white}}

Text is by default bold. You can un-bold it by appending light_ to the color name. So a slim white text would be

{{ colors.light_white }}

When you wish to put the colors back to the default, you can call {{ colors.reset }}.

For more understanding on how the styling works, check out the default motd at butterfly/templates/motd, and see how the butterfly is colored.