Files
we-mp-rss/views/config.py
T
2026-04-15 15:29:12 +08:00

24 lines
1.2 KiB
Python

import os
from core.config import cfg
class Config:
base_path= "./public"
#模板路径
public_dir = f"{base_path}/templates/"
home_template = f"{base_path}/templates/home.html"
mps_template = f"{base_path}/templates/mps.html"
tags_template = f"{base_path}/templates/tags.html"
tags_articles_template = f"{base_path}/templates/tags_articles.html"
article_template = f"{base_path}/templates/article.html"
article_detail_template = f"{base_path}/templates/article_detail.html"
article_detail_print_template = f"{base_path}/templates/print.html"
articles_template = f"{base_path}/templates/articles.html"
site={
"name": cfg.get("site.name", "WeRss"),
"description": cfg.get("site.description", "A WeChat Official Account RSS Reader"),
"keywords": cfg.get("site.keywords", "WeRss,RSS,微信公众号,RSS订阅,RSS阅读器,RSS订阅助手,RSS订阅器,RSS订阅器,RSS订阅器,RSS订阅器"),
"logo": cfg.get("site.logo", "/static/logo.svg"),
"favicon": cfg.get("site.favicon", "/static/logo.svg"),
"author": cfg.get("site.author", "WeRss Team"),
"copyright": cfg.get("site.copyright", "© 2024 WeRss Team"),
}
base = Config()