hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.16k stars 4.81k forks source link

total beginner to Hexo/blogs #2445

Closed joha0033 closed 7 years ago

joha0033 commented 7 years ago

Hey, I just downloaded atom as my text editor, and have a template generated from Hexo for a blog site. I'm trying to manipulate the sites content, but I'm not having any luck.

I've tried to do some research and everything I've found is either over my head at this point, or not working.

I have the program open, and my first piece I want to change is the "hexo" title on the logo anchor.

I'm not having any luck with editing it in any markdown, or index.html pages I've found.

I CAN edit the "My first post". Am I approaching this wrong? Do I need to write my own index.html page or something??

mrttl commented 7 years ago

Hi joha0033 and welcome to Hexo. Firstly, all posts you write in Hexo sit in the _posts folder, if you want to create a new post you can create a new post with Atom (create new file) or via the command line hexo new post xxxxx xxxxx being the name of your post. Then to edit your temple, you would need to open up the layouts folder and then you would see the templates you need to edit.

To be honest, the default theme that comes installed with Hexo is complex for someone new to Hexo, if you use EJS take a look at this minimal theme, it has the bare basics to start with: https://github.com/nadymain/hexo-theme-nadymain/tree/master/layout and if you use Jade (pug) the port is also available: https://github.com/nadymain/hexo-theme-nadymainjade

Just remember that template files like EJS or Jade get compiled HTML when you run the command hexo generate and will be saved in a folder called: public.

Also remember, _config.yml is your go to point for site configuration, all you site's main info goes here. But from my experience, start off with the minimal templates I posted, you will easily understand and see how Hexo deals with templates and content. Any further questions or issue just write back.

joha0033 commented 7 years ago

So awesome man. Thank you. I do have a couple more q's. I'm off my ass now, and will be back on the computer tomorrow or Monday. Amazing I got an actual email from some one. You're awesome.

On Sat, Mar 11, 2017 at 4:42 PM mrttl notifications@github.com wrote:

Hi joha0033 and welcome to Hexo. Firstly, all posts you write in Hexo sit in the _posts folder, if you want to create a new post you can create a new post with Atom (create new file) or via the command line hexo new post xxxxx xxxxx being the name of your post. Then to edit your temple, you would need to open up the layouts folder and then you would see the templates you need to edit.

To be honest, the default theme that comes installed with Hexo is complex for someone new to Hexo, if you use EJS take a look at this minimal theme, it has the bare basics to start with: https://github.com/nadymain/hexo-theme-nadymain/tree/master/layout and if you use Jade (pug) the port is also available: https://github.com/nadymain/hexo-theme-nadymainjade

Just remember that template files like EJS or Jade get compiled HTML when you run the command hexo generate and will be saved in a folder called: public.

Any further questions or issue just write back.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hexojs/hexo/issues/2445#issuecomment-285909306, or mute the thread https://github.com/notifications/unsubscribe-auth/ATmBi3YaFzzFUVDCJmEKJgJGQJ7uvycqks5rkzFIgaJpZM4MaUoF .

mrttl commented 7 years ago

Good stuff, post back with any questions anytime!