forked from kitian616/jekyll-TeXt-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
180 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{%- if site.disqus.shortname and page.key -%} | ||
<div id="disqus_thread"></div> | ||
<script> | ||
/** | ||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. | ||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ | ||
var disqus_config = function () { | ||
this.page.url = '{%- include snippets/page-url.html -%}'; | ||
this.page.identifier = '{{ page.key }}'; | ||
}; | ||
(function() { // DON'T EDIT BELOW THIS LINE | ||
var d = document, s = d.createElement('script'); | ||
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js'; | ||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
{%- endif -%} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* global Chart */ | ||
(function () { | ||
var SOURCES = window.TEXT_VARIABLES.sources; | ||
var PAGE = window.TEXT_VARIABLES.page; | ||
if (PAGE.chart) { | ||
window.Lazyload.js([SOURCES.jquery, SOURCES.chart], function() { | ||
var $canvas = null, $this = null, _ctx = null, _text = ''; | ||
$('.language-chart').each(function(){ | ||
$this = $(this); | ||
$canvas = $('<canvas></canvas>'); | ||
_text = $this.text(); | ||
$this.text('').append($canvas); | ||
_ctx = $canvas.get(0).getContext('2d'); | ||
(_ctx && _text) && (new Chart(_ctx, JSON.parse(_text)) && $this.attr('data-processed', true)); | ||
}); | ||
}); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* global ga */ | ||
(function() { | ||
var ENVIRONMENT = window.TEXT_VARIABLES.jekyll.environment; | ||
var GA_TRACKING_ID = window.TEXT_VARIABLES.site.ga_tracking_id; | ||
if(GA_TRACKING_ID && ENVIRONMENT !== 'development') { | ||
/* eslint-disable */ | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
/* eslint-enable */ | ||
ga('create', GA_TRACKING_ID, 'auto'); | ||
ga('send', 'pageview'); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(function () { | ||
var SOURCES = window.TEXT_VARIABLES.sources; | ||
var PAGE = window.TEXT_VARIABLES.page; | ||
if (PAGE.mathjax) { | ||
var _config = { tex2jax: { | ||
inlineMath: [['$','$'], ['\\(','\\)']] | ||
}}; | ||
if (PAGE.mathjax_autoNumber == true) { | ||
_config.TeX = { equationNumbers: { autoNumber: 'all' } }; | ||
} | ||
window.MathJax = _config; | ||
window.Lazyload.js(SOURCES.mathjax); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* global mermaid */ | ||
(function () { | ||
var SOURCES = window.TEXT_VARIABLES.sources; | ||
var PAGE = window.TEXT_VARIABLES.page; | ||
if (PAGE.mermaid) { | ||
window.Lazyload.js(SOURCES.mermaid, function() { | ||
mermaid.init(undefined, '.language-mermaid'); | ||
mermaid.initialize({ startOnLoad: true }); | ||
}); | ||
} | ||
})(); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{%- if __value == false -%} | ||
{%- assign __value = false -%} | ||
{%- elsif __value == true -%} | ||
{%- assign __value = true -%} | ||
{%- else -%} | ||
{%- assign __value = '' -%} | ||
{%- endif -%} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.