It is quite possible you will feel the need to tweak labels of different sections or widgets. For example, change label of social widget from “Contact” to “Stay in Touch”.
Don’t worry! We got you covered!
Elegant has all the customizable variables in one place. _defaults.html
file.
templates/_includes/_defaults.html
Let’s see how can we change social widget label.
1 2 3 4 5 6 |
|
Line 1, text enclosed in {# #}
is a comment, which says this section is about
“Label for the list of social profiles”.
The text in all capital case SOCIAL_PROFILE_LABEL
is the actual variable.
Line 3 says SOCIAL_PROFILE_LABEL
is set to Contact
.
To change this value, assign it a different value in your Pelican
configuration, pelicanconf.py
.
SOCIAL_PROFILE_LABEL = 'Stay in Touch'
That’s it. The title of social widget will change. There are several others labels that you can customize easily without touching Elegant’s source code.