-
Notifications
You must be signed in to change notification settings - Fork 2
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
12 changed files
with
112 additions
and
57 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{ define "content" }} | ||
{{ partial "home.html" . }} | ||
{{ end }} | ||
{{ end }} |
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
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
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 |
---|---|---|
@@ -1,11 +1,49 @@ | ||
<script type="application/javascript" src="{{ "js/github-style.js" | absURL }}"></script> | ||
{{ if or .Params.math .Site.Params.math }} | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" | ||
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/[email protected]/dist/katex.min.css" | ||
integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> | ||
<script defer type="application/javascript" src="{{ "fa/js/all.min.js" | absURL }}"></script> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" | ||
<script defer src="https://fastly.jsdelivr.net/npm/[email protected]/dist/katex.min.js" | ||
integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" | ||
<script defer src="https://fastly.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" | ||
integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" | ||
onload="renderMathInElement(document.body);"></script> | ||
{{ end }} | ||
|
||
{{ if or .Params.MathJax .Site.Params.MathJax}} | ||
<script type="text/javascript" async | ||
src="https://cdn.bootcss.com/mathjax/2.7.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | ||
MathJax.Hub.Config({ | ||
tex2jax: { | ||
inlineMath: [['$', '$'], ['\\(', '\\)']], | ||
displayMath: [['$$', '$$'], ['\[\[', '\]\]']], | ||
processEscapes: true, | ||
processEnvironments: true, | ||
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'], | ||
TeX: { | ||
equationNumbers: { autoNumber: "AMS" }, | ||
extensions: ["AMSmath.js", "AMSsymbols.js"] | ||
} | ||
} | ||
}); | ||
|
||
MathJax.Hub.Queue(function () { | ||
// Fix <code> tags after MathJax finishes running. This is a | ||
// hack to overcome a shortcoming of Markdown. Discussion at | ||
// https://github.com/mojombo/jekyll/issues/199 | ||
var all = MathJax.Hub.getAllJax(), i; | ||
for (i = 0; i < all.length; i += 1) { | ||
all[i].SourceElement().parentNode.className += ' has-jax'; | ||
} | ||
}); | ||
</script> | ||
|
||
<style> | ||
code.has-jax { | ||
font: inherit; | ||
font-size: 100%; | ||
background: inherit; | ||
border: inherit; | ||
color: #515151; | ||
} | ||
</style> | ||
{{end}} |
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,25 @@ | ||
<style> | ||
.tags { padding: 15px 0; } | ||
</style> | ||
<div class="f6 text-gray mt-2 tags border-bottom"> | ||
{{ range $taxonomy, $terms := site.Taxonomies }} | ||
{{ range $term := $terms }} | ||
<a class="muted-link mr-3" href="{{ .Page.RelPermalink }}"> | ||
{{ if eq $taxonomy "tags" }} | ||
<svg class="octicon octicon-tag" viewBox="0 0 16 16" version="1.1" width="16" height="16"> | ||
<path fill-rule="evenodd" | ||
d="M2.5 7.775V2.75a.25.25 0 01.25-.25h5.025a.25.25 0 01.177.073l6.25 6.25a.25.25 0 010 .354l-5.025 5.025a.25.25 0 01-.354 0l-6.25-6.25a.25.25 0 01-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 010 2.474l-5.026 5.026a1.75 1.75 0 01-2.474 0l-6.25-6.25A1.75 1.75 0 011 7.775zM6 5a1 1 0 100 2 1 1 0 000-2z"> | ||
</path> | ||
</svg> | ||
{{ else }} | ||
<svg class="octicon octicon-package" viewBox="0 0 16 16" version="1.1" width="16" height="16"> | ||
<path fill-rule="evenodd" | ||
d="M8.878.392a1.75 1.75 0 00-1.756 0l-5.25 3.045A1.75 1.75 0 001 4.951v6.098c0 .624.332 1.2.872 1.514l5.25 3.045a1.75 1.75 0 001.756 0l5.25-3.045c.54-.313.872-.89.872-1.514V4.951c0-.624-.332-1.2-.872-1.514L8.878.392zM7.875 1.69a.25.25 0 01.25 0l4.63 2.685L8 7.133 3.245 4.375l4.63-2.685zM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432L2.5 5.677zm6.25 8.271l4.625-2.683a.25.25 0 00.125-.216V5.677L8.75 8.432v5.516z"> | ||
</path> | ||
</svg> | ||
{{ end }} | ||
{{ .Page.Title | lower }} | ||
</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> |
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,6 @@ | ||
<details> | ||
<summary>{{ (.Get 0) | markdownify }}</summary> | ||
<p></p> | ||
{{ .Inner | markdownify }} | ||
<p></p> | ||
</details> |