M
M
MAXH02015-12-03 07:09:48
Blogs
MAXH0, 2015-12-03 07:09:48

Hexo template - what to smoke to understand the construction principle?

So. Hexo.io Blog Generator
Looked at how the templates were organized and shuddered. Doc and read, looked at the source code of the templates. It is not at all clear where what and in what sequence is collected. I see the fragments, but the file that specifies the assembly sequence - no.
And I really liked the engine. I would like to understand.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maksim Zverev, 2015-12-03
@MAXH0

Don't they explain it here: https://hexo.io/docs/templates.html ?
In the themes folder there is a layot ​​folder, in it the layout.ejs file into which the main structure is connected, then everything happens in <% - body %> where, depending on the subfolder from source, the rest of the files from the layout folder are included
PS: this is if I understood correctly , at a glance.

A
arhi_pro, 2021-03-15
@arhi_pro

Maybe try not smoking? J
IMHO
The structure did not seem confusing to me!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question