Skip to content

Incorrect index file generated(?) #1

@gl326

Description

@gl326

This is likely a skill issue, as it's my first time trying to use Zola, Github Actions, Github Pages, and static site generation in general. But I'll report my experience nonetheless since maybe it will help identify where the documentation here may be lacking.

I have have a repo with a Zola site all setup, and when I test it using zola serve it looks great. It's quite a default setup, with the site output going to the public folder etc. I haven't modified advanced settings anywhere to my knowledge.

I followed the instruction in the readme here to the best of my ability; created a Github action, pasted in the basic one provided in the readme. Enabled actions, enabled pages, corrected several build errors to do with incorrect image formats. I'm at the stage now where any commit causes the GitHub action to run and for a site to be deployed to GitHub pages, which is great.

However, rather than using my index template defined in template/index.html, the generated index.html is based on the ReadMe.md in my repo root directory. I verified this by downloading the generated artifact.tar file; it's not raw text, it's a properly generated html file using the contents of my readme.md file. Other assets are present in subfolders, including all my template html pages (including index.html!) and content files, but they don't seem to be using my style or theme at all.

Since I've never actually successfully deployed a website, I don't know what the output artifact.tar is supposed to look like. I would guess that it is using my root folder instead of the public subdirectory. The output artifact.tar looks a lot like my repo, but with the "public" folder conspicuously missing. The ReadMe here suggests that by default, with no modification, it should be correctly pointing to the public folder, though. I see there is an "output_dir" "option" mentioned in the readme, which perhaps is not configured to go to public by default, but I don't know how to access that option or where to write that instruction, if that even is the issue.

I am going to move on and look for other ways to deploy my site for now. Thanks nonetheless for the tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions