hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
1.02k stars 583 forks source link

Posts returning 404 page not found #253

Closed mmanueljoao closed 3 years ago

mmanueljoao commented 3 years ago

Question

I think I'm in need of some help. First of all, here is my directory tree ... imagem

I have added only the example posts so I could teste before launching and, somehow, my hugo server -D isn't able to show me the posts. And yes, in the config.yaml I have the enableBlogPost: true.

Right now, this is the output of the hugo server -D: imagem

And of course, the error and locations that the site is trying to reach: imagem

Any idea of what can be wrong?

hossainemruz commented 3 years ago

Can you share the config.yaml file? Also, please share the repository link if possible.

mmanueljoao commented 3 years ago

Yes, sorry! Here is the link : https://github.com/mmanueljoao/mjoaolima.eu

and the config.yml

baseURL: https://mjoaolima.eu

languageCode: en
title: "a personal space | in main"
theme: "toha"

# disableLanguages: pt
languages:
  en:
    languageName: English
    contentDir: content/en
    weight: 1
  pt:
    languageName: Português
    contentDir: content/pt
    weight: 2

markup:
  tableOfContents:
    startLevel: 2
    endLevel: 5
    ordered: false

outputs:
  home:
    - HTML

enableEmoji: false

params:
  enableBlogPost: true

  enableTOC: true

  newsletter:
    enable: false

  background: images/site/background.jpg
hossainemruz commented 3 years ago

Can't access the repository. It's probably private.

mmanueljoao commented 3 years ago

it should be public now, can you check again ? Thank you !

hossainemruz commented 3 years ago

@mmanueljoao I have sent you a PR. That should fix the issue. The issue was related to tranlation. I had to rename all the file with *.bn.md suffix into *.pt.md.

Ref: https://github.com/mmanueljoao/mjoaolima.eu/pull/2

hossainemruz commented 3 years ago

@mmanueljoao Can you please close this issue if your problem get resoved?

mmanueljoao commented 3 years ago

I’ll have to check later today - had to format the pc. I’ll let you know


From: Emruz Hossain @.> Sent: Sunday, March 28, 2021 12:03:44 PM To: hugo-toha/toha @.> Cc: Manuel João Lima @.>; Mention @.> Subject: Re: [hugo-toha/toha] Posts returning 404 page not found (#253)

@mmanueljoaohttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmmanueljoao&data=04%7C01%7C%7Cf28aab66cfac466f854908d8f1d927c2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637525262256722665%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jtD5lN2AyUzafbURWkEOSqj1hjJK9H3TtPqwOowXfoY%3D&reserved=0 Can you please close this issue if your problem get resoved?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhugo-toha%2Ftoha%2Fissues%2F253%23issuecomment-808880745&data=04%7C01%7C%7Cf28aab66cfac466f854908d8f1d927c2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637525262256732617%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SXn4SRc2Nj7H9Rlpiy74xH63e5K%2F%2FafewhvyqoSFWSs%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABUAN542XP3XLYLSRK6LCP3TF4EJBANCNFSM4ZNI3GHA&data=04%7C01%7C%7Cf28aab66cfac466f854908d8f1d927c2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637525262256732617%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=UDLCVe04zFxuqHCJmb0id38HWeB2vNKB%2BuQjn465XPA%3D&reserved=0.

mmanueljoao commented 3 years ago

@hossainemruz , I have a new problem that happened after I've pulled your fix, but I don't really see how it can be related. Somehow, background and author images are now not appearing.

I have them at assets\images\{author,sections,site}, where backgroung is in the site folder and author in the author folder. This was working before but I noticed that there is now \resources\_gen\images\.

Do you want me to close this one and open a new one ?

hossainemruz commented 3 years ago

Update the theme to latest version. You are still using v1.4.0.

mmanueljoao commented 3 years ago

Using git submodule updatewasn't pulling any files but using git submodule update --recursive --remote resolved the issue. I'll try and create an action for checking for updates, will have to look into it! Thank you.

I'm not very well versed in decompiling what you have done, but if I can help in any way with documentation, I'll gladly help.

hossainemruz commented 3 years ago

Sure. Any kind of help will be appreciated. It can be bug report or any suggestion. I hope you can close the issue now. :P