Comments (5)
Did you rebuild the blog (litepub build
) after editing the templates?
from litepub.
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.
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.
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.
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)
- Enhancement request: feed HOT 1
- can u provide 32-bit version? HOT 5
- Can we make links relative to the installed folder HOT 1
- Adding image to posts - need slight modification HOT 1
- How can I have LitePub ignore dot files? HOT 1
- Long lines in code blocks are simply cut off when viewed on a small screen HOT 2
- How can I include images in posts? HOT 3
- Carridge Return - Line Feed fails to build
- How can I have posts in a single column, instead of two columns? HOT 1
- Does Litepub provide paging of blog posts? HOT 2
- Any way to create blog.html instead of index.html? HOT 2
- Are the dates supposed to be visible? HOT 4
- How can I hide one blog post from showing in the index HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litepub.