jekyll-last-modified | Dead simple plugin to return the last modified date | Sitemap library
kandi X-RAY | jekyll-last-modified Summary
kandi X-RAY | jekyll-last-modified Summary
Dead simple plugin to return the last modified date of a file. Useful to build a better sitemap.xml :)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Render the site content
jekyll-last-modified Key Features
jekyll-last-modified Examples and Code Snippets
Community Discussions
Trending Discussions on jekyll-last-modified
QUESTION
I'm struggling to overcome a strange behavior with Jekyll-Assets when exporting all assets correctly on build command.
The configuration is set to use cachebusting with "file system" cache type. When building we get all images and fonts correctly. But on one of the scss
files it seems that fonts and images are exported randomly (sometimes yes, other times no). When files are not exported the path written in css is correct, containing the hash for the cachebust.
While trying to debug with deleting .assets-cache
and _site/
folder I've notice the random gets even much more frequent.
This is the configuration
Dev environment(Docker Container):
...ANSWER
Answered 2018-Aug-23 at 13:10TL;DR: Deleting _site
before build caused the problem. Also deleting .jekyll-cache
before build solved the problem for me.
I had a very similar experience with Jekyll-assets. During development it occurs that some images were missing in the _site/assets
folder. After a bit trying out I found a way to reproduce it.
- Checkout a clean version of the code
- Build with
bundle exec Jekyll build
- Run
bundle exec jekyll clean
(which deletes, among others, the _site folder) - Build with
bundle exec Jekyll build
again
After these steps I had missing files in the _site/assets
folder. What solved the problem for me was additional to using the jekyll clean
to delete the folder .jekyll-cache
. I quiet not deep enough into jekyll-assets to understand how the caching in this folder works, but at least it solves the problem. If the folder is excluded from version control, and in case it's a generated cache folder it should be, you can also use git clean -xdf
but be careful with this, it deletes any file, that is not under version control! I would be grateful if you could verify my solution according to your concrete case.
I'm sorry that I could not provide you a real explanation for why this happens, but I hope that my answer could help you anyway.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jekyll-last-modified
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page