Skip to content

Commit 8fa282c

Browse files
Commit
1 parent 5195082 commit 8fa282c

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/pages.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@ jobs:
4040
s = p.read_text(encoding='utf-8')
4141
except (OSError, UnicodeDecodeError):
4242
continue
43-
s2 = s.replace('<!-- 68bb0c03789759f1c7 -->', gm)
44-
s2 = s2.replace('<!-- 4026988d02413ecfd29e00197fb076a0 -->', bm)
43+
s2 = s
44+
if gm:
45+
s2 = s2.replace('<!-- 20596d974211649f6511dfa2dd6512d242da78ea8aee90 -->', gm)
46+
if bm:
47+
s2 = s2.replace('<!-- e144c04f3326c1277469d12b62b2fef9e73906 -->', bm)
4548
if s2 != s:
4649
p.write_text(s2, encoding='utf-8')
4750
count += 1
48-
if count == 0:
51+
if count == 0 and (gm or bm):
4952
sys.exit(1)
5053
"
5154
- uses: actions/upload-pages-artifact@v3

_includes/head-custom.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<!-- 68bb0c03789759f1c7 -->
2-
<!-- 4026988d02413ecfd29e00197fb076a0 -->
1+
<!-- 20596d974211649f6511dfa2dd6512d242da78ea8aee90 -->
2+
<!-- e144c04f3326c1277469d12b62b2fef9e73906 -->

0 commit comments

Comments
 (0)