Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to include a custom HTML page? #3248

Closed
RichardJECooke opened this issue Sep 2, 2018 · 4 comments
Closed

Question: How to include a custom HTML page? #3248

RichardJECooke opened this issue Sep 2, 2018 · 4 comments

Comments

@RichardJECooke
Copy link

RichardJECooke commented Sep 2, 2018

Hi. I'm new to Hexo and loving it.

How do I include a completely custom page or post (html, js, and css file in a folder) that gets output as is, without alteration, when saying hexo generate or deploy?

I've read the docs and searched the issues but I can't find anything on this.

When I tried just copying an html file into the source/my_page folder it renders it with the CSS of my Cactus theme, and removes HTML things like <audio>

Thanks!

@tcrowe
Copy link
Contributor

tcrowe commented Sep 4, 2018

Hey @RichardJECooke 👋

This might be it right here in the ./_config.yml. See skip_render: array. It can take globs. https://hexo.io/docs/configuration#Directory

Glad to see you're jumping in and trying out hexo! 🤗

@RichardJECooke
Copy link
Author

Ah, thanks, I'd tried this before:
skip_render: ./source/graphic_score_maker
but it didn't work so I thought it wasn't that.

But this works: skip_render: graphic_score_maker/**/*

I should probably make a pull request to update the docs to not include the source folder in your globs.

@tcrowe
Copy link
Contributor

tcrowe commented Sep 4, 2018

Oh its an array in yaml so its like this:

´´´yml
skip_render:

  • one
  • two
  • three
    ´´´

@tcrowe
Copy link
Contributor

tcrowe commented Sep 4, 2018

Ugh I can't find the right characters on my phone. Check out this site for the right syntax. http://yaml.org/start.html

NoahDragon pushed a commit to hexojs/site that referenced this issue Sep 4, 2018
#759)

* Added example of use to skip_render property of configuration.md for _config.yml.
hexojs/hexo#3248

* Added more explanation to git deployment because it was hard to do as a new user. And hard to understand how all the branches work. Now it should be crystal clear, while still concise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants