Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaushalmodi/hugo-jf2
Hugo theme component for JF2 custom Output Format
https://github.com/kaushalmodi/hugo-jf2
custom-output-format hugo hugo-theme-component indieweb jf2 jf2-feed jf2-post
Last synced: about 1 month ago
JSON representation
Hugo theme component for JF2 custom Output Format
- Host: GitHub
- URL: https://github.com/kaushalmodi/hugo-jf2
- Owner: kaushalmodi
- License: gpl-3.0
- Created: 2018-06-11T03:06:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-14T18:33:33.000Z (over 2 years ago)
- Last Synced: 2024-11-13T15:53:43.701Z (about 1 month ago)
- Topics: custom-output-format, hugo, hugo-theme-component, indieweb, jf2, jf2-feed, jf2-post
- Size: 38.1 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
*This is not a standalone theme. This is a Hugo theme component.*
This component enables JF2 feeds for your site:
* Requirements
You need to install the latest version of Go from
https://go.dev/doc/install because this theme component requires [[https://gohugo.io/hugo-modules/use-modules/][~hugo
mod ..~ commands]] to work.This update on switch to using Hugo Modules was last tested with Hugo
v0.92.0.
* Installing
1. Add this component as a new module to your site's TOML config file:
#+begin_src conf-toml
[module]
[[module.imports]]
path = "github.com/kaushalmodi/hugo-jf2"
#+end_src
2. Add "JF2Feed" to all the "list" Page Kinds for which you want to
create JF2 feeds, and "JF2Post" to the "page" Page Kind:
#+begin_src conf-toml
[outputs]
# /jf2feed.json
home = ["HTML", "RSS", "JF2Feed"] # default = ["HTML", "RSS"]
# /posts/jf2feed.json
section = ["HTML", "RSS", "JF2Feed"] # default = ["HTML", "RSS"]
# /tags/mytag/jf2feed.json, /categories/mycat/jf2feed.json
taxonomy = ["HTML", "RSS", "JF2Feed"] # default = ["HTML", "RSS"]
# /posts/mypost/jf2post.json
page = ["HTML", "JF2Post"] # default = ["HTML"]
#+end_src