optimze duplicate css
This commit is contained in:
@@ -5,10 +5,7 @@
|
||||
<div class="col-lg-8">
|
||||
<div class="content-column-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<link href="https://artalk.jamesflare.com/dist/Artalk.css" rel="stylesheet">
|
||||
<script src="https://artalk.jamesflare.com/dist/Artalk.js"></script>
|
||||
{{ .Content }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
<script async src="https://track.jamesflare.com/script.js" data-website-id="226742b8-6efb-4be9-8f8f-d297df42401c"></script>
|
||||
<link rel="preload" as="script" href="https://artalk.jamesflare.com/dist/Artalk.js">
|
||||
<link rel="preload" as="stylesheet" href="https://artalk.jamesflare.com/dist/Artalk.css">
|
||||
20
layouts/shortcodes/comments.html
Normal file
20
layouts/shortcodes/comments.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<link href="https://artalk.jamesflare.com/dist/Artalk.css" rel="stylesheet">
|
||||
<script src="https://artalk.jamesflare.com/dist/Artalk.js"></script>
|
||||
|
||||
<div id="artalk"></div>
|
||||
<script>
|
||||
Artalk.init({
|
||||
el: '#artalk',
|
||||
pageKey: '',
|
||||
pageTitle: '',
|
||||
server: 'https://artalk.jamesflare.com',
|
||||
site: 'NancyFlare',
|
||||
useBackendConf: true,
|
||||
vote: true,
|
||||
voteDown: true,
|
||||
uaBadge: true,
|
||||
listSort: true,
|
||||
imgUpload: true,
|
||||
preview: true,
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user