Git Product home page Git Product logo

Comments (11)

carlos-algms avatar carlos-algms commented on June 19, 2024

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:

image

from hexo-theme-materialize.

carlos-algms avatar carlos-algms commented on June 19, 2024

And please, let me know if it worked and share your site URL.

from hexo-theme-materialize.

CodeRunner00 avatar CodeRunner00 commented on June 19, 2024

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.

carlos-algms avatar carlos-algms commented on June 19, 2024

@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.

carlos-algms avatar carlos-algms commented on June 19, 2024

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.

CodeRunner00 avatar CodeRunner00 commented on June 19, 2024

Thank you.

I resolved this issue with

npm remove hexo-generator-index

from hexo-theme-materialize.

carlos-algms avatar carlos-algms commented on June 19, 2024

Good to know!!!!
Please, Share your site I really want to see what you developed!!

from hexo-theme-materialize.

CodeRunner00 avatar CodeRunner00 commented on June 19, 2024

Sure thing! I will once I've got everything up and running.

from hexo-theme-materialize.

CodeRunner00 avatar CodeRunner00 commented on June 19, 2024

Here is my blog. Still have a bit to go but it's up and running!
https://coderunner00.github.io/

from hexo-theme-materialize.

carlos-algms avatar carlos-algms commented on June 19, 2024

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.

carlos-algms avatar carlos-algms commented on June 19, 2024

failed miserably, :)

use 3 backticks then write javascript, should work

from hexo-theme-materialize.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.