Add directory configuration for data #2

Open
opened 2023-10-14 18:17:52 +00:00 by tyrel · 1 comment
Owner

This ideally could be a crate, so having templates, and such be inside the repository does not make it re-usable.

Ideally there would be a binary rust-ssg (TODO Pick better name) that you would point at a project.yaml or something, file.
this would have configuration such as

  • Links
  • Blog
links:
  link_file: /path/to/linkfile.yaml
  template: /etc etc etc 
blog:
  template: path/to/template/dir
  posts: path/to/posts
  pages: path/to/pages
  static.... etc etc
This ideally could be a crate, so having templates, and such be inside the repository does not make it re-usable. Ideally there would be a binary `rust-ssg` (TODO Pick better name) that you would point at a `project.yaml` or something, file. this would have configuration such as - [x] Links - [ ] Blog ```yaml links: link_file: /path/to/linkfile.yaml template: /etc etc etc blog: template: path/to/template/dir posts: path/to/posts pages: path/to/pages static.... etc etc ```
tyrel added this to the 0 - Overall project 2023-10-14 18:17:52 +00:00
Author
Owner

links and basic output_dir is:

output_dir: public/
links:
  source: data/links/links.yaml
  template: templates/links/links.html
  static_dir: static/
links and basic output_dir is: ```yaml output_dir: public/ links: source: data/links/links.yaml template: templates/links/links.html static_dir: static/ ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tyrel/rust-ssg#2
No description provided.