GithubHelp home page GithubHelp logo

adisaktijrs / hexo-theme-minima Goto Github PK

View Code? Open in Web Editor NEW
220.0 220.0 51.0 495 KB

A lightweight dark/light theme for Hexo.js

Home Page: https://adisaktijrs.github.io/minima

License: MIT License

CSS 33.94% EJS 66.06%
hexo hexo-blog hexo-site hexo-theme hexo-theme-minima minima

hexo-theme-minima's Introduction

Hi folks, I am Adi Sakti Jrs ๐Ÿ‘‹

A passionate software engineer from Indonesia ๐Ÿ‡ฎ๐Ÿ‡ฉ
I love building web apps. Let's collaborate: [email protected]

Top Langs

hexo-theme-minima's People

Contributors

adisaktijrs avatar aleetsaiya avatar comicsans avatar jinzhongjia avatar navjotjsingh avatar ngtrio avatar pduchnovsky avatar yukimuon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hexo-theme-minima's Issues

Google Analytics support

Really like this theme, I have a few questions which I'll create as issues.

Is it possible to add a Google Analytics tag to the theme?

About code highlighting

I found a lot of topics about Prism in your source code, why don't we add more? hh๐Ÿ˜‰
I think we can add something interesting to this "layout.ejs" through the theme "_config.yml"

Dark theme still flashes

Hi, as the fix update on function setDarkMode(), there is still a small chance for redirect to flash to white page. I tried pduchnovsky's solution on his website to auto switch, but it still has a much smaller change to flash!
My guess is the loading time of the dark.css and js exec time.
My solution is like pduchnovsky's, but put default color to be dark then switch to light, also put the style to custom.css. As he already put up a pr I will wait for this to be reviewed and merged, also ask browser to cache custom.css in local.
My variance is in my forked branch, with my website
If you would like me to put up this, just reply under this issue๐Ÿ˜›

Pages Won't Load

I'm trying to figure out why my pages are showing the source code instead of loading the .md file.

Also, what do I put to add pages to the config file? And where do I put those files? For example, the About page and file. That won't load either.

Here is an example I created: https://dreamy-darwin-5a2f0b.netlify.app/

Customise footer

How can I customise the footer further?

I'd like to be able to add a copyright and the current year, plus a link to my YouTube channel.

Issue related to categories title

When going to /categories/categoryname, the title says "All posts". From my testing, it looks like archive.ejs is the used layout for categories and not tag.ejs. So migrating the title manipulation here as well fixed the issue.

archive.ejs:

<%
    var title = '';
    if (page.category) title = page.category;
    if (page.archive){
        if (page.year) title = page.year + (page.month ? '/' + page.month : '');
        else title = "Archives";
    }
%>
<% if(title && is_category()) { %>
  <h5 class="">Category โ€” <%- title %></h5>
<% } else if (title) { %>
  <h5 class=""><%- title %></h5>
<% } else { %>
  <h5>All Posts</h5>
<% } %>

tag.ejs

<%
    var title = '';
    if (page.tag) title = page.tag;
%>
<% if(title) { %>
   <h5 class="">Posts Related to โ€” <%- title %></h5>
<% } %>

In layout.ejs, it also lacks the is_category() case for the category title:

} else if (is_category()){
    title = 'Category - ' + page.category;
}

These fixed categories on my side ๐Ÿ˜ƒ .

I also to take the opportunity to say big thanks for this theme, I am learning a lot by this one, and it is much more digest than the default theme! The minimalistic css and ejs makes it very easy to customize it to my needs. The thumbnail feature is also amazing.

Need a function Next & Prev post

Need add function Next & Prev post in footer post

Exemple from njk:

        {%- if theme.post_navigation and (post.prev or post.next) %}
          {%- set prev = post.prev if theme.post_navigation === 'right' else post.next %}
          {%- set next = post.next if theme.post_navigation === 'right' else post.prev %}
          <div class="post-nav">
            <div class="post-nav-item">
              {%- if prev %}
                <a href="{{ url_for(prev.path) }}" rel="prev" title="{{ prev.title }}">
                  <i class="fa fa-chevron-left"></i> {{ prev.title }}
                </a>
              {%- endif %}
            </div>
            <div class="post-nav-item">
              {%- if next %}
                <a href="{{ url_for(next.path) }}" rel="next" title="{{ next.title }}">
                  {{ next.title }} <i class="fa fa-chevron-right"></i>
                </a>
              {%- endif %}
            </div>
          </div>
        {%- endif %}

_config.yml
post_navigation: left or right

Footer icon incompatible

Preview is directly from demo:
image
My guess for this is caused by

background-size: 100% 200%;

Also, I can see there are plenty of hacks can be done within this theme, but usually they locates within skeleton.css, hope you can collect these customization and add options in config.yml
Good work!

Can't see the blog title in homepage

Hey amazing developer, i can't see the title i homepage of this website having problem in it.
Help me plz see the pics below no problem. I tried many ways to do it.
1
2
Screenshot 2020-11-30 170246

Code block

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?

Adding Netlify CMS

Netlify CMS is best thing for blogger instead of just commit and pushing they can simple use the /admin using the netlify CMS. Can you plz plz add to this amazing template.

Mathjax Problem

Hi, minimal is a very simple and awesome Hexo theme. But there is still a problem with mathjax. Can this theme render mathjax? Thanks.

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.