~xdavidwu/xdavidwu.link

ref: b721023f72acc0f8db9bd2c74d7a2e0fb7fb0d1e xdavidwu.link/_includes/page__hero.html -rw-r--r-- 2.7 KiB
48873edc — Michael Rose 8 years ago
Merge branch 'release/3.3.5'
e7e66519 — Michael Rose 8 years ago
Add `en` default text to `site.locale` strings
- Close #407
aecbd356 — Michael Rose 8 years ago
Merge branch 'release/3.2.3'
0b57806f — Michael Rose 8 years ago
Replace contains "http" with contains "://"
9bfa6bbb — Michael Rose 8 years ago
Merge branch 'release/3.1.4'
557fbfb0 — Michael Rose 8 years ago
Merge branch 'feature/overlay-filter' into develop
b59de95b — Michael Rose 8 years ago
Merge branch 'tobie-hero-filter' of https://github.com/tobie/minimal-mistakes into feature/overlay-filter
1edfcea3 — Tobie Langel 8 years ago
Style fixes
f077ec43 — Tobie Langel 8 years ago
Add overlay_filter param to hero headers

The `overlay_filter` param lets you darken or otherwise filter the hero header picture to make the text content pop out more.

You can use it by specifying the opacity (between 0 and 1) of a black overlay like so:

```yaml
excerpt: "This post should display a **header with an overlay image**, if the theme supports it."
header:
  overlay_image: unsplash-image-1.jpg
  overlay_filter: 0.5 # same as adding an opacity of 0.5 to a black background
  caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
  cta_label: "More Info"
  cta_url: "https://unsplash.com"
```

Or if you want to do more fancy things, go full rgba: 

```yaml
excerpt: "This post should display a **header with an overlay image**, if the theme supports it."
header:
  overlay_image: unsplash-image-1.jpg
  overlay_filter: rgba(255, 0, 0, 0.5)
  caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
  cta_label: "More Info"
  cta_url: "https://unsplash.com"
```
1cce75a3 — Michael Rose 9 years ago
Merge branch 'release/3.0.0'
58a59d7d — Michael Rose 9 years ago
Merge branch 'feature/documentation-and-demo' into develop
d7df394a — Michael Rose 9 years ago
Make base_path available to all includes that need it
9ce87108 — Michael Rose 9 years ago
If page doesn't have a title fallback to site.title
84e85c0f — Michael Rose 9 years ago
Improve URL handling for internally and externally linked pages
66d6a704 — Michael Rose 9 years ago
Reduce button size
ad0a61b4 — Michael Rose 9 years ago
Merge branch 'feature/spit-and-polish' into develop
28d6c280 — Michael Rose 9 years ago
Build out overlay header and feature row _include helper
974797a2 — Michael Rose 9 years ago
Style overlay background image and add support for caption
cae92a87 — Michael Rose 9 years ago
Add header overlay sample posts
479bce36 — Michael Rose 9 years ago
Rough out splash page _layout with styles and test content
Next