Questions tagged [lektor]

a static content management system written in Python licensed under the BSD license.

This tag is for the Lektor CMS, a CMS for static websites written in Python that runs locally.

56 questions
6
votes
3 answers

Embed media content in lektor pages?

I am currently using Nikola as page generator. But depending on the page scope and users, Lektor seems to be easier and more streamlined for the end-user. This fits well for a new page I plan. Nikola also embedds media (youtube, vimeo, soundcloud,…
DaCoEx
  • 303
  • 1
  • 7
5
votes
1 answer

Lektor CMS : Can't get lektor-tags to work properly, The requested URL was not found on the server

I am trying to build a blog using lektor CMS, for that.. i needed a tags system, after searching i found a lektor plugin on lektor docs called lektor-tags I followed every step on the docs, struggled a lot and even visited the github repo to see if…
WaLid LamRaoui
  • 2,305
  • 2
  • 15
  • 33
5
votes
4 answers

How to show my posts in the first page and not in the "/blog" and maintaining other sub folders working like "/about" and "/projects"

I'm trying to use Lektor as my blog platform, but I am running into a few issues. Following the guide I can make everything work. My problem begin when I try to make the blog the first page, without the "/blog". If I query in the page template the…
4
votes
0 answers

How to create a list of all pages of lektor project?

In a model I am using a field of the type select to let the user choose a link among all children of the root of my site: [fields.link] label = Link type = select source = site.get('/').children To offer a list of these children in my model I use…
Andreas Gschossmann
  • 669
  • 1
  • 6
  • 21
4
votes
1 answer

Error when deploying Lektor site to Github Pages using Travis CI

I've got a Lektor site that I'm trying to deploy automatically in response to pull requests and commits, using the Travis CI trigger approach from the Lektor docs. The Lektor configuration works fine from the command line. The Travis build starts,…
freakboy3742
  • 1,026
  • 10
  • 15
3
votes
0 answers

webpack lektor bootstrap scss @import paths

I am attempting to use bootstrap with lektor. Following the instructions found here, everything worked as expected. I then used npm to install jquery and bootstrap. "Requiring" jquery and bootstrap in webpack/js/main.js works without a hitch.…
lysdexia
  • 1,786
  • 18
  • 29
3
votes
0 answers

Best practice to manage localized images with Lektor

We are creating a multilingual site with Lektor using Alternatives. Besides the localized content, we have few images containing some text which needs to be localized as well. Which would be the smartest way to create links to images depending on…
mturatti
  • 651
  • 5
  • 10
3
votes
1 answer

Support RST markup in lektor?

I have checked the CMS. The programme looks very nice. Instead of markdown I would like to use rather restructured text. Is RST markup also supported?
DaCoEx
  • 303
  • 1
  • 7
2
votes
1 answer

flowblock is shown in Admin view but not contentpage

I'm not completely new to Lektor but its a few years ago that I worked with it the last time. Now I have the problem that the flowblock is shown in the admin view but not in the content view. speisekarte.html {% extends "layout.html" %} {% block…
2
votes
2 answers

ModuleNotFoundError: No module named 'markdown' when running lektor server

When running lektor server to deploy and see my website, it reports markdown is absent, while it is installed. /usr/local/lib/lektor/lib/python3.7/site-packages/watchdog/utils/bricks.py:175: DeprecationWarning: Using or importing the ABCs from…
2
votes
1 answer

Show recent blog activity on main page

Using Lektor, trying to determine how to list the most recent three blogs by published date on the main landing (root) page. I'm feeling like I should be using a macro, but I don't understand how to pass the Blogs to the page template, or if this is…
AMG
  • 1,606
  • 1
  • 14
  • 25
2
votes
2 answers

changing the URL structure of lektor for blog posts to be in the parent directory

the problem: we are porting a wordpress blog to lektor. The slugs in wordpress of the post are directly under the main domain e.g. www.mypage.com/my-blogpost-about-food/ not www.mypage.com/blog/my-blogpost-about-food/. Now the owner is not ready to…
Toskan
  • 13,911
  • 14
  • 95
  • 185
2
votes
1 answer

support python 3 on installing script for lektor

I see that it has been merged already an year ago but the install.sh script still install with python 2.7 and all the docs still refers to python 2.7 I wonder what's the correct steps to have it working on python 3 and what's holds back for an…
diramazioni
  • 174
  • 9
2
votes
1 answer

How can I run Lektor within a Docker container?

I'm attempting to run lektor within a docker container and have hit a problem. If I 'ADD' (or 'COPY') my source code folder within my Dockerfile, everything works perfectly but, of course, the container is then not dynamic and doesn't respond to…
meatballs
  • 3,917
  • 1
  • 15
  • 19
2
votes
2 answers

How can I insert images in lektor markdown sections?

How can I insert an image in a markdown section in lektor. In particular, does the url filter work inside markdown, or who else to I reference the image location inside assets/static/?
Bud P. Bruegger
  • 1,021
  • 10
  • 15
1
2 3 4