digital literature hub
Go to file
reese sapphire 3b2b5717ab make it usable 2023-06-25 23:32:40 -05:00
data make it usable 2023-06-25 23:32:40 -05:00
slog refactor catalogue: 2023-06-16 13:58:57 -05:00
.dockerignore implement config file 2023-06-15 14:11:42 -05:00
.editorconfig hyperlinks page is done 2022-12-29 17:45:29 -06:00
.gitignore implement config file 2023-06-15 14:11:42 -05:00
Dockerfile dockerification 2023-06-10 22:17:39 -05:00
README.md refactor catalogue: 2023-06-16 13:58:57 -05:00
config.go make it usable 2023-06-25 23:32:40 -05:00
dev.sh implement config file 2023-06-15 14:11:42 -05:00
docker-compose.yml make it usable 2023-06-25 23:32:40 -05:00
example.config.yml implement config file 2023-06-15 14:11:42 -05:00
go.mod refactor refactor refactor! 2023-06-15 16:05:46 -05:00
go.sum refactor refactor refactor! 2023-06-15 16:05:46 -05:00
main.go make it usable 2023-06-25 23:32:40 -05:00
template.go make it usable 2023-06-25 23:32:40 -05:00
todo.md make it usable 2023-06-25 23:32:40 -05:00
util.go refactor catalogue: 2023-06-16 13:58:57 -05:00

README.md

site sections

zines and other literature

route: /catalogue

  • free offline copies of zines, books, web articles, and pretty much anything else that a browser can handle
  • displayed in a familiar format
  • encourages supporting the authors by prominently displaying source links
  • tags feature is being planned!

data/lib/catalogue.yml example:

- title: The Content Piece's Title
  author: Author Name
  description: >
    You can use a pipe | or a greater-than symbol > to write YAML strings across multiple lines.
    See https://yaml-multiline.info for details.    
  type: zine | book | article | ...or whatever you want
  tags:
    - foo
    - bar
  image: "/static/lit/file.jpg"
  image_class: banner | portrait
  href: "/static/lit/file.pdf"  # the primary link that the image/title anchor points to
  links:  # extra links off to the side
    epub: "/static/lit/file.epub"
    source: https://zine.website/

data/lib/hyperlinks.yml example:

- name: Section title
  description: This is a group of links under a related banner.
  links:
    - url: https://website.org/page.htm
    - url: https://example.com
      name: Super duper cool website

- name: Group two
  description: This is another group of links!
  links:
    - ...

configuration

copy example.config.yml to config.yml in the same location as the xanadu executable and make changes as needed.

design

  • tiny web, maximizing browser compatibility by being smol
  • mobile and desktop equally important
  • ascii art wrapped in <pre/> tags with alt-text for accessibility

name meaning

a reference to: