Display site subtitle in masthead (#2205)

* Add site subtitle
* Tabs vs spaces - the ancient conflict
* updates cfr PR #2205
* Perhaps also add the closing anchor
* Make sure we check for the right variables...
* Brown paper bag - subtitle, not description
This commit is contained in:
Jan De Luyck 2019-07-17 17:43:25 +02:00 committed by Michael Rose
parent 00bec58bee
commit cfad550975
2 changed files with 7 additions and 1 deletions

View file

@ -11,7 +11,9 @@
{% unless logo_path == empty %} {% unless logo_path == empty %}
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt=""></a> <a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt=""></a>
{% endunless %} {% endunless %}
<a class="site-title" href="{{ '/' | relative_url }}">{{ site.masthead_title | default: site.title }}</a> <a class="site-title" href="{{ '/' | relative_url }}">{{ site.masthead_title | default: site.title }}
{% if site.subtitle %}<div class="site-subtitle">{{ site.subtitle }}</div>{% endif %}
</a>
<ul class="visible-links"> <ul class="visible-links">
{%- for link in site.data.navigation.main -%} {%- for link in site.data.navigation.main -%}
{%- if link.url contains '://' -%} {%- if link.url contains '://' -%}

View file

@ -53,6 +53,10 @@
z-index: 20; z-index: 20;
} }
.site-subtitle {
font-size: $type-size-8;
}
.masthead__menu { .masthead__menu {
float: left; float: left;
margin-left: 0; margin-left: 0;