Allow code blocks inside blogposts

This commit is contained in:
Konstantin 2024-03-14 04:04:59 +01:00
parent f96124b744
commit 5e3746eb51
4 changed files with 45 additions and 3 deletions

View file

@ -29,6 +29,7 @@ INSTALLED_APPS = [
"blog",
"home",
"search",
"wagtailcodeblock",
"wagtail.contrib.settings",
"wagtail.contrib.forms",
"wagtail.contrib.redirects",
@ -177,4 +178,21 @@ WAGTAILSEARCH_BACKENDS = {
# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
WAGTAILADMIN_BASE_URL = "http://example.com"
WAGTAILADMIN_BASE_URL = "https://iamkonstantin.eu"
WAGTAIL_CODE_BLOCK_LANGUAGES = (
('bash', 'Bash/Shell'),
('css', 'CSS'),
('dart', 'Dart'),
('elixir', 'Elixir'),
('go', 'Go'),
('html', 'HTML'),
('javascript', 'Javascript'),
('json', 'JSON'),
('kotlin', 'Kotlin'),
('python', 'Python'),
('swift', 'Swift'),
('yaml', 'YAML'),
)
WAGTAIL_CODE_BLOCK_THEME = 'twilight'