{"id":13699173,"url":"https://github.com/dongweiming/lyanna","last_synced_at":"2025-04-13T02:23:23.711Z","repository":{"id":34101408,"uuid":"165510636","full_name":"dongweiming/lyanna","owner":"dongweiming","description":"My Blog Using Sanic","archived":false,"fork":false,"pushed_at":"2023-07-20T15:53:06.000Z","size":18596,"stargazers_count":638,"open_issues_count":6,"forks_count":173,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-10-11T19:46:52.891Z","etag":null,"topics":["aio","aiotask-context","asyncio","elementui","mako","sanic","sanic-framework","sanic-jwt","vue","vue-cli-3","vue-router","vuex"],"latest_commit_sha":null,"homepage":"http://www.dongwm.com","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dongweiming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-01-13T13:49:22.000Z","updated_at":"2024-10-05T14:42:01.000Z","dependencies_parsed_at":"2023-10-21T10:56:44.840Z","dependency_job_id":null,"html_url":"https://github.com/dongweiming/lyanna","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongweiming%2Flyanna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongweiming%2Flyanna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongweiming%2Flyanna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongweiming%2Flyanna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dongweiming","download_url":"https://codeload.github.com/dongweiming/lyanna/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248655012,"owners_count":21140408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aio","aiotask-context","asyncio","elementui","mako","sanic","sanic-framework","sanic-jwt","vue","vue-cli-3","vue-router","vuex"],"created_at":"2024-08-02T19:01:08.333Z","updated_at":"2025-04-13T02:23:23.682Z","avatar_url":"https://github.com/dongweiming.png","language":"Vue","funding_links":[],"categories":["Vue"],"sub_categories":[],"readme":"# lyanna\n\n[![Build Status](https://app.travis-ci.com/dongweiming/lyanna.svg?branch=master)](https://app.travis-ci.com/github/dongweiming/lyanna)\n![Tag](https://img.shields.io/github/v/tag/dongweiming/lyanna)\n![Python Version](https://img.shields.io/badge/python-3.10-blue)\n[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)\n\nMy Blog Using Sanic\n\n[查看文档 📖](https://dongweiming.github.io/lyanna/)\n\n## 版本提示\n\n* 4.0版本开始已经使用了最新的Python3.10语法\n* 3.X版本使用Python3.8语法\n* 2.X版本兼容Python2\n\n强烈建议升级到最新的CPython版本。\n\n## Overview\n\n这是一个使用asyncio生态开发的个人技术博客。具体如下：\n\n* Web框架: Sanic\n* 模板: Mako/Sanic-Mako\n* 数据库: TortoiseORM/aiomysql\n* 缓存: aiomcache\n* KV数据库: aioredis\n* 任务队列: arq\n* 代码质量: mypy/flake8/isort/bandit\n\n其他aio扩展: Sanic-Auth、Sanic-wtf、sanic-session、aiotask-context、asyncblink、sanic-sentry、sanic-jwt、aiosmtplib\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"600\" src=\"./screenshot/index.png\" \u003e\n\u003c/p\u003e\n\n管理后台使用: ElementUI + Vue-CLI + Vue-Router + Vuex\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"600\" src=\"./screenshot/admin.png\" \u003e\n\u003c/p\u003e\n\nInspired by [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin) and [vue3-admin-plus](https://github.com/jzfai/vue3-admin-plus)\n\n[动态](https://www.dongwm.com/activities) 使用: Vue-CLI + Vue-Router + Vuex\n\n## Features\n\n* 可以通过后台对文章、标签等做增删改查\n* 后台支持Markdown编辑/预览\n* 支持代码语法高亮\n* 支持TOC\n* 支持文章搜索\n* 支持Github登录评论\n* 支持Github登录对文章和平台表态\n* 可以分享文章到微信/微博/豆瓣/印象笔记/Linkedin\n* 支持Hexo等其他Markdown源文件的导入\n* 支持文章的语法高亮\n* 支持个人设置(如设置头像，个人介绍)\n* 支持定制导航栏\n* 支持RSS/Sitemap\n* 相关文章推荐(根据相似标签)\n* 响应式设计\n* 支持评论提及邮件\n* 支持 Github Cards. 具体用法请看 [这里](#github-cards)\n* 文章内容(除代码部分之外)自动「盘古之白」\n* 支持「文章专题」\n* 支持「动态」\n* 可对评论回应\n* 支持用Docker Compose本地开发\n* 支持kubernetes上运行\n* Widget系统，内置aboutme、blogroll、most\\_viewed、latest\\_comments、tagcloud、html等widget\n* 导航栏项可以设置icon和颜色(如RSS)\n* 支持配置CDN域名服务静态文件\n* 支持笔记类型的文章，在右侧会显示对应条目信息\n* 支持展示收藏的Movie(Tv)、Book和Game三种类型条目，并可以通过widget展示在主页右侧\n* 支持通过Widget显示rss阅读器feedly和inoreader的订阅链接，可以显示feedly订阅数\n\n## Github Cards\n\n文章中支持引用Github User/Repo Card，代码源于[Github Cards](https://github.com/lepture/github-cards)，对样式做了微调，感恩~\n\n效果: [我的博客](https://www.dongwm.com/page/about-blog)\n\n在文章中可以这么用:\n\n\u003cpre\u003e\n```card\n{\n  'user': 'dongweiming',\n  'repo': 'lyanna',\n  'right': 1\n}\n```\n\u003c/pre\u003e\n\ncard是lang，内容是json数据，你需要确保它可以作为参数让`ast.literal_eval`正常执行。其中`user`是必选键值对，包含`repo`会从`user`里面搜索这个`repo`，找不到的话会「Not Found」。`right`项是为了让Card向右对齐(默认向左对齐)\n\n## Showcase\n\n这些博客使用了Lyanna:\n\n- [薄荷盐的博客](https://www.boheyan.cn/)\n- [Yaoyao's Blog](http://www.liu-yao.com/)\n- [熊清亮的博客](https://seealso.cn/)\n- [Vimiix's Blog](https://vimiix.com)\n- [榕树下](https://www.ams.pub)\n- [读书笔记](http://www.chenvq.cn/)\n\nPS: 如果博主不希望自己的博客出现在此列表中可以各种渠道私信我或者提PR去掉~\n\n## Video\n\n[My blog](https://youtu.be/rHYvrefjZwg)\n\n[My blog's Admin page](https://youtu.be/iZCGTvC1NPo)\n\n## Thanks\n\n[![PyCharm](docs/pycharm.svg)](https://www.jetbrains.com/?from=lyanna)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongweiming%2Flyanna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdongweiming%2Flyanna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongweiming%2Flyanna/lists"}