samrayner / jekyll-asset-path-plugin Goto Github PK
View Code? Open in Web Editor NEWA liquid tag to output a relative URL for assets based on the Jekyll post or page
License: MIT License
A liquid tag to output a relative URL for assets based on the Jekyll post or page
License: MIT License
It seems it's not possible to add the post date to the path. Since the posts are in files that include the date, post names are not unique in my setup. Would including the date be a possible addition?
While using this plugin, I like to work with drafts and regular posts. This works great for all .md
files in the _posts
folder, but when running jekyll serve --drafts
and viewing assets on draft posts, they appear to be at a different path. When the draft post is moved to the published posts folder the asset path is correct.
Not sure if this is feature or a bug.
Per the Jekyll Assets documentation, you need to use single quotes to add a liquid tag as an argument. I was getting errors before I added the single quotes.
{% asset_path '{{ file.download }}' /downloads %}
Even so, I'm not able to get the above to work i.e. the url is not prefixed by /downloads. Is there a way to check if the plugin is being loaded by Jekyll?
Hi there,
Does this plugin supports collections?
The page build failed with the following error:
The tag asset_path
on line 39 in _posts/2016-07-09-X11.markdown
is not a recognized Liquid tag.
This is the error that i obtained when i tried to copy the .rb file and use asset_path to add a image to page.
Hi. I used your plugin in my Jekyll blog site. It works fine when I preview it in localhost, but when I publish the site to gh-pages, GitHub said:
Your site is having problems building: The tag asset_path on line 44 in _posts/2017-05-03-enable-direct3d-in-win2k-vbox.md is not a recognized Liquid tag. For more information, see https://help.github.com/articles/page-build-failed-unknown-tag-error/.
Apparently it is mentioning this line ![img]({% asset_path true-kernel32-string.png %})
.
And when I read this, it said
Other plugins are not supported, so the only way to incorporate them in your site is to generate your site locally and then push your site's static files to your GitHub Pages site.
I thought I already generated the site locally when I run bundle exec jekyll serve
? I'm confused now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.