adisaktijrs / hexo-theme-minima

A lightweight dark/light theme for Hexo.js
https://adisaktijrs.github.io/minima
MIT License
225 stars 51 forks source link

Code block #22

Closed nerdeveloper closed 3 years ago

nerdeveloper commented 3 years ago

Hello there, This is a wonderful theme

Please I am trying to write an article and I am trying to use a particular feature in this theme||

Screenshot 2021-06-16 at 11 56 51

Please how do I activate this section on this theme for code?

adisaktijrs commented 3 years ago

Hi, thanks!

You can activate it by following these steps:

app.get('/', (req, res) => { res.send('Hello World!') })

app.listen(port, () => { console.log(Example app listening at http://localhost:${port}) }) {% endcodeblock %}

nerdeveloper commented 3 years ago

Hello, I did what you said, but still does not work.

i tried to inspect the element and I can see the prism CSS loaded on the page. I don't know what's happening

Screenshot 2021-06-21 at 00 27 25 Screenshot 2021-06-21 at 00 27 03 Screenshot 2021-06-21 at 00 27 51
adisaktijrs commented 3 years ago

I was looking at the generated html code on your blog and it seems to be the problem with the cache.

Can you modify the code section in one of your blog posts and try to generate/deploy it again (to make sure that Hexo will re-generated the code section with prims.js)

adisaktijrs commented 3 years ago

Oh my bad, you already did it right? Anyway, have you try to clear your Hexo cache?

nerdeveloper commented 3 years ago

hey, I did everything you said

My blog is in a private repository. I just made it public though

https://github.com/nerdeveloper/blog. You can run cloning it and running it on your PC and see if it works for you please

nerdeveloper commented 3 years ago

I am closing this because i was able to figure it out. thank you once again