2323# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2424# ones.
2525extensions = [
26- "ablog" ,
26+ # "ablog",
2727 "xyzstyle" ,
2828 'myst_nb' ,
2929 'sphinx.ext.intersphinx' ,
165165 # "single_page": True,
166166}
167167
168- html_sidebars = {
169- "*" : ["sidebar-nav-bs.html" , "sidebar-ethical-ads.html" ],
170- "posts/**" : [
171- "ablog/postcard.html" ,
172- "ablog/recentposts.html" ,
173- "ablog/tagcloud.html" ,
174- "ablog/categories.html" ,
175- "ablog/archives.html" ,
176- "searchbox.html" ,
177- ],
178- }
168+ # html_sidebars = {
169+ # "*": ["sidebar-nav-bs.html", "sidebar-ethical-ads.html"],
170+ # "posts/**": [
171+ # "ablog/postcard.html",
172+ # "ablog/recentposts.html",
173+ # "ablog/tagcloud.html",
174+ # "ablog/categories.html",
175+ # "ablog/archives.html",
176+ # "searchbox.html",
177+ # ],
178+ # }
179179
180180html_context = {
181181 "github_user" : "xinetzone" ,
@@ -207,39 +207,3 @@ def setup(app):
207207
208208# -- 自定义网站的标题 --------------
209209# html_title = '动手学习 Python'
210-
211- # ========== ABlog 配置 ============================================================
212- blog_path = "posts"
213- blog_post_pattern = "posts/*.md"
214- blog_baseurl = "https://xinetzone.github.io/d2py"
215- fontawesome_included = True
216- post_auto_image = 1
217- post_auto_excerpt = 2
218- bibtex_bibfiles = ["references.bib" ]
219- bibtex_reference_style = "author_year"
220- # -- 博客作者、语言和位置 -------------------------------------------------
221-
222- # 一个作者名字的字典,映射到作者的完整显示名称和链接。
223- # 字典的键值应该在 ``post`` 指令中使用,以指代作者。默认是 ``{}``。
224- blog_authors = {
225- "lxw" : ("刘新伟" , None ),
226- }
227-
228- # 语言代码名称的字典,映射到这些语言的完整显示名称和链接。
229- # 类似于 :confval:`blog_authors`,
230- # 字典的键应该在 `post` 指令中使用,以指代位置。默认是 `{}`。
231- blog_languages = {'zh' : ('Chinese' , None ), 'en' : ('English' , None )}
232-
233- # 默认作者的名字
234- blog_default_author = "lxw"
235- # 默认语言的代码名称
236- blog_default_language = 'zh'
237- # 在 blog_locations 中定义的默认位置的名称。
238- # blog_default_location = None
239-
240- # -- 博客帖子相关 --------------------------------------------------------
241-
242- # 帖子的日期格式。默认 ``'%b %d, %Y'``
243- # ``datetime.date.strftime()`` 的参数
244- post_date_format = '%c'
245- post_date_format_short = '%b %d, %Y'
0 commit comments