mirror of https://github.com/artifacthub/blog.git
Adding post on embed widget
In order for images to be stored in the content directory and displayed on the homepage a render has been added and hugo updated. Signed-off-by: Matt Farina <matt.farina@suse.com>
This commit is contained in:
parent
4bcf45b866
commit
1ab43d9c2f
|
|
@ -18,5 +18,5 @@ jobs:
|
|||
uses: chabad360/hugo-gh-pages@0bcf754dc6c823a580c58a59a3baa476a41258d3
|
||||
with:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
hugoVersion: extended_0.78.2
|
||||
hugoVersion: extended_0.82.0
|
||||
cname: blog.artifacthub.io
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 113 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 106 KiB |
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: "Embed Artifact Details In Your Site"
|
||||
date: 2021-05-18T00:00:00-05:00
|
||||
author: "Matt Farina"
|
||||
authorLink: "https://mattfarina.com"
|
||||
slug: "embed-widget"
|
||||
---
|
||||

|
||||
|
||||
Ever want to show off a package from the Artifact Hub on a website? I know I've thought about putting one in the sidebar of a website. Artifact Hub now makes that easy with a widget you can embed. The above image displays various configurations of the widget you can get from Artifact Hub.<!--more-->
|
||||
|
||||
Getting a widget for any packages is straight forward. When viewing a package there is a menu with three dots. Under there is an option to get the widget. The Prometheus example blow shows you where the option is.
|
||||
|
||||

|
||||
|
||||
A modal, like the one below, will pop-up with options you can use to configure the display of the widget.
|
||||
|
||||
{{< figure src="embed-modal.png" alt="Embedded Widget Menu" width="800px">}}
|
||||
|
||||
Now you can easily show off you charts, plugins, operators, actions, and more.
|
||||
|
|
@ -0,0 +1 @@
|
|||
<img src="{{ printf "%s%s" .Page.Permalink .Destination | safeURL }}" {{ with .Text }} alt="{{ . }}" {{ end }} {{ with .Title }} title="{{ . }}" {{ end }} />
|
||||
Loading…
Reference in New Issue