Skip to content
This repository was archived by the owner on Dec 2, 2023. It is now read-only.

ngnhng/gonews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gonews -- a RSS/Atom feed static site generator

Note

This is purely a hobby project and it is meant to be used for reference only. It is not meant to be used in production.

Built with

Progress

  • Beta version
  • Unstable, not guaranteed to work with any particular source.

Usage

Either git clone and build or use:

go install github.com/nguyendhst/gonews@latest && touch config.yaml

Then edit the config file to your liking. The config file is in YAML format. The following is an example config file:

NewsSource1:
  name: News
  url: https://example.com/rss
NewsSource2:
  name: News2
  url: https://example2.com/rss

and then run:

gonews generate

Project structure

cmd -- contains the generate command.
 |
pkg -- contains the core logic
 |  \__ fetch -- contains the logic to fetch the RSS/Atom feeds
 |  \__ render -- contains the logic to generate the static site
 |
resources -- contains the HTML template file

Existing problems

  • Duplicate .html file name in the same directory are not handled yet.
  • Not yet tested on Windows.

References