Comments (11)
Hi Eric, thanks for using my theme, I'm glad you liked it.
Try to add this as the first lines of you index.html
:
---
layout: index
title:
comments: false
---
Take a look at my files structure:
from hexo-theme-materialize.
And please, let me know if it worked and share your site URL.
from hexo-theme-materialize.
Thanks for the detailed response.
I did add the layout, title, and comments properties before. I tried changing the layout property to index.ejs but that did not fix it. I also had the index.html file in the source directory under my blog's root directory.
I have some familiarity with ejs and found that when I added the html right onto index.ejs in the materialize theme's source directory it displayed on the screen. Do you have a controller that displays the content of the layout index on the page? Thank you, Eric
from hexo-theme-materialize.
@CodeRunner00, I double checked my configs and the only thing that makes sense is add this to your
_config.yml
:
theme: materialize
exclude_generators:
- index
from hexo-theme-materialize.
Actually, what is happening for you ? Because there is no controllers at all. Everything is static and the files can be even .html or .md
As you can see here:
https://github.com/carlos-algms/carlos-algms.github.io/tree/source/source
Hexo will handle the .ejs files, those files exists on the theme folder because Hexe needs to process it, you should not change files under themes forlder.
The layout property should be index
without extension.
from hexo-theme-materialize.
Thank you.
I resolved this issue with
npm remove hexo-generator-index
from hexo-theme-materialize.
Good to know!!!!
Please, Share your site I really want to see what you developed!!
from hexo-theme-materialize.
Sure thing! I will once I've got everything up and running.
from hexo-theme-materialize.
Here is my blog. Still have a bit to go but it's up and running!
https://coderunner00.github.io/
from hexo-theme-materialize.
Congrats.
O saw that your code blocks are not getting highlighted, try to write
` javascript
(spaces to avoid github process it)
from hexo-theme-materialize.
failed miserably, :)
use 3 backticks then write javascript, should work
from hexo-theme-materialize.
Related Issues (4)
- blog link not working HOT 11
- Carousel not working HOT 5
- Index pages for categories and tags HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-materialize.