Use conventional directory names #35
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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->publicas they match entirely. However, thecontent,staticandtemplatesfolders have no direct analogue.contentis desirable: pages incontentshould 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
staticdirectory 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.templatesin 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, atemplatesdirectly 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.