]> BookStack Code Mirror - hacks/blob - content/simple-page-rss-feed/index.md
Add LaTeX/MathJax hack
[hacks] / content / simple-page-rss-feed / index.md
1 +++
2 title = "Simple Latest Pages RSS Feed"
3 author = "@ssddanbrown"
4 date = 2023-02-12T20:00:00Z
5 updated = 2023-02-12T20:00:00Z
6 tested = "v22.11.1"
7 +++
8
9
10 This is a hack to add a simple latest-page RSS feed to the BookStack using the logical theme system. A YouTube video covering the build and use of this customization [can be found here](https://www.youtube.com/watch?v=VYyyvaZTs_4).
11
12 #### Considerations
13
14 This does not take into account access control at all or enforce login, the RSS data endpoint will be publicly accessible. The code will effectively use the permissions of the "Guest" user.
15
16 #### Options
17
18 - The `25` in `functions.php` controls the count of rss feed items to show.
19 - `created_at` in `functions.php` can be changed to `updated_at` to instead reflect the latest updated pages.
20
21 #### Code
22
23 {{<hack file="functions.php" type="logical">}}
24
25 {{<hack file="rss.blade.php" type="visual">}}