This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
|
from django_jinja import library
|
|
|
|
from fmartingrcom.apps.config.models import SiteConfiguration
|
|
|
|
|
|
@library.filter
|
|
def readmore(content):
|
|
config = SiteConfiguration.objects.get()
|
|
summary, rest = content.split(config.readmore_tag, 1)
|
|
return summary
|