Eulanda/EulandaConnect

Re-create the CMS in the image process and change the sync logic

Closed this issue · 1 comments

cnEUL commented

Currently, only pages in GitHub that are not homepages are managed for the creation of online documentation in the HUGO CMS. These are _index.md files in the CMS. When writing, this is taken into account by skipping them specifically. Also, the date of the last change is not generated by writing a FrontMatter, but by a setting in the HUGO configuration.

This makes the adjustment unnecessarily complicated. For this reason the behavior is to be changed.

The switch -deleteNonReplacedFiles in Sync-MarkdownFiles could be omitted, in which the target directory is completely deleted before. The prerequisite would be that the homepage file is located in GitHub. There, however, it is normally called Readme.md.

To do would be:

  • Remove switch
  • Rebuild logic
  • Delete target directory
  • Put a warning in the home page so that GitHub users aren't aware that local links on the home page don't work as expected.
cnEUL commented

Closed with commit #58f8221