Getting Started problem with root and content / posts directory

Hello,
I am just getting my hands on Hugo. I have installed it, and it seems fine. I am using MAC OS.
I have created a Quickstart directory, and am able to visualize the Ananke theme. I can also read .md files with my code editor, Visual Studio Code.

I have very little knowledge of coding, and am trying to create my own static web site. For the moment, I am making my first steps, with the Quick Start section of Hugo, and would like to try and use the Ananke theme to train.

I have followed all the steps of the Quic start guide.
I ran the command cd quickstart to make this directory my root folder. I don’t know if it worked, but I didn’t get any error message.
When I ran hugo new content content/posts/my-first-post.md, I didn’t find the posts folder in the quickstart/content directory. I did find a posts folder, in the hugo/create/theme/content/posts, which contains several posts files, and an index file.

Could you help me locate this first post, if I am just mistaking about its location, or help me find where my possible mistake occurred?
Regards
Coralie

Sorry, I won’t delete this post for its possible interest.
I found where my mistake was.
I didn’t stop the server before entering the command line hugo new content content/posts/mon-pmier-post.md
I didn’t think it was compulsary.

This also looks like a clone of the Hugo repo itself.

recheck the guide and follow the “Install Hugo” instruction for your OS

then in a new folder where your store stuff restart with the quickstart guide

after thesse commands (not adding the theme as described in the guide)

hugo new site mysite
cd mysite
hugo new content content/posts/my-first-post.md

the folder structure should look like this:

C:\_REPOS\GITHUB\CLONE\MYSITE
│   hugo.toml
├───archetypes
│       default.md
├───assets
├───content
│   └───posts
│           my-first-post.md
├───data
├───i18n
├───layouts
├───static
└───themes

If you add the theme you might get some more folders below themes

Thank you, irkode, I just didn’t know I had to stop the hugo server. It worked.

there’s should be need to stop the hugo server before creating new content.

Your Screenshot with all that folders does not look like a hugo site but a hugo source folder.

  • If that was just to show something within the sources, ok
  • If you really have your site in a hugo source folder than you hold it wrong. please reread my previous post about INSTALL then

Hi,
No, my site is definitely out of the hugo source folder.
Thank you.

1 Like