by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:37
    relikd commented #794
  • 11:31
    relikd commented #794
  • 11:27
    relikd commented #794
  • 11:06
    relikd opened #794
  • Jul 11 22:41
    runfalk labeled #793
  • Jul 11 21:38
    Travis lektor/lektor-website (master) passed (1480)
  • Jul 11 21:30
    relikd opened #793
  • Jul 11 16:51
    relikd opened #792
  • Jul 10 21:37
    Travis lektor/lektor-website (master) passed (1479)
  • Jul 10 16:34

    goanpeca on master

    fix yml config error (compare)

  • Jul 10 15:17

    goanpeca on master

    Update format (compare)

  • Jul 10 15:17
    goanpeca commented #31
  • Jul 10 15:14
    xlotlu commented #31
  • Jul 10 15:14

    goanpeca on master

    replaced Werkzeug's atom with P… fixed unit tests by commenting … updated CHANGELOG and 1 more (compare)

  • Jul 10 15:14
    goanpeca closed #31
  • Jul 10 15:14
    goanpeca closed #23
  • Jul 10 15:14
    goanpeca commented #31
  • Jul 10 15:12
    xlotlu commented #31
  • Jul 10 15:05
    xlotlu synchronize #31
  • Jul 10 15:05

    xlotlu on feedgenerator

    replaced Werkzeug's atom with P… fixed unit tests by commenting … updated CHANGELOG (compare)

Arky
@arky
Thanks @goanpeca You have been very helpful!
Kudos
Gonzalo Peña-Castellanos
@goanpeca
Glad to be of help
It could be an interesting project to share with others, so you could consider shating it over here
Michael Vartanyan
@mvartanyan
In case anyone looked for a visual editor for markdown fields in Lektor https://github.com/sphericalpm/lektor-simplemde
Gonzalo Peña-Castellanos
@goanpeca
Yes, we should add this to the lektor plugins website
Also it would really help to add a scrennshot of how it looks in the lektor Admin
Otherwise users are not sure what to expect
Are you the dev @mvartanyan ?
Michael Vartanyan
@mvartanyan
Are you the dev @mvartanyan ?
@apatrushev, a colleague of mine.
Gonzalo Peña-Castellanos
@goanpeca
Got it!
Arky
@arky
@goanpeca Sounds like a plan. It is a very large human impact project, once completed and deployed I'll file a bug for its inclusion in Lektor showcase.
1 reply
Andrea
@andrearicci
Hi, I love lektor but I don't see updates since a long time. Is the project active? Thank you
Gonzalo Peña-Castellanos
@goanpeca
Hi @andrearicci the core maintainers have reorganized a bit in the past few weeks and we are working to keep Lektor going and going strong.
A new release is planned to be released in a couple of weeks, so yes the project is active :-)
Andrea
@andrearicci
@goanpeca great news! thank you
Gonzalo Peña-Castellanos
@goanpeca
:+1:
Mountain/\Ash
@mountainash_twitter

Hello Lektor lovers - I've been working for hours today to get out 3 language/Alternatives site to output a valid variant sitemap.xml - it would be great if some of the Lektor experts could take a look at it (I put the code in the comments on the Lekor website Sitemap Guide):
http://disq.us/p/298xftx

I found that it's not easy to find out when a "virtual" page is being generated - aka a page that doesn't have a contents+xx.html file. Have I missed something with an attribute?

