mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2025-07-23 14:40:44 -04:00
introducing: minimal mistakes
This commit is contained in:
parent
0c0e191d72
commit
3db2701e10
766 changed files with 41906 additions and 1080 deletions
55
docs/_posts/2012-03-15-layout-header-overlay-image.md
Normal file
55
docs/_posts/2012-03-15-layout-header-overlay-image.md
Normal file
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
title: "Layout: Header Image Overlay"
|
||||
header:
|
||||
overlay_image: /assets/images/unsplash-image-1.jpg
|
||||
caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
|
||||
actions:
|
||||
- label: "Learn more"
|
||||
url: "https://unsplash.com"
|
||||
categories:
|
||||
- Layout
|
||||
- Uncategorized
|
||||
tags:
|
||||
- edge case
|
||||
- image
|
||||
- layout
|
||||
last_modified_at: 2018-03-20T16:00:52-04:00
|
||||
---
|
||||
|
||||
This post should display a **header with an overlay image**, if the theme supports it.
|
||||
|
||||
Non-square images can provide some unique styling issues.
|
||||
|
||||
This post tests overlay header images.
|
||||
|
||||
## Overlay filter
|
||||
|
||||
You can use it by specifying the opacity (between 0 and 1) of a black overlay like so:
|
||||
|
||||

|
||||
|
||||
```yaml
|
||||
excerpt: "This post should [...]"
|
||||
header:
|
||||
overlay_image: /assets/images/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)"
|
||||
actions:
|
||||
- label: "More Info"
|
||||
url: "https://unsplash.com"
|
||||
```
|
||||
|
||||
Or if you want to do more fancy things, go full rgba:
|
||||
|
||||

|
||||
|
||||
```yaml
|
||||
excerpt: "This post should [...]"
|
||||
header:
|
||||
overlay_image: /assets/images/unsplash-image-1.jpg
|
||||
overlay_filter: rgba(255, 0, 0, 0.5)
|
||||
caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
|
||||
actions:
|
||||
- label: "More Info"
|
||||
url: "https://unsplash.com"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue