LeonardoE95 / comments.blog.leonardotamiano.xyz

0 stars 0 forks source link

tech/how-i-manage-my-blog/ #4

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

How I manage my blog :: Leonardo Tamiano's Cyberspace

I’ve wanted to write about how I manage my blog since last year, when I wrote my first blog review1. Quoting directly myself from that blog post: I won’t go into the technical details of this setup right now, but I can’t stress enough just how good this setup is for someone who already likes Emacs a lot (such as myself). With this setup I’m able to focus exactly on the only thing that matters: writing.

https://blog.leonardotamiano.xyz/posts/how-i-manage-my-blog/

theElandor commented 1 year ago

Hi Leo, i followed your walkthrough, and my blog is now working locally. I now tried to host it on github pages, but it's just showing the homepage without finding the about section and even posts. I think there is some problem with the creation of the public folder with the "hugo" command...this is my "tree -L 1" output . ├── 404.html ├── assets ├── categories ├── img ├── index.html ├── index.xml ├── ox-hugo ├── page ├── sitemap.xml └── tags

LeonardoE95 commented 1 year ago

It seems like its missing the folders with the actual content. Try to remove the public folder and generate it again.

What's the output of "tree -L 2"?

For each post you should have a specific folder within the ./posts folder. Then, for each separate top-level page, like for example the "about page", you should have an ./about folder that contains an index.html with the content of the page.

Not sure what could be the issue though, especially if you actually see the site and all when doing hugo server -D.

It seems like its missing the folders with the actual content. Try to remove the public folder and generate it again.

What's the output of "tree -L 2"?

For each post you should have a specific folder within the ./posts folder. Then, for each separate top-level page, like for example the "about page", you should have an ./about folder that contains an index.html with the content of the page.

Not sure what could be the issue though, especially if you actually see the site and all when doing hugo server -D.

theElandor commented 1 year ago

. ├── 404.html ├── assets │   ├── 2078a57b79d547bf1e2502f8d249b867.woff │   ├── 58cebbe9a6bdcba6d4bb56a22a9e812f.woff │   ├── blue.css │   ├── green.css │   ├── languageSelector.js │   ├── main.js │   ├── pink.css │   ├── prism.js │   ├── red.css │   └── style.css ├── categories │   ├── index.html │   └── index.xml ├── img │   └── favicon ├── index.html ├── index.xml ├── ox-hugo │   └── profile.jpg ├── page │   └── 1 ├── sitemap.xml └── tags ├── index.html └── index.xml

Here's the output. I just checked and i have a different hugo version, the latest one...maybe it has to do with some flag that i am missing. https://theelandor.github.io/ as you can see it gives error 404 if you click about

LeonardoE95 commented 1 year ago

Here's the output. I just checked and i have a different hugo version, the latest one...maybe it has to do with some flag that i am missing. https://theelandor.github.io/ as you can see it gives error 404 if you click about

Have you created the about.md file in the ./content folder of your hugo basic directory? If so, could you link its content here please.

The thing is that if you remove the public folder and then execute hugo, it generates the new folder right? But the actual contents such as the about page are missing. That's what's weird about it.

Hm...

theElandor commented 1 year ago

Yes, the about.md file is in the ./content folder. [matte@MatteoLugliArch Elandor]$ cd content [matte@MatteoLugliArch content]$ ls about.md posts [matte@MatteoLugliArch content]$ pwd /home/matte/Elandor/content

I tried several time to re-generate the public folder but it always gives the same issue.

theElandor commented 1 year ago

I tried to go through the all process again using my laptop, that is running linux mint whith an older version of hugo. It's all fine now, and the exporting actually works. At this point I think that it has to do with some compatibility issue with the newest versions of hugo. Thanks for the support anyway ! Keep it up