Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Adrien
@why-not-try-calmer
Hello! I have been using lektor for a couple of days and it feels just great! However, I am hitting kind of a ceiling with my lektor deploy ghpages workflow. With Gihub requiring soon ssh connections, and since I am using signed commits globally, I have to input a password three times to deploy with lektor (2x ssh for the branch then push + 1x gpg for signed commits). It's a bit of a hassle. Any idea or tips to help me lower the numbers?
Jonathan Vanasco
@jvanasco
Does anyone have a recommendation to accomplish this in Lektor:
I would like to display an "alert" box on certain pages. The content of the alert box would be a "Page" that is edited by the Lektor CMS.
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.
Jurgen Geitner
@jurgenizer
I love Lektor and have used it for a number of sites. Feature request please: Could WebP images be added as a recognized image attachment file type to the Lektor core code, in the same way that .jpg .jpeg .gif .png are? (For automatic thumbnailing and other built-in Lektor features.)
Eric Ma
@ericmjl
@Nycticorax can I ask if you've considered using GitHub actions to deploy to github pages? If you've not considered it and haven't tried it before, I am happy to show you some workflows from my own website repo: https://github.com/ericmjl/website/blob/master/.github/workflows/build-website.yml
tallmtt
@tallmtt
I am new to using lektor and really like it! What is the easiest syntax to add image attachments in a page's content?
Omar5997
@Omar5997
Hellow everybody,
I want to ask if the windows installer is available for Lektor. I am still struggling with cmd!
tallmtt
@tallmtt
Nevermind my question. This works: <img src="imagename.jpg" alt="" class="">
Michael Vartanyan
@mvartanyan

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.

Omar5997
@Omar5997
oh, thanks .. what is WSL?
Omar5997
@Omar5997
ok (windows subsystem for linux) .. it would work but it is still too much work to establish the environment and had to open it each time I'd like to manage my website content .. I really hope .. the windows installer is built so soon .. Lektor is quite a unique CMS choice
Uwe Kamper
@uwekamper

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?

1 reply
Bharath
@Its_bharathp_twitter

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

1 reply
Uwe Kamper
@uwekamper

@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.

Ghost
@ghost~6036e6486da0373984631692
Hello! I faced the same issue as in lektor/lektor#641. Is it possible to bypass it somehow or just deploy it from under another OS?
5 replies
Monette
@Monette5
Hi - I have created a wysiwyg interface for our lektor project - would you be interested in seeing it and if so where would I make the suggestion?
Olivier D.
@odeckmyn
Hi team ! I've been playing with Lektor for quite a long time now. I'm the author of several plugin (including lektor-i18n). I'm facing a very strange issue since a few days I can't solve by myself.
10 replies
My site is rendering good, but only once. When I try to build it again, it's raising a very strange error.
Could anybody help me please ? I'm stuck :(
Thanx in advance !
Ben Widawsky
@widawsky_twitter
I'd really like to get the output of git describe in a layout. Is there an easy way to do that?
4 replies
Monette
@Monette5
I have created a plugin and would like to use some JavaScript for it, however I can't see how to map the JS file within the plugin. I have tried to define it in the plugin class definition but it is still not found. Can anyone point me in the right direction? Thanks in advance.
j-b-grenouille
@j-b-grenouille
hi
3 replies
https://www.getlektor.com/docs/content/attachments/ as far as I anderstaend I havew to create the [attachment].[EXT].lr file bei Hand. So there is no possibility to have automated Metadata via Web-Admin UI
I was expectiong, if I have a default model at [Attachments] in the config file, this would be done outomatic, but it's not
also the .lr file needs to have a _model feald also if a defalt model is defined
did I miss something?
j-b-grenouille
@j-b-grenouille
I worked around using inotifywait on system base to create needet .lr files and also delte them, if the attachment ist deleted
pravin p
@hilt-pravin_gitlab
I'm trying to implement checkboxes type in admin side but unable to select checkboxes. Is their any alternative for checkboxes?
leonid-dubov
@leonid-dubov

Hi, I've tried to install Lektor 3.2 on macOS 11.2.3, but got an error with bulding cryptography module, full output here https://pastebin.com/qwAGAmPZ

If there some workaround to install Lektor correctly?

I've tried to upgrade system pip to latest version, but looks like Lektor doesn't use system one, even with sudo
leonid-dubov
@leonid-dubov
And lektor doesn't work properly
Udoka
@UdokaVrede
Hi everyone
j-b-grenouille
@j-b-grenouille

I'm trying to implement checkboxes type in admin side but unable to select checkboxes. Is their any alternative for checkboxes?

as far ad I know just downgrade, see:

4 replies
Hanny Goodwin
@hannylicious
Anyone here using or familiar with the markdown-highlighter plugin?
minkiu
@minkiu:matrix.org
[m]

Hey there, I am trying to create a plugin for lektor; I have content (page), which has a custom field vimeo_id and I would like to access that while on the Plugin, the idea is: if the content does not have an attachment (provided thumbnail) use BeautifulSoup to grab the thumbnail from the vimeo website.

I can't seem to reach the fields, I am introspecting context['this'] but can't seem to find them; and I am doing it on on_process_template_context any hints on the right direction?

minkiu
@minkiu:matrix.org
[m]
Oh I see, so the info I need is in context['this']._data is accessing _data the correct way about this?
minkiu
@minkiu:matrix.org
[m]
Another question, can Attachments be created on the fly? So in my previous example, I want to download the vimeo thumbnail, and ideally create an Attachment out of it and store it in the content folder.
sandeshveerani4
@sandeshveerani4
ImportError: cannot import name 'ContextVar' from 'werkzeug.local' any fix ?
Jonathan Vanasco
@jvanasco
I doubt this exists, but does anyone know of a lektor plugin that will support password-protected directories? e.g. something that would allow me to check a box and it creates an htaccess/htpasswd file.
sandeshveerani4
@sandeshveerani4
Why doesn't lektor support theming like Wordpress ?
syx-pravin
@syx-pravin
@tariquesani could you help me, I am trying to use Lektorify, I installed it in Wordpress, gave my lektor content folder path and created new post but it's not creating anything in the blog directory.
Could anyone help me how to use Lektorify with Wordpress?
syx-pravin
@syx-pravin
I think this group is slient, no one is responding
Philippe Muller
@pmuller
Is the project dead?
Michael Vartanyan
@mvartanyan
it's not, just this chat is not too active
Hanny Goodwin
@hannylicious
Yeah, this group is pretty quiet. IRC is the same. I was curious regarding IRC, any plans to move off of freenode given the big exodus from them?