gohugoio / hugoBasicExample

MIT License
281 stars 281 forks source link

No content when trying hugoBasicExample? #77

Closed centaurisean closed 7 months ago

centaurisean commented 2 years ago

I'm new to Hugo, so if I'm just doing something stupid please let me know!

I checked out the hugoBasicExample via the instructions here: https://github.com/gohugoio/hugoBasicExample. On step 3, I checked out all the themes according to those instructions. I then launch a server via hugo server -t slate

I then point my browser at http://localhost:1313 and all I see is this: hugoBasicExample

I've tried a couple other themes as well, with mixed results. Some show almost no content, other ones seem to have content (I can see sections for Markdown Syntax Guide, Rich Content, and Placeholder Text on some). Is this an issue with the content in the example itself, or with how individual themes deal with that content? As mentioned in my opening line, I'm new to Hugo so I'm trying to come up to speed on how things are "supposed" to work. My original assumption going in was that the layout of your content files should work with any theme, but I'm now thinking that assumption isn't valid and that you need to organize your content specific to the theme you plan to use?

Here's the output I get on the command line when running with the Slate theme:

C:\Users\sean.murphy\Documents\Markdown\hugoBasicExample>hugo server -t slate
Start building sites …
hugo v0.89.4-AB01BA6E+extended windows/amd64 BuildDate=2021-11-17T08:24:09Z VendorInfo=gohugoio
WARN 2021/12/01 11:48:04 The "twitter_simple" shortcode will soon require two named parameters: user and id. See "C:\Users\sean.murphy\Documents\Markdown\hugoBasicExample\content\post\rich-content.md:26:1"

                   | EN
-------------------+-----
  Pages            | 26
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  9
  Processed images |  0
  Aliases          |  9
  Sitemaps         |  1
  Cleaned          |  0

Built in 102 ms
Watching for changes in C:\Users\sean.murphy\Documents\Markdown\hugoBasicExample\{content,layouts,static,themes}
Watching for config changes in C:\Users\sean.murphy\Documents\Markdown\hugoBasicExample\config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Thanks in advance!