Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home page issue #2

Closed
adamj-codethink opened this issue May 4, 2020 · 3 comments
Closed

Home page issue #2

adamj-codethink opened this issue May 4, 2020 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@adamj-codethink
Copy link

Hi there,

loving this theme, thanks for the work!

I'm having an issue where i have a home defined:

[[menu.main]]
name = "Home"
identifier = "home"
weight = 100
url = "/"

I also have an empty index.md file

However the index.html layout is not loading?

I'd like a home page that shows the most recent blog posts.

Any help on how to fix this would be appreciated

@adamj-codethink
Copy link
Author

Hi just an update my website is hosted here: https://adamjones.website/

I would like my "About" page to appear automatically when the websites starts, but if i create a index.md and add the markdown from my about page, the site navigation fails?

@lxndrblz lxndrblz self-assigned this May 5, 2020
@lxndrblz lxndrblz added the help wanted Extra attention is needed label May 5, 2020
@adamj-codethink
Copy link
Author

Hey,

A quick update.

Setting type: post on my posts fixed this issue.

The index page now appears correctly listing my latest blog posts.

I'd still be interested to know if i could remove that and just have a satic text page as the default root page though.

Thanks

@lxndrblz
Copy link
Owner

lxndrblz commented May 5, 2020

Hi Adam,

anatole comes with a custom archtype called post. If you create a new post by issuing the following command hugo new post\foo.md it will be automatically of type post and also appear on the frontpage.

Do I understand you correctly, that you want to use another site other than the index.html as your homepage? In this case you would have to patch the index.html with the single.html:

hugo new _index.md
cd themes/anatole/layouts
rm index.html
cp _default/single.html index.html

Hope this helps.

@lxndrblz lxndrblz closed this as completed May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants