digitalcraftsman / hugo-material-docs

Port of Martin Donath's mkdocs-material theme to Hugo
MIT License
706 stars 186 forks source link

failed on hugo 0.48 win64 #96

Closed wuyongyi closed 6 years ago

wuyongyi commented 6 years ago

when run with

hugo server , there is error message like:

Ref "getting-started/index.md": page not found

can't find out what is happening. (other theme from you like "Alabaster" works fine in this version of hugo. )

hellt commented 6 years ago

same with me on darwin

$ hugo serve
Building sites … ERROR 2018/09/18 15:29:11 [en] REF_NOT_FOUND: Ref "getting-started/index.md": page not found
ERROR 2018/09/18 15:29:11 [en] REF_NOT_FOUND: Ref "getting-started/index.md": page not found
ERROR 2018/09/18 15:29:11 [en] REF_NOT_FOUND: Ref "getting-started/index.md": page not found
ERROR 2018/09/18 15:29:11 [en] REF_NOT_FOUND: Ref "getting-started/index.md": page not found
Total in 6 ms
Error: Error building site: logged 4 error(s)

file structure

$ tree
.
├── archetypes
│   └── default.md
├── config.toml
├── content
│   ├── adding-content
│   │   └── index.md
│   ├── getting-started
│   │   └── index.md
│   ├── index.md
│   ├── license
│   │   └── index.md
│   └── roadmap
│       └── index.md
├── data
├── layouts
├── resources
├── static
└── themes
    └── hugo-material-docs
        ├── CHANGELOG.md
        ├── LICENSE.md
        ├── README.md
        ├── archetypes
        │   └── default.md
        ├── exampleSite
        │   ├── config.toml
        │   ├── content
        │   │   ├── adding-content
        │   │   │   └── index.md
        │   │   ├── getting-started
        │   │   │   └── index.md
        │   │   ├── index.md
        │   │   ├── license
        │   │   │   └── index.md
        │   │   └── roadmap
        │   │       └── index.md
        │   └── static
        ├── images
        │   ├── screenshot.png
        │   └── tn.png
        ├── layouts
        │   ├── 404.html
        │   ├── _default
        │   │   ├── __list.html
        │   │   └── single.html
        │   ├── index.html
        │   ├── partials
        │   │   ├── drawer.html
        │   │   ├── footer.html
        │   │   ├── footer_js.html
        │   │   ├── head.html
        │   │   ├── header.html
        │   │   ├── nav.html
        │   │   └── nav_link.html
        │   └── shortcodes
        │       ├── note.html
        │       └── warning.html
        ├── static
        │   ├── fonts
        │   │   ├── icon.eot
        │   │   ├── icon.svg
        │   │   ├── icon.ttf
        │   │   └── icon.woff
        │   ├── images
        │   │   ├── colors.png
        │   │   ├── favicon.ico
        │   │   ├── logo.png
        │   │   └── screen.png
        │   ├── javascripts
        │   │   ├── application.js
        │   │   └── modernizr.js
        │   └── stylesheets
        │       ├── application.css
        │       ├── highlight
        │       │   └── highlight.css
        │       ├── palettes.css
        │       └── temporary.css
        └── theme.toml
hellt commented 6 years ago

as per https://github.com/digitalcraftsman/hugo-material-docs/issues/84 renaming of ./content/index.md to ./content/_index.md solved the issue

wuyongyi commented 6 years ago

@hellt 👍 Thanks for the message, I try it in darwin and it works now.