github-actions[bot] on gh-pages
Synchronized build (compare)
dairiki on master
Remove eswarm.in from showcase … (compare)
github-actions[bot] on gh-pages
Synchronized build (compare)
BenjaminEchelmeier on blog_editor
Updated macro to include post.e… Updated blog-post model to incl… (compare)
BenjaminEchelmeier on blog-editor
BenjaminEchelmeier on blog-editor
[master] Fixing theme.ini, see … [master] Fixing the ini sample … Merge branch 'master' into blog… (compare)
BenjaminEchelmeier on blog-editor
Added a blog editor field, and … (compare)
github-actions[bot] on gh-pages
Synchronized build (compare)
@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.
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"
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
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 ....
: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 ....
@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) ?