~fabrixxm/lesanaweb

db546faca9611ab4d6b9eb2ef60a9abed1cf9c80 — fabrixxm 1 year, 1 month ago 1f5e64e
Add default lesana settings.yaml
2 files changed, 27 insertions(+), 2 deletions(-)

M app.py
A bookmarks/settings.yaml
M app.py => app.py +5 -2
@@ 3,10 3,13 @@ from flask import render_template, request
from lesana.collection import Collection


COLLECTIONPATH = None
COLLECTIONPATH = "./bookmarks"
PAGESIZE = 20

from settings import *
try:
    from settings import *
except ModuleNotFoundError as e:
    print("[I] no settings module. using defaults.")


app = Flask("linkopedia")

A bookmarks/settings.yaml => bookmarks/settings.yaml +22 -0
@@ 0,0 1,22 @@
name: Bookmarks
lang: italian
entry_label: '{{ eid }}: {{ title }} {{ url }}'
git: true
fields:
- name: title
  type: string
  prefix: S
  index: free
- name: url
  type: url
  index: field
- name: description
  type: text
  index: free
- name: tags
  type: list
  list: string
  index: field
- name: added
  type: datetime
  index: field