Skip to content

Commit

Permalink
Create main.html
Browse files Browse the repository at this point in the history
  • Loading branch information
FTS427 authored May 2, 2024
1 parent c7693f0 commit eb64392
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends "base.html" %}

{% block content %}
{{ super() }}
<h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>

<script>
const gitalk = new Gitalk({
clientID: 'Ov23ctHFDES6ZfMXo8l8',
clientSecret: '91cf57da04febc0840de5243f71eea0850607bba',
repo: 'FTS427.github.io',
owner: 'FTS427',
admin: ['FTS427'],
id: location.pathname, // Ensure uniqueness and len
language:'zh-CN', // 语言
distractionFreeMode: false // 无干扰模式
})

gitalk.render('gitalk-container')
</script>
{% endblock %}

0 comments on commit eb64392

Please sign in to comment.