Hello, guys. Could you help me with this issue. I need to put a link to specific version of css file. For example:
<script src="./assets/js/paper-kit.min.js?v=2.3.1" type="text/javascript"></script>
But if I use asseturl filter like that
<script src="{{ '/static/js/plugins/paper-kit.min.js?v=2.3.1'|asseturl}}" type="text/javascript"></script>
there is an empty link in a result page.
How I can solve this?
v
) query isn't doing anything functional. You can drop it from the URI and just call paper-kit with {{ '/static/js/plugins/paper-kit.min.js'|asseturl}}
and ensure the actual content of the paper-kit.min.js
file in your project are from v2.3.1.
.lr
file - so you can just reference the same image (it's just a link). May many pages of the site (and "alternatives" can reference the same image - it's not effected by the image)... if fact: lektor has a "problem" - all attachments (inc. images) will always be outputted to the "primary" alternative (so you will have /en/ in the URL to the image, even if it's a "ES" image).
I want to ask if the windows installer is available for Lektor. I am still struggling with cmd!
there is (was?) a possibility to install Lektor under Windows https://www.getlektor.com/docs/installation/#command-line-application but I wouldn't count on it as it is probably not tested nearly as well as the Linux version. Use the WSL.
A coworker of mine is getting this error when trying to run "lektor build" on Windows 10:
OSError: [WinError 17] The system cannot move the file to a different disk drive: 'C:\Users\xxxxx\AppData\Local\Lektor\Cache\builds\5c6b4943d1e300e6f4a569e14f69f994\.__transe8mhexjg' -> 'C:\Users\xxxxx\AppData\Local\Lektor\Cache\builds\5c6b4943d1e300e6f4a569e14f69f994\index.html'
We also noticed that the directory that is mentioned in the error message does not exist. AFAIK it should be automatically created by Lektor, right?
I cannot reproduce the error on my local Windows 10 machine – for me everything just worked. Has anyone seen this kind of error before and can point me into any direction?
hello, trying to implement the categories as per doc https://www.getlektor.com/docs/guides/categories/ but the checkbox does not work at all. it gives error as follows
multiWidgets.jsx:47 Uncaught TypeError: Cannot read property 'props' of undefined
at onChangeHandler (multiWidgets.jsx:47)
Please help
@Its_bharathp_twitter
My interim solution is hardcoding the alert into a function, and using a field to enable/disable the alert on each Page. I'd really like this to be something a non-tech person can update though.
I would do something like this: First create a template that renders the error message as a string only without any HTML around it. You then can create a separate page that only contains the alert message and assign the new template to this page.
You can change Javascript code that displays the alert message to load the message from the newly created page.