Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/goodroot/hugo-classic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKellen <root@goodroot.ca>2018-12-09 07:11:51 +0300
committerGitHub <noreply@github.com>2018-12-09 07:11:51 +0300
commitea4084c0e50efdc5bc9e5cd1c1dd9f7836cde414 (patch)
tree33903a2b2d27b55590761af8045bf1b16adca271
parentb0ea3b563108fc9bd0ecc673e06cfa8f3104b3bd (diff)
parent492d19adc8769cd28d472caec04791ea1ce05659 (diff)
Merge pull request #7 from zian999/master
Added KaTeX support and made some changes to the markdown-guide.md
-rw-r--r--exampleSite/content/post/2018-08-30-markdown-guide.md (renamed from exampleSite/content/post/2016-02-14-markdown-guide.md)56
-rw-r--r--layouts/partials/head_custom.html10
2 files changed, 30 insertions, 36 deletions
diff --git a/exampleSite/content/post/2016-02-14-markdown-guide.md b/exampleSite/content/post/2018-08-30-markdown-guide.md
index fc64964..d0e26f3 100644
--- a/exampleSite/content/post/2016-02-14-markdown-guide.md
+++ b/exampleSite/content/post/2018-08-30-markdown-guide.md
@@ -1,7 +1,7 @@
---
-title: Markdown Guide
+title: Markdown Guide (modified)
author: Open Source
-date: '2014-03-14'
+date: '2018-08-30'
categories:
- Example
tags:
@@ -109,28 +109,15 @@ doc](#an-h2-header). Here's a footnote [^1].
Tables can look like this:
-size material color
----- ------------ ------------
-9 leather brown
-10 hemp canvas natural
-11 glass transparent
+size|material |color
+----|------------|------------
+9 |leather |brown
+10 |hemp canvas |natural
+11 |glass |transparent
Table: Shoes, their sizes, and what they're made of
-(The above is the caption for the table.) Pandoc also supports
-multi-line tables:
-
--------- -----------------------
-keyword text
--------- -----------------------
-red Sunsets, apples, and
- other red or reddish
- things.
-
-green Leaves, grass, frogs
- and other things it's
- not easy being.
--------- -----------------------
+(The above is the caption for the table.)
A horizontal rule follows.
@@ -139,27 +126,24 @@ A horizontal rule follows.
Here's a definition list:
apples
- : Good for making applesauce.
-oranges
- : Citrus!
-tomatoes
- : There's no "e" in tomatoe.
+: Good for making applesauce.
-Again, text is indented 4 spaces. (Put a blank line between each
-term/definition pair to spread things out more.)
+oranges
+: Citrus!
-Here's a "line block":
+tomatoes
+: There's no "e" in tomatoe.
-| Line one
-| Line too
-| Line tree
+(Put a blank line between each term/definition pair to spread
+things out more.)
and images can be specified like so:
-![example image](example-image.jpg "An exemplary image")
+![example image](https://github.com/goodroot/hugo-classic/raw/master/images/partywizard.gif "An exemplary image")
-Inline math equations go in like so: $\omega = d\phi / dt$. Display
-math should get its own line and be put in in double-dollarsigns:
+Inline math equations go in like so: \\(\omega = d\phi / dt\\).
+Display math should get its own line and be put in in
+double-dollarsigns:
$$I = \int \rho R^{2} dV$$
@@ -168,4 +152,4 @@ which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc.
#### Images auto center:
-![Party](http://emojis.slackmojis.com/emojis/images/1475875185/1223/party-dinosaur.gif?1475875185)
+![Party](http://emojis.slackmojis.com/emojis/images/1475875185/1223/party-dinosaur.gif?1475875185) \ No newline at end of file
diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html
index 6520ca0..ead4da1 100644
--- a/layouts/partials/head_custom.html
+++ b/layouts/partials/head_custom.html
@@ -1,3 +1,13 @@
+<!-- KaTeX -->
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css" integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv" crossorigin="anonymous">
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js" integrity="sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O" crossorigin="anonymous"></script>
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/contrib/auto-render.min.js" integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF" crossorigin="anonymous"></script>
+ <script>
+ document.addEventListener("DOMContentLoaded", function() {
+ renderMathInElement(document.body);
+ });
+ </script>
+
<header>
<!--