Commit 97aefda4 authored by julientaq's avatar julientaq
Browse files

first installment for the comment using discourse

parent 96a0b770
{"Target":"css/main.min.1e1221461f26f4032023e471cfd9937a.css","MediaType":"text/css","Data":{"Integrity":"md5-HhIhRh8m9AMgI+Rxz9mTeg=="}}
\ No newline at end of file
{"Target":"css/main.min.b7139f7c5f584f83cebd51f225e477f4.css","MediaType":"text/css","Data":{"Integrity":"md5-txOffF9YT4POvVHyJeR39A=="}}
\ No newline at end of file
......@@ -430,4 +430,9 @@ header {
.downloads table {
grid-column: main/main;
}
#discourse-comments {
margin-top: 5em;
grid-column: main/main;
}
\ No newline at end of file
......@@ -57,6 +57,12 @@
{{ if .Params.intro }}<p class="intro">{{ .Params.intro | markdownify }} <br/><span class="tags"> {{ partial "tag-coma.html" . }}</span></p>{{end}}
{{ .Content }}
{{ block "comments" . }}
{{ partial "comments.html" .}}
{{ end }}
{{block "aside" .}}
<aside class="paginator {{ if and .NextInSection .PrevInSection }} both {{ end }}">
{{ with .NextInSection }}
......@@ -75,9 +81,15 @@
{{ end }}
</article>
{{ end }}
{{ block "footer" . }}
{{ partial "footer.html" . }}
{{ end }}
{{ block "script" . }}
{{ $js := resources.Get "/js/scripts.js" }}
<script src="{{$js.Permalink}}"></script>
......
......@@ -22,7 +22,9 @@
{{ end }}
{{ define "comments"}}
<!-- -->
{{ end }}
{{ define "print"}}
<!-- -->
{{ end }}
......
<div id='discourse-comments'>
</div>
<script type="text/javascript">
DiscourseEmbed = { discourseUrl: 'https://discourse.cabbagetreelabs.org/', discourseEmbedUrl: '{{ .Permalink }}' };
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
\ No newline at end of file
......@@ -11,4 +11,8 @@
{{partial "search.html"}}
</article>
{{ end }}
\ No newline at end of file
{{ define "comments"}}
<!-- -->
{{ end }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment