1.4 KiB
1.4 KiB
Title | Subtitle | Desc | Date | Keywords | Category | Featured | Public |
---|---|---|---|---|---|---|---|
test | sub | brief desc | 2023-09-27 | main foo bar qux | Test | True | True |
Test article
This is a crazy testy
toc?
[TOC]
foo
HTML
lipsum1
INLINE DIVbold
bar bar
important | table |
---|---|
value | 2 |
3 | 4 |
5 | 2 |
foo
big code
from django.db import models
from django.utils.translation import gettext as _
from start.models import Searchable
import logging
logger = logging.getLogger(__name__)
import markdown
ARTICLE_DIR = "/app/blog/data/articles"
EXTENSIONS = [
"extra",
"admonition",
"codehilite",
"toc"
]
class Category(models.Model):
"""
A category of blog posts
Name not translated because it would make i18n in urls and Searchables specifically a pain.
Maybe some day it would be cool if these were Searchable
"""
name= models.CharField(max_length=50)
slug = models.SlugField()
class Meta:
verbose_name = _("Category")
verbose_name_plural = _("Categories")
def __str__(self):
return f"{{<{self.__class__.__name__}>\"{self.name}\"}}"
a
bar
a
qux
a
baau
*[HTML]: Hyper Text Markup Language
-
foooootnote ↩︎