?
This might help
Mountain/\Ash
@mountainash_twitter
Not really - that's basically the one from the example (pretty basic). It only does one language/alternative (the alternative that it's requested in) and no alternative hreflang. I'll put the code in here for you to see what I mean:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{%- for alt in get_alts() %}
{%- set root = site.get('/', alt=alt) %}
   {%- for page in root.children if (page._source_alt == page._alt) or (page._source_alt == '_primary' and page._alt == {{ YOUR-PRIMARY-LOCALE }}) recursive %}
      <url>
      {# Very handy for debugging: {{page._source_alt}} | {{page._alt}} -#}
      <loc>{{ YOUR-HOST }}{{ page|url(absolute=True) }}</loc>
      {%- for hreflang in get_alts(page) if page.is_visible %}
      <xhtml:link rel="alternate" hreflang="{{ hreflang }}" href="{{ YOUR-HOST }}{{ page._path|url(alt=hreflang,absolute=True) }}"/>
      {%- endfor %}
      </url>
   {{- loop(page.children) }}
   {%- endfor %}
{%- endfor %}
</urlset>
Is there a way to get {{ YOUR-HOST }}? I'm currently using lektor-envvars to pass it in on build.
Also, Is there a way to get {{ YOUR-PRIMARY-LOCALE }} - I'm getting this manually in the xml.
Andrea
@andrearicci
hallo, can anyone help me to implement an automatic "last saved date" that updates when building? I've no idea where to start. Thank you
Andrea
@andrearicci
I found this that can be helpful https://pypi.org/project/jinja2-time/ but donnow how to use it
Pcoder
@pcoder
Hi, wonder if it is possible to disable subpages of a page altogether ?
Michael Vartanyan
@mvartanyan

Hi, wonder if it is possible to disable subpages of a page altogether ?

yes, put enabled=no in [children] section of the page's model

Michael Vartanyan
@mvartanyan

hallo, can anyone help me to implement an automatic "last saved date" that updates when building? I've no idea where to start. Thank you

jinja2-time will help you if you want to display the build time, not the last save time. For the latter, you'll need to clarify what "last save time" is. Is it the modification date on the content file being rendered by the template? In any case you probably need a little plugin.

Pcoder
@pcoder
Wonder why is there no simple answer to this -- how to get the absolute url to the root from the project file?
I've the url defined in the project.lektorproject file and I wonder is there a way to get this value ?
Arky
@arky
Anyone want to pitch in and help me build this plugin lektor/lektor#786
Dhruvi Butti
@Dhruvi16

Hey there! I am trying to deploy my lektor app on netlify but it is giving me such error -
(jinja2.exceptions.UndefinedError: 'check_file' is undefined)

CheckfilePlugin is a plugin in the project. Also I am unable to reproduce this error on my local it works fine on my local.
Can anyone help me please?

Uwe Kamper
@uwekamper
Is it possible for plugins to register their own URLs in the dev-server's Flask app?
Dhruvi Butti
@Dhruvi16
I wanted to ask how to make the packages available to the theme templates? While deploying my static website the templates in theme folder are not able to access the packages. Can anyone help please?
Thanks for the help in advance
Daniel Butler
@daniel-butler

if I wanted to use the

lektor clean
lektor minify
lektor deploy s3

commands from python code how would i do that?

Arky
@arky
Anyone have suggestions to achieve Table of Content (similar to https://www.sphinx-doc.org/en/1.5/markup/toctree.html) and next/previous at end of each page with Lektor?
The Lektor-markdown-header-anchors plugin seems promising https://www.getlektor.com/plugins/lektor-markdown-header-anchors/
Arky
@arky
Can anyone give me tips on how to debug templates. 'lektor server -v' doesn't give lot of debug information and there is little docs on lektor shell. Thanks !
2 replies
Arky
@arky
Am trying to figure out why my flowblocks are not included in the templates automatically.
Yash Bhalla
@bhallaY
Hi, I was wondering if anyone else is having trouble with the thumbnail method for .jpg attachments. I have a .jpg in a content folder without a model/metadata, and when following the docs to add it to a page, the image does not render if I use the thumbnail method like {% for image in post.attachments.images %} <img class="card-img p-2" src="{{ image.thumbnail(width=320, height=320, mode='fit')|url }}" alt="Cover of {{ post.title}}"> {% endfor %} but it does work when I do not call the thumbnail method.
Yash Bhalla
@bhallaY
Never mind, I figured it out. It was because I didn't have imagemagick installed. It seems to ship with Linux but not Windows or Mac (at least my Mac). Can this be made an explicit dependency?
Yash Bhalla
@bhallaY
Sorry for all the messages, but one more thing. I am on Lektor version 3.1.3, where thumbnail() is supposed to have a mode parameter, but it does not. The documentation says otherwise though. Can the documentation be updated? Or, if there is a mode parameter in Lektor version 3.1.3, which there should be according to the documentation, can someone maybe give me a hint to understand why it is not working on my Lektor install?
Patrik Dufresne
@ikus060_gitlab
Hello,
Is it possible to generate multiple pages from a single "content". I have SQLite database with a list of people. I want to generate one html page for each of them
Was looking into the generator() or add_build_program() API, but I'm not sure how to assemble them.
MahmoudAlser
@MahmoudAlser
hello
I think you need a web designer. I am ready to serve you
xlmahmoud41@gmail.com
+249999442922
Send me an email
Or WhatsApp