💄 Tweak heti
This commit is contained in:
parent
b19071ee01
commit
b6a9266bef
5 changed files with 13 additions and 5 deletions
|
@ -243,7 +243,7 @@ $gray: #919EB1;
|
|||
}
|
||||
}
|
||||
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
/* END - user name, avatar & tags */
|
||||
|
||||
|
|
|
@ -78,6 +78,8 @@ document.addEventListener("scroll", () => {
|
|||
}).then((html_string) => {
|
||||
const parser = new DOMParser();
|
||||
const next_page = parser.parseFromString(html_string, "text/html");
|
||||
const heti = new Heti(next_page);
|
||||
heti.autoSpacing();
|
||||
const rows = next_page.querySelectorAll(".moment-row");
|
||||
const container = document.querySelector(".page > .container");
|
||||
rows.forEach((r) => {
|
||||
|
@ -96,6 +98,6 @@ document.addEventListener("scroll", () => {
|
|||
{{ end }}
|
||||
|
||||
<script>
|
||||
const heti = new Heti('.heti');
|
||||
heti.autoSpacing();
|
||||
const heti = new Heti(document);
|
||||
heti.autoSpacing();
|
||||
</script>
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pangu/4.0.7/pangu.min.js"></script>
|
||||
{{ end }}
|
||||
|
||||
<link rel="stylesheet" href="//unpkg.com/heti/umd/heti.min.css">
|
||||
<script src="//unpkg.com/heti/umd/heti-addon.min.js"></script>
|
||||
<link rel="stylesheet" href="/style/heti.min.css">
|
||||
<script src="/scripts/heti-addon.min.js"></script>
|
||||
|
||||
<!-- website title -->
|
||||
<title>{{ .Site.Params.title }}</title>
|
||||
|
|
1
static/scripts/heti-addon.min.js
vendored
Normal file
1
static/scripts/heti-addon.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
static/style/heti.min.css
vendored
Normal file
5
static/style/heti.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue