添加评论功能 (#36)

* 添加评论功能

* Update main.yml
This commit is contained in:
Bingjie Yan
2021-10-27 09:13:19 +08:00
committed by GitHub
parent 790b1869bf
commit 7e86517cf5
4 changed files with 25 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# This is a basic workflow to help you get started with Actions
# This is a basic workflow to help you get started with Actions
name: CI

View File

@@ -1,13 +1,18 @@
site_name: 名校公开课程评价网
theme:
name: material
custom_dir: overrides
repo_url: https://github.com/conanhujinming/comments-for-awesome-courses/
markdown_extensions:
- def_list
- pymdownx.tasklist:
custom_checkbox: true
plugins:
- search:
lang:
- en
- ja
- ja

17
overrides/main.html Normal file
View File

@@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block disqus %}
<script src="https://giscus.app/client.js"
data-repo="beiyuouo/comments-for-awesome-courses"
data-repo-id="R_kgDOGR8dHA"
data-category="General"
data-category-id="DIC_kwDOGR8dHM4B_lvU"
data-mapping="pathname"
data-reactions-enabled="1"
data-emit-metadata="0"
data-theme="light"
data-lang="en"
crossorigin="anonymous"
async>
</script>
{% endblock %}

View File

@@ -4,7 +4,7 @@
import os
from urllib.parse import quote
EXCLUDE_DIRS = ['.git', 'docs', '.vscode', '.circleci', 'site']
EXCLUDE_DIRS = ['.git', 'docs', '.vscode', '.circleci', 'site', 'overrides', '.github']
README_MD = ['README.md', 'readme.md', 'index.md']
TXT_EXTS = ['md', 'txt']