Code Monkey home page Code Monkey logo

Comments (5)

mirovarga avatar mirovarga commented on August 14, 2024

Did you rebuild the blog (litepub build) after editing the templates?

from litepub.

phayz avatar phayz commented on August 14, 2024

Wow... thank you for such a quick response!

Yes, I did try editing the templates, but that caused issues elsewhere. :( I really don't know what I'm doing in editing the templates.

For example, editing the template to make the posts pages use a relative path, I failed to do the same for the tags page because they are one "layer" deeper, it seems.

from litepub.

mirovarga avatar mirovarga commented on August 14, 2024

I'm afraid relative paths won't work here without completely rewriting the default templates (or writing your own ones). But I think changing e.g. /css/font.min.css to /blog/css/font.min.css in the layout.tmpl template might work (i.e. still using absolute paths but also including the subdirectory).

Also have a look at a similar issue to yours - maybe it will help.

from litepub.

phayz avatar phayz commented on August 14, 2024

Thank you. I'll try changing the path to the CSS files and see if that works. Thanks also for the link to the related issue.

from litepub.

phayz avatar phayz commented on August 14, 2024

Thank you Miro. Adding the prefix /blog to the layout.tmpl file was successful. With the site built successfully, I then set it up as a GitLab Pages site, which meant it was then hosted on a subdomain. Although that required removing the `/blog' prefix, everything is now working with the subdomain configuration.

from litepub.

Related Issues (14)

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.