Skip to content

Commit

Permalink
load remark42 only on pages with date
Browse files Browse the repository at this point in the history
  • Loading branch information
22mahmoud committed Nov 17, 2023
1 parent 8d8b2f4 commit fd1e292
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions templates/default.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script>
var remark_config = {
host: 'https://remark42.maw.sh',
site_id: 'maw',
theme: 'dark',
no_footer: true,
simple_view: true,
components: ['counter', 'embed'],
}
</script>
<script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script>
$if(date)$
<script>
var remark_config = {
host: 'https://remark42.maw.sh',
site_id: 'maw',
theme: 'dark',
no_footer: true,
simple_view: true,
components: ['counter', 'embed'],
}
</script>
<script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script>
$endif$

<meta charset="utf-8" />
<meta
Expand Down

0 comments on commit fd1e292

Please sign in to comment.