Skip to content

Commit

Permalink
feat: add new version of web api
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly committed Sep 5, 2022
1 parent 09e49b4 commit ba2e5f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blog-website/blog/2022-09-09-web-monetization-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ image: ./title-image.png
hide_table_of_contents: false
---

<head>
<link rel="monetization" href="https://ilp.uphold.com/LwQQhXdpwxeJ" />
</head>

The Web Monetization API is a JavaScript browser API that allows the creation of a payment stream from the user agent to the website. This post walks through getting started adding it to a site.

![title image reading "Terry Pratchett and the Azure Static Web Apps" with the Azure Static Web Apps logo and a Terry Pratchett icon by Lisa Krymova from NounProject.com](title-image.png)
![title image reading "Web Monetization API - getting started" with the Web Monetization logo](title-image.png)

## The Web Monetization API

Expand Down
10 changes: 10 additions & 0 deletions blog-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ const config = {
},
],
],

// // new version of web monetization uses a link tag
// // the below will make <link rel="monetization" content="https://ilp.uphold.com/LwQQhXdpwxeJ" />
// stylesheets: [
// {
// rel: 'monetization',
// content: 'https://ilp.uphold.com/LwQQhXdpwxeJ',
// },
// ],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand Down

0 comments on commit ba2e5f7

Please sign in to comment.