Portfolio header
Description
Top of the portfolio listing: title, optional intro and tag filter note.
intro is already-rendered HTML (the page's rich text). When
active_tag is set, a note says which tech the list is filtered to,
with a link back to clear_url.
Usage
Minimal example
{% portfolio_header "foo" %}
All parameters
{% portfolio_header
"foo"
intro="bar"
active_tag="baz"
clear_url="foo"
%}
Qualified tag usage
{% ui__portfolio_header "foo" %}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
title
|
str
|
Required | — | — | Page title. |
intro
|
str
|
Optional | — | — | Intro HTML. |
active_tag
|
str
|
Optional | — | — | Tag the listing is filtered by. |
clear_url
|
str
|
Optional | — | — | URL of the unfiltered listing. |
Select variant preset
Background colour
Viewport width
Zoom level
{% portfolio_header "foo" %}
<div class="portfolio-header ">
<header class="article-header ">
<h1 class="article-header__title">foo</h1>
</header>
<div class="portfolio-header__intro">
<div class="rich-text ">bar</div>
</div>
<p class="portfolio-header__filter">
Showing projects tagged <strong>baz</strong>.
<a href="foo">Show all</a>
</p>
</div>