Skip to content

Commit

Permalink
✨ Add customizable welcome heading (solves #24)
Browse files Browse the repository at this point in the history
This change introduce the WELCOME_HEADING variable, that replace the default welcome heading if it is set by the user in its Pelican configuration.
  • Loading branch information
ivanhercaz committed Jan 10, 2020
1 parent 5d03276 commit 8eab21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block content %}
<div class="columns">
<div class="column">
<h1 class="title">{% trans %}Welcome to{% endtrans %} {{ SITENAME }}{% trans %}!{% endtrans %}</h1>
<h1 class="title">{% if WELCOME_HEADING %}{{ WELCOME_HEADING }}{% else %}{% trans %}Welcome to{% endtrans %} {{ SITENAME }}{% trans %}!{% endtrans %}{% endif %}</h1>
{% if SITENAME_SLOGAN %}<h2 class="subtitle">{{ SITENAME_SLOGAN }}</h2>{% endif %}
{% if SOCIAL and SOCIAL_FRONTPAGE %}<p>{% trans %}We are in{% endtrans %} <a class="tag is-link" href="https://www.linkedin.com/in/ivanhercaz">LinkedIn</a>, <a class="tag is-dark" href="https://ivanhercaz.github.io/theme/images/icons/github.png">GitHub</a> {% trans %}and{% endtrans %} <a class="tag is-info"class="tag is-info" href="https://ivanhercaz.github.io/theme/images/icons/twitter.png">Twitter</a>.</p>{% endif %}
</div>
Expand Down

0 comments on commit 8eab21a

Please sign in to comment.