File tree 7 files changed +65
-37
lines changed
7 files changed +65
-37
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ stackoverflow: stackoverflow # Add your stackoverflow account
41
41
# Newsletter
42
42
mailchimp : " https://github.us1.list-manage.com/subscribe/post?u=8ece198b3eb260e6838461a60&id=397d90b5f4"
43
43
44
- # Disqus
45
- discus_identifier : amaynez-github-io # Add your discus identifier
46
- comments_curtain : yes # leave empty to show the disqus embed directly
47
-
48
44
# Tracker
49
45
analytics : G-R8SZS2YBZK
50
46
fbadmin : ar.maybach
@@ -56,6 +52,18 @@ words_per_minute: 200
56
52
57
53
extensions :
58
54
mermaid_enable : true
55
+
56
+ # Comments
57
+ comments : utteranc # [disqus, utteranc]
58
+ comments_opts :
59
+ comments_curtain : yes # leave empty to show the disqus embed directly
60
+ repo : # The GitHub repo URL. https://utteranc.es/
61
+ issue_term : # The GitHub issue label
62
+ label : # The GitHub comments label
63
+ theme : # The GitHub comment's there. e.g. github-dark
64
+ # Disqus
65
+ discus_identifier : # Add your discus identifier
66
+
59
67
# Build settings
60
68
markdown : kramdown
61
69
mathjax : true
Original file line number Diff line number Diff line change
1
+ < section class ="comment-area ">
2
+ < div class ="comment-wrapper ">
3
+ {% if site.comments and site.comments_opts.comments_curtain %}
4
+ < div class ="row " id ="comment-curtain ">
5
+ < div class ="col-lg-8 col-sm-10 mr-auto ml-auto ">
6
+ < h2 class ="page-subtitle "> Comments</ h2 >
7
+ < div class ="comments-trigger " onClick ="toggle_comments() ">
8
+ < i class ="fa fa-comments "> </ i > Write a comment ...
9
+ </ div >
10
+ </ div >
11
+ </ div >
12
+ {% endif %}
13
+
14
+ {% if site.comments == 'utteranc' %}
15
+ {% if site.comments_opts.repo %}
16
+ < div id ="comment-layout ">
17
+ < script src ="https://utteranc.es/client.js " repo ="{{ site.comments_opts.repo }} "
18
+ issue-term ="{{ site.comments_opts.issue_term | default : title }} "
19
+ label ="{{ site.comments_opts.label | default : comments }} " theme ="{{ site.comments_opts.theme | default : github-light }} "
20
+ crossorigin ="anonymous " async >
21
+ </ script >
22
+ </ div >
23
+ {% endif %}
24
+ {% elsif site.comments == 'disqus' and site.comments_opts.discus_identifier %}
25
+ < div id ="comment-layout "> </ div >
26
+ < script >
27
+ ( function ( ) {
28
+ var d = document , s = d . createElement ( 'script' ) ;
29
+ s . src = '//{{ site.comments.discus_identifier }}.disqus.com/embed.js' ;
30
+ s . setAttribute ( 'data-timestamp' , + new Date ( ) ) ;
31
+ ( d . head || d . body ) . appendChild ( s ) ;
32
+ } ) ( ) ;
33
+ </ script >
34
+ < noscript > Please enable JavaScript to view the comments.</ noscript >
35
+ {% endif %}
36
+ </ div >
37
+ </ section > <!-- End Comment Area -->
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 116
116
{% if page.layout == "post" %}
117
117
< script >
118
118
function toggle_comments ( ) {
119
- document . getElementById ( 'comment-curtain' ) . classList . toggle ( 'hide' )
120
- document . getElementById ( 'disqus_thread' ) . classList . toggle ( 'show' )
119
+ var commentCurtain = document . getElementById ( 'comment-curtain' )
120
+ if ( commentCurtain ) {
121
+ commentCurtain . classList . toggle ( 'hide' )
122
+ }
123
+ var disqusThread = document . getElementById ( 'comment-layout' )
124
+ if ( disqusThread ) {
125
+ disqusThread . classList . toggle ( 'show' )
126
+ }
121
127
}
122
128
123
129
function copyToClipboard ( ) {
134
140
135
141
$ ( function ( ) {
136
142
if ( document . getElementById ( 'comment-curtain' ) == null ) {
137
- document . getElementById ( 'disqus_thread' ) . classList . toggle ( 'show' )
143
+ var disqusThread = document . getElementById ( 'comment-layout' )
144
+ if ( disqusThread ) {
145
+ disqusThread . classList . toggle ( 'show' )
146
+ }
138
147
}
139
148
140
149
var tweetTags = document . getElementsByTagName ( "tweet" ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ <h1 class="page-title">{{ page.title }}</h1>
35
35
{% include author-box.html %}
36
36
{% include recent-post.html %}
37
37
{% include newsletter.html %}
38
- {% include disqus .html %}
38
+ {% include comments .html %}
39
39
</ div >
40
40
</ div > <!-- End Wrapper -->
41
41
</ article >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ show_date: true
5
5
title : Single Neuron Perceptron
6
6
date : 2021-01-25 13:32:20 -0600
7
7
description : Single neuron perceptron that classifies elements learning quite quickly.
8
- img : posts/20210125/Perceptron.jpg
8
+ img : assets/img/ posts/20210125/Perceptron.jpg
9
9
tags : [machine learning, coding, neural networks]
10
10
author : Armando Maynez
11
11
github : amaynez/Perceptron/
Original file line number Diff line number Diff line change @@ -1064,8 +1064,8 @@ svg.menu-icon-house {
1064
1064
}
1065
1065
/* = = = = = = = = = = Post's comments = = = = = = = = = = */
1066
1066
.hide {display : none}
1067
- # disqus_thread {display : none}
1068
- # disqus_thread .show {display : block}
1067
+ # comment-layout {display : none}
1068
+ # comment-layout .show {display : block}
1069
1069
1070
1070
.comments {
1071
1071
margin-bottom : 2em ;
You can’t perform that action at this time.
0 commit comments