You define a connection and a URL in the `config.js` file so that it looks for a Markdown link with the URL and replaces the text with the connection's value.
For example:
```markdown
- {blog} [tktk](https://melkat.blog)
```
Becomes:
```markdown
- {blog} [My Latest Post](https://melkat.blog)
```
To keep this going automatically, we use a Forgejo Action runner configured to run every three hours.
While it does run every three hours, it only updates your now page when there has been a change.
- This is where you will define any sensitive keys, for example I use `TRAKT_SLURM` to store my _SLURM_ key. You only need this if you want to use the Trakt integration.
5. Once you are ready, you can enable the Forgejo Action by going to the fork's settings page. From the sidebar, go to Units and then Overview. This will take you to a page where you can enable actions.
- Check the box next to `Actions` and don't forget to click save.
If you're running this locally, you may also want to copy the `.env.example` to `.env` and store those values there too. The `.env` file is git ignored for a reason, so be sure not to commit it.
## Configuring
Configuring is all done within the `config.js` in the `items` array.
For example, to get the latest post from my blog's JSON feed.
-`getJsonFeedItemContent(feedUrl, showImage = true)`: For getting the `content_html` of a JSON feed item and when available the item's `image` (unless the last argument is `false`)
-`getJsonFeedItemTitle(feedUrl, showImage = true)`: For getting the `title` of a JSON feed item and when available the item's `image` (unless the last argument is `false`)
-`getLetterboxdActivity(letterboxdUsername, showImage = true)`: For getting the latest item from your Letterboxd RSS feed and the image from the description (unless the last argument is `false`)
-`getMalojaScrobble(malojaUrl)`: For getting the latest scrobble artist and track title
-`getTraktEpisode(traktUsername, traktId, showImage = true)`: For getting the latest watched TV episode's show name, season and episode number, episode title, and episode image (unless the last argument is `false`)