Skip to content

Commit

Permalink
Display site subtitle in masthead (#2205)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jdeluyck authored and mmistakes committed Jul 17, 2019
1 parent 00bec58 commit cfad550
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/masthead.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
{% unless logo_path == empty %}
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt=""></a>
{% 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">
{%- for link in site.data.navigation.main -%}
{%- if link.url contains '://' -%}
Expand Down
4 changes: 4 additions & 0 deletions _sass/minimal-mistakes/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
z-index: 20;
}

.site-subtitle {
font-size: $type-size-8;
}

.masthead__menu {
float: left;
margin-left: 0;
Expand Down

0 comments on commit cfad550

Please sign in to comment.