Use conventional directory names #35
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ktyl/ktyl.dev#35
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We use a number of specifically named directories when building the site:
root
: contains base HTML pages, which have elements injected into them before they copied to the outputinc_html
: contains snippets of HTML which are injected into the base pagessite
: output directory.kiln and zola follow a common convention which partially matches ours:
content
: general site contentstatic
: pages which are copied unmodified into the outputtemplates
: snippets used to construct full pagespublic
: output directoryRight away, we could rename
site
->public
as they match entirely. However, thecontent
,static
andtemplates
folders have no direct analogue.content
is desirable: pages incontent
should form the majority of site pages. These would have a common layout, and be generated from Markdown source as the current blog pages are.The only current page which would fit into the
static
directory is the vn, but this may no longer be true when trying to apply a style to it (#25). We would like to have a content system similar to the current blog page generation, where Markdown source is converted to HTML pages, and we would also like to support writing HTML verbatim for more complex pages.templates
in other SSGs imply the use of a templating engine: at present our templating needs are actually quite basic, and should be be possible to meet with ad-hoc Python scripting. This may prove to be inadequate in the long-term, but in the short-term avoids adding a dependency. Therefore, atemplates
directly holds some utility - it allows us to write chunks of HTML for use by Python scripts when filling out pages. They will be templates, but in a very primitive sense.