Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question