Skip to content

Display site.description in masthead #2173

Closed
@jdeluyck

Description

@jdeluyck

Summary

Allow printing of the subtitle / description of the site below the site title

Motivation

It's just a nice featue that I believe more sites can use. It's like a subnote under your main title, giving you the ability to add an 'afterthought'.

Drawbacks

Can't really think of one.

Code:

I added to main.css:

$type-size-9: 0.350em !default; // ~4px

/* Site Subtitle */
.site-subtitle {
  font-size: $type-size-9;
}

to masthead

        <a class="site-title" href="{{ '/' | relative_url }}">{{ site.masthead_title | default: site.title }}
        <div class="site-subtitle">{{ site.description }}</div></a>

and I guess this could be made optional - for my own use I've just included it as is.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions