This commit is contained in:
2022-08-23 16:58:33 +02:00
commit 319b1a8293
8 changed files with 298 additions and 0 deletions

5
content/index.md Normal file
View File

@ -0,0 +1,5 @@
# Emanote Template
A template for your next [Emanote] website for hosting in [[GitHub Pages]], editing in [Visual Studio Code](https://emanote.srid.ca/resources/vscode), etc.. For details, see https://github.com/srid/emanote-template.
[Emanote]: https://emanote.srid.ca/

70
content/index.yaml Normal file
View File

@ -0,0 +1,70 @@
# For documentation and available settings, see
# https://github.com/srid/emanote/blob/master/default/index.yaml
page:
siteTitle: Home
headHtml: |
<snippet var="js.mathjax" />
<snippet var="js.mermaid" />
<snippet var="js.highlightjs" />
template:
theme: red
# You can add your own variables here, like editBaseUrl.
# See after-note.tpl to see where editBaseUrl gets used.
# editBaseUrl: https://github.com/srid/emanote-template/edit/master/content
# Uncomment this to get neuron-style pages
name: /templates/layouts/note
layout:
note:
containerClass: container mx-auto max-w-screen-lg
sidebar:
collapsed: false
# If you are hosting on GitLab Pages, you may want to remove this.
urlStrategy: pretty
# Builtin JS behaviour library. Use them in `page.headHtml` of your .yaml or .md
# frontmatter.
js:
# Syntax highlighting using prism.js
prism: |
<!-- Prism.js (doesn't work great in live server) -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/plugins/autoloader/prism-autoloader.min.js"></script>
# Syntax highlighting using highlight.js
highlightjs: |
<!-- highlight.js -->
<with var="js">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${value:highlightjs-ver}/styles/hybrid.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${value:highlightjs-ver}/highlight.min.js"></script>
<!-- Include languages that Emanote itself uses -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${value:highlightjs-ver}/languages/haskell.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${value:highlightjs-ver}/languages/nix.min.js"></script>
<script>hljs.highlightAll();</script>
</with>
highlightjs-ver: 11.6.0 # Ref: https://cdnjs.com/libraries/highlight.js
# Diagrams using mermaid.js
mermaid: |
<!-- mermaid.js -->
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>
mermaid.initialize({startOnLoad:false});
mermaid.init(undefined,document.querySelectorAll(".mermaid"));
</script>
mathjax: |
<script>
window.MathJax = {
startup: {
ready: () => {
MathJax.startup.defaultReady();
}
}
};
</script>
<script async="" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

View File

@ -0,0 +1,13 @@
<!-- div class="flex items-center justify-center mt-2">
<ema:metadata>
<with var="template">
<a class="text-gray-300 hover:text-${theme}-600 text-sm" title="Edit this page on GitHub"
href="${value:editBaseUrl}/${ema:note:source-path}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
</svg>
</a>
</with>
</ema:metadata>
</div -->