Giter Club home page Giter Club logo

Comments (9)

LouisBarranqueiro avatar LouisBarranqueiro commented on May 26, 2024

Hi man. Can you show me the source code of your page. I fixed some problems with relative: true but there is still some bugs that come from Hexo (3.1.1). So I recommend to use relative_link to false. Currently, all links are relative even with relative to false.

from hexo-theme-tranquilpeak.

marlonpatrick avatar marlonpatrick commented on May 26, 2024

Hello Louis, there's nothing special in my code. To simulate this problem simply just download the latest version of tranquilpeak (1.1.1) and then set relative_link to true.

But did a test with the default theme (landscape) and resulted in the same problem. Thus, I am using relative_link = false.

It might be interesting you say something about the user documentation.

from hexo-theme-tranquilpeak.

LouisBarranqueiro avatar LouisBarranqueiro commented on May 26, 2024

Hi Patrick. Yeah I fixed this in this commit.
It works perfectly except you enter the blog url withouth the end / like this : http://localhost:4000/tranquilpeak-hexo-theme. In this case, all assets are not loaded. Other case, the root relative link is not correctly displayed, there is always a / in addition : ../..//. These bugs come from Hexo. That why I still recommand to use relativeto false. In the new version, I will add a section in user documentation to inform users about this issue.

I will release a new version of the theme soon :) (in two days I think). Thanks you for your feedback. :)

from hexo-theme-tranquilpeak.

LouisBarranqueiro avatar LouisBarranqueiro commented on May 26, 2024

I just found a solution to fix the second problem.

from hexo-theme-tranquilpeak.

LouisBarranqueiro avatar LouisBarranqueiro commented on May 26, 2024

I had an issue on Hexo : #1381

from hexo-theme-tranquilpeak.

marlonpatrick avatar marlonpatrick commented on May 26, 2024

Thank you Louis, I'm using relative_link=false as you recommends.

from hexo-theme-tranquilpeak.

hanmomhanda avatar hanmomhanda commented on May 26, 2024

Hi, Louis.
This is a really fantastic theme!!

I have the same problem as Patrick's.

I fixed the problem by just setting relative_link: false in _config.yml of Hexo.

But the official user document still says,

You have to set relative_link to true otherwise features like navigation bar will not work correctly.

So, I think the document also needs to be modified.

Thank you for the great theme. ^^

from hexo-theme-tranquilpeak.

LouisBarranqueiro avatar LouisBarranqueiro commented on May 26, 2024

Yeah, this is what I said 4 comments above :p. Thanks you man :)

from hexo-theme-tranquilpeak.

LouisBarranqueiro avatar LouisBarranqueiro commented on May 26, 2024

Tranquilpeak 1.2.0 is here. In user documentation, it's recommended to use Hexo 3.0.x and still disable relative links be cause issue #1381 is still not resolved. Hexo 3.1.x have more critical problem to generate relative links. An issue is open to fix this #1401.

from hexo-theme-tranquilpeak.

Related Issues (20)

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.