~xdavidwu/xdavidwu.link

ref: 6c0144ff2935eb19f35937a016721dcfdcad2b9c xdavidwu.link/_includes/page__hero.html -rw-r--r-- 2.7 KiB
6c0144ff — Michael Rose 8 years ago
Merge branch 'release/4.0.4'

Conflicts:
	README.md
0625e157 — Michael Rose 8 years ago
Merge branch 'feature/theme-gem' into develop
254b40b8 — Michael Rose 8 years ago
Remove `prepend: "/"` from includes and add to image path's instead
d2685441 — Michael Rose 8 years ago
Replace base_path with `absolute_url` filter where possible
abab7666 — Michael Rose 8 years ago
Allow images to be placed in other folders
- Remove `images/` only restriction and encourage placement in `assets/images/` instead
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
Next