The Blowfish Theme Manual has provided a detailed introduction to using Firebase, demonstrating how to dynamically obtain article views and likes. This article will demonstrate this with screenshots.
Step 1: Create a new project #
https://console.firebase.google.com/Step 2: Get the API #
Step 3: Create the Database #
Step 4: Enable Anonymous Access #
Step 5: Modify params.toml
#
Tip
- Set
showViews = trueandshowLikes = true - Add The
[firebase]configuration information; when copying, make sure there’s no comma at the end of each line. - Start the
hugo serverservice - If there’s no response, close cmd, clear your browser cache, and restart the service.