Activate Brave Rewards for Jekyll Websites

Introduction

Basic Attention Token (BAT) is the crypto asset to reward internet content creators. In this blog post, I would like discuss how to enable Brave Rewards to earn BAT for Jekyll websites.

Brave Reward Verification

To verify the ownership of the website, the Brave Browser asked me to add an empty file named .nojekyll to the root of my repo first. Then I have to create a .well-known directory at the root of my repo and copy the verification text file to the directory.

I followed the protocol without even thinking about it. After I pushed the new content to the GitHub repo, I found I could no longer access my website. It turns out that the protocol provided by the Brave Browser assumes the website is a static website without building process, and.nojekyll blocks the Jekyll website building.

To allow Jekyll website building and make sure the verification text file is publicly accessible, we add the following line to the _config.yml of the Jekyll website root directory.

1
include: [".well-known"]

With this line of the code, Jekyll will include the .well-known directory in the static website files.

FAQs

After Deleting the Channel, Cannot Add it Back

After deleting the channel, cannot add it back. Got the following error:

1
2
3
4
Error 500: Internal Server Error 🤔
Oops, sorry about that. You can try to refresh the page or return to https://publishers.basicattentiontoken.org/

For assistance please contact us at https://community.brave.com

We will have to disconnect the Crypto wallet from Brave Rewards then the channel can be added again.

Add .well-known to Hexo Blogs

Please set the _config.yml file as described.

References

Author

Lei Mao

Posted on

05-01-2021

Updated on

01-07-2022

Licensed under


Comments