Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:03

    github-actions[bot] on gh-pages

    Synchronized build (compare)

  • Aug 12 22:21
    dairiki edited #1053
  • Aug 12 22:05
    dairiki synchronize #1053
  • Aug 12 21:01
    dairiki synchronize #1053
  • Aug 12 20:06
    dairiki commented #346
  • Aug 12 19:24

    github-actions[bot] on gh-pages

    Synchronized build (compare)

  • Aug 12 19:23

    dairiki on master

    Remove eswarm.in from showcase … (compare)

  • Aug 12 19:15
    dairiki commented #121
  • Aug 12 06:05
    dairiki ready_for_review #1053
  • Aug 12 06:05
    dairiki edited #1053
  • Aug 12 06:04
    dairiki synchronize #1053
  • Aug 12 05:52
    dairiki synchronize #1053
  • Aug 12 03:34
    dairiki opened #1053
  • Aug 12 03:08

    github-actions[bot] on gh-pages

    Synchronized build (compare)

  • Aug 11 14:50

    BenjaminEchelmeier on blog_editor

    Updated macro to include post.e… Updated blog-post model to incl… (compare)

  • Aug 11 14:45

    BenjaminEchelmeier on blog-editor

    (compare)

  • Aug 11 14:34
    BenjaminEchelmeier closed #6
  • Aug 11 14:33
    BenjaminEchelmeier synchronize #6
  • Aug 11 14:33

    BenjaminEchelmeier on blog-editor

    [master] Fixing theme.ini, see … [master] Fixing the ini sample … Merge branch 'master' into blog… (compare)

  • Aug 11 14:30
    BenjaminEchelmeier opened #6
kw0n
@kw0n:matrix.org
[m]
What errors do you experience?
andreamoro
@andreamoro

@w0n:matrix.org if I attempt to run on the main.py file, I get an attempted relative import with no known parent package error. If I do setup as "Run as module" specifying lektor as module, with the following configuration file, I can make it start, but then any breakpoint is ignored:

    {
        "name": "Python: Lektor",
        "type": "python",
        "request": "launch",
        "cwd": "${workspaceFolder}/website",
        "module": "lektor",
        "args": [
            "server"
        ]
    }

So to add for instance a new functionality, or even a key into the configuration file (which is what I'm after now), it's not that straight forward as I can't test.

kw0n
@kw0n:matrix.org
[m]
OK sorry, i can't help there, hopefully someone else is gonna read here who is better familiar with the system.
andreamoro
@andreamoro
No worries. I have attempted to run and attach to a process from a webserver perspective and there I was able to connect to the Firefox instance on the Ubuntu machine I'm working, but again couldn't attach to anything.
Here I guess it's mostly me missing the proper way on how to do it, as I have never debugged something in react/node.
Andrea
@andrearicci
Hi. what's new in 3.3.0? (Can't find online)
Andrea
@andrearicci
thnx
Spiv114
@Spiv114
hi everyone i'm having a problem with the deployment of my website, so the idea was that using rsync i can deploy from local to my git so that in this way i can give the project to my "client" and he can edit everything from the admin ui and push to the git repository, i generated an ssh key and added the key to my github account but when i try to do the deployment this happen
Debugging middleware caught exception in streamed response at a point where response headers were already sent.
Traceback (most recent call last):
  File "C:\Users\spiv1\AppData\Local\lektor-cli\lib\Lib\site-packages\lektor\admin\utils.py", line 19, in generate
    for event in chain(f(*args, **kwargs), (None,)):
  File "C:\Users\spiv1\AppData\Local\lektor-cli\lib\Lib\site-packages\lektor\admin\modules\api.py", line 337, in generator
    for event in event_iter:
  File "C:\Users\spiv1\AppData\Local\lektor-cli\lib\Lib\site-packages\lektor\publisher.py", line 213, in publish
    client = self.get_command(target_url, tempdir, credentials)
  File "C:\Users\spiv1\AppData\Local\lektor-cli\lib\Lib\site-packages\lektor\publisher.py", line 209, in get_command
    return Command(argline, env=env)
  File "C:\Users\spiv1\AppData\Local\lektor-cli\lib\Lib\site-packages\lektor\publisher.py", line 126, in __init__
    self._cmd = portable_popen(argline, **kwargs)
  File "C:\Users\spiv1\AppData\Local\lektor-cli\lib\Lib\site-packages\lektor\utils.py", line 495, in portable_popen
    raise RuntimeError('Could not locate executable "%s"' % cmd[0])
RuntimeError: Could not locate executable "rsync"
1 reply
Cleedee
@Cleedee
Lektor's blog is out of date. For example, it does not report on versions 3.3.0 and 3.3.1.
hughbagan
@hughbagan
Hi folks. Is it possible in Lektor to remove /blog from a blog post's slug? Eg: instead of site.com/blog/a-new-post/ it would be site.com/a-new-post/ . So... is it doable?
Jerome Charaoui
@jcharaoui
Hello, is it possible for templates to access extra_flags passed to lektor build ?
Homer S. (er/he/han)
@homer77:ismus.net
[m]
@dairiki: I see that the lektor-website isn't updated any longer? I contributed a plugin (lektor-citation) lately and e.g. lektor-google-search also doesn't appear in the list. But I yet didn't see an open issue on gh, only two closed reg. this topic. Are you allready aware of this?
photong
@photong
Can one use filter() on attachments? Some expressions work, such as this.attachments.limit(3), but this.attachments.filter(F.path.contains('slide')) returns nothing even if slide1.jpg is an attachment.
Andrea
@andrearicci
hi, I use foolowing code to generate a menu. How can I adapt it to use the slug instead of the folder name?
{% for page in [site.root] if page.record_label recursive %}
{#% for page in [site.root] recursive if page.record_label %#}
<li><a href="{{ page|url }}">{{ page.record_label }}</a>
{% if page.children %}
<ul class="menulist">{{ loop(page.children) }}</ul>
{% endif %}
</li>
{% endfor %}
2 replies
Cleedee
@Cleedee
Hi! I installed Lektor in Ubuntu 21.10 with command curl -sf https://www.getlektor.com/installer.py | python3 and the following error occurred:
Traceback (most recent call last):
  File "/home/torcato/.local/lib/lektor/lib/python3.9/site-packages/lektor/devserver.py", line 36, in build
    builder = Builder(
  File "/home/torcato/.local/lib/lektor/lib/python3.9/site-packages/lektor/builder.py", line 1073, in __init__
    con = self.connect_to_database()
  File "/home/torcato/.local/lib/lektor/lib/python3.9/site-packages/lektor/builder.py", line 1090, in connect_to_database
    con = sqlite3.connect(
sqlite3.OperationalError: unable to open database file
Russell Keith-Magee
@freakboy3742
What's the state of support of the master/main transition for the ghpages publication plugin? The docs page mentions master as the default branch for username.github.io repositories, but doesn't mention anything about repositories that have main as a default.
Ama M
@amachefe
Hello All, Is there anyone who has successfully used the Themes feature? I am finding it hard to get it working
1 reply
Ama M
@amachefe
@nixjdm @rlaverde I will like to help out with the themes. However, I am finding it hard to set it up on my system. Coming from wordpress cms, lektor is the closest to the ease of use
Homer S. (er/he/han)
@homer77:ismus.net
[m]

Maybe s.o. here has an idea what's going wrong here on my website I administer with lektor:
https://praxis-muensterland.de/news/
In the main section you can see a list of news, on the right there's a shorter list of the five newest news.
Everything worked fine until now. I could add a news which appeared (both localy and remotely) in both columns.

But as you can see today when I added one it only appears in the main section, the Aktuelles section doesn't show it. I cleaned the build and rebuild again. I checked and altered the layout.html which contains

<aside id="newsandads">                                                         
  <h1>Aktuelles</h1>                                                            
  {% set newsfeed = site.query('/news').limit(5) %}                             
  {% for news in newsfeed|sort(attribute="article_id",reverse=True)  %}         
  <article>                                                                     
<header>                                                                        
  <h1>{{ news.title }}</h1>                                                     
  <time datetime="{{ news.pub_date|datetimeformat('%Y-%m-%dT%H:%M:%S-00:00', lo\
cale="de_DE") }}" class="date" pubdate="pubdate">{{ news.pub_date|datetimeforma\
t('E, dd. MMMM yyyy - HH:mm', locale="de_DE") }}</time>                         
</header>                                                                       
<p>{{ news.body|string()|striptags()|truncate(150) }}                           
<span>(<a href="{{ '/news/'|url }}#{{ news.article_id }}" title="Den ganzen Art\
ikel lesen" class="full">weiter</a>)</span>                                     
</p>                                                                            
</article>                                                                      
  {% endfor %}                                                                  
</aside>

What am I missing out? I didn't change anything since the last time in March ....

1 reply
Homer S. (er/he/han)
@homer77:ismus.net
[m]

:point_up: Edit: Maybe s.o. here has an idea what's going wrong here on my website I administer with lektor:
redacted
In the main section you can see a list of news, on the right there's a shorter list of the five newest news.
Everything worked fine until now. I could add a news which appeared (both localy and remotely) in both columns.

But as you can see today when I added one it only appears in the main section, the Aktuelles section doesn't show it. I cleaned the build and rebuild again. I checked and altered the layout.html which contains

<aside id="newsandads">                                                         
  <h1>Aktuelles</h1>                                                            
  {% set newsfeed = site.query('/news').limit(5) %}                             
  {% for news in newsfeed|sort(attribute="article_id",reverse=True)  %}         
  <article>                                                                     
<header>                                                                        
  <h1>{{ news.title }}</h1>                                                     
  <time datetime="{{ news.pub_date|datetimeformat('%Y-%m-%dT%H:%M:%S-00:00', lo\
cale="de_DE") }}" class="date" pubdate="pubdate">{{ news.pub_date|datetimeforma\
t('E, dd. MMMM yyyy - HH:mm', locale="de_DE") }}</time>                         
</header>                                                                       
<p>{{ news.body|string()|striptags()|truncate(150) }}                           
<span>(<a href="{{ '/news/'|url }}#{{ news.article_id }}" title="Den ganzen Art\
ikel lesen" class="full">weiter</a>)</span>                                     
</p>                                                                            
</article>                                                                      
  {% endfor %}                                                                  
</aside>

What am I missing out? I didn't change anything since the last time in March ....

Lizard
@LordLizard
I'm not sure if this can help. Some times i made changes in the code but are not reflected when I refresh the page or rebuild lektor. But when i test the page ina private window it works fine. So clearing the web browser cache
... helped to show any code changes.
kw0n
@kw0n:matrix.org
[m]
@nixjdm @rlaverde I will like to help out with the themes. However, I am finding it hard to set it up on my system. Coming from wordpress cms, lektor is the closest to the ease of use
Did you get it to work, amachefe (Ama M) ?
tallmtt
@tallmtt

I cannot find how to only display the first paragraph or number of characters in the templating for the blog page.

I want to just show a preview of the blog post on the main blog page.

Would someone point me in the right direction?

2 replies
Andrea
@andrearicci
Hi, I set up a blog following the guide, how can I make "next" and "previous" link to the other posts, putting the in the right order? (order_by = -edit_date, -pub_date). thnx
Andrea
@andrearicci
In a "partial" sitemap, I can't figure out how to sobstitue [site.root] in {% for page in [site.root] if page.record_label recursive %} with a reference to my '/blog'. How do I make a link inside a {% xxx %}? It's not the same as in a {{ xxx }}
Kjell Cornelius
@the-infrequency
Hey,
is Lektor still being developed?
I see that there are still commits to the repo, but last release and blog post on the site was 2020...
Love the idea, and have had fun playing around with it, but would suck to start using it for sites only to find that it is near-abandoned...
Andrea
@andrearicci
image.png
Kjell Cornelius
@the-infrequency
and I clearly need new glasses. Right. Apologies for the apparent blindness.
Can't wait to get stuck into templating.
nicoco
@_bifrost_nicoco=40nicoco.fr:aria-net.org
[m]
Hey all! I have a plugin that fetches data and injects it in the jinja context using on_setup_env(). It works fine, but the page where I use this data is only rebuilt if there is a change in contents.lr. As a workaround, I usually use lektor clean before building the website, but isn't there a 'lektor way' of forcing the rebuild of a specific page?
nicoco
@_bifrost_nicoco=40nicoco.fr:aria-net.org
[m]
In case anyone's reading ;), here is my plugin: https://gitlab.com/nicocool84/lektor-hal/-/blob/main/lektor_hal.py
It uses self.env.jinja_env.globals.update(...) to inject a value in jinja templates. Now, I'd like to somehow force rebuild the pages that use this value, since it's dynamically generated. I am not certain how to achieve that, any idea is welcome !
1 reply