Add header actions
array support for multiple call to action links
``` header: overlay_image: /assets/images/unsplash-image-1.jpg og_image: /assets/images/page-header-og-image.png caption: "Photo credit: [**Unsplash**](https://unsplash.com)" actions: - label: "Learn More" url: "https://unsplash.com" ``` Fixes #1461
This commit is contained in:
@ -3,7 +3,11 @@ title: "Layout: Header Image Overlay"
|
||||
header:
|
||||
overlay_image: /assets/images/unsplash-image-1.jpg
|
||||
caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
|
||||
cta_url: "https://unsplash.com"
|
||||
actions:
|
||||
- label: "Call to action 1"
|
||||
url: "https://github.com"
|
||||
- label: "Call to action 2"
|
||||
url: "https://mademistakes.com"
|
||||
categories:
|
||||
- Layout
|
||||
- Uncategorized
|
||||
@ -34,8 +38,9 @@ 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)"
|
||||
cta_label: "More Info"
|
||||
cta_url: "https://unsplash.com"
|
||||
actions:
|
||||
- label: "More Info"
|
||||
url: "https://unsplash.com"
|
||||
```
|
||||
|
||||
Or if you want to do more fancy things, go full rgba:
|
||||
@ -48,6 +53,7 @@ header:
|
||||
overlay_image: /assets/images/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"
|
||||
actions:
|
||||
- label: "More Info"
|
||||
url: "https://unsplash.com"
|
||||
```
|
Reference in New Issue
Block a user