diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-03-07 11:29:26 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-03-07 11:29:26 +0700 |
commit | 3e6f0389f0cdac7b90970c49f455205563b48ad6 (patch) | |
tree | 4e4f0a018b1aae2276767f7f8da75fb4c909e772 /_layout | |
download | site-3e6f0389f0cdac7b90970c49f455205563b48ad6.tar.gz |
Initialize a Franklin site
Diffstat (limited to '_layout')
-rw-r--r-- | _layout/foot.html | 9 | ||||
-rw-r--r-- | _layout/foot_highlight.html | 2 | ||||
-rw-r--r-- | _layout/foot_katex.html | 3 | ||||
-rw-r--r-- | _layout/head.html | 16 | ||||
-rw-r--r-- | _layout/head_highlight.html | 1 | ||||
-rw-r--r-- | _layout/head_katex.html | 1 | ||||
-rw-r--r-- | _layout/header.html | 12 | ||||
-rw-r--r-- | _layout/page_foot.html | 5 | ||||
-rw-r--r-- | _layout/tag.html | 18 |
9 files changed, 67 insertions, 0 deletions
diff --git a/_layout/foot.html b/_layout/foot.html new file mode 100644 index 0000000..f87c1a1 --- /dev/null +++ b/_layout/foot.html @@ -0,0 +1,9 @@ +<!-- CONTENT ENDS HERE --> + {{ if hasmath }} + {{ insert foot_katex.html }} + {{ end }} + {{ if hascode }} + {{ insert foot_highlight.html }} + {{ end }} + </body> +</html> diff --git a/_layout/foot_highlight.html b/_layout/foot_highlight.html new file mode 100644 index 0000000..616d9f4 --- /dev/null +++ b/_layout/foot_highlight.html @@ -0,0 +1,2 @@ +<script src="/libs/highlight/highlight.pack.js"></script> +<script>hljs.initHighlightingOnLoad();hljs.configure({tabReplace: ' '});</script> diff --git a/_layout/foot_katex.html b/_layout/foot_katex.html new file mode 100644 index 0000000..6c7e39f --- /dev/null +++ b/_layout/foot_katex.html @@ -0,0 +1,3 @@ +<script src="/libs/katex/katex.min.js"></script> +<script src="/libs/katex/auto-render.min.js"></script> +<script>renderMathInElement(document.body)</script> diff --git a/_layout/head.html b/_layout/head.html new file mode 100644 index 0000000..079b80d --- /dev/null +++ b/_layout/head.html @@ -0,0 +1,16 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + {{if hasmath}} {{insert head_katex.html }} {{end}} + {{if hascode}} {{insert head_highlight.html }} {{end}} + <link rel="stylesheet" href="/css/franklin.css"> + <link rel="stylesheet" href="/css/basic.css"> + <link rel="icon" href="/assets/favicon.png"> + {{isdef title}} <title>{{fill title}}</title> {{end}} +</head> +<body> + {{insert header.html}} + +<!-- Content appended here --> diff --git a/_layout/head_highlight.html b/_layout/head_highlight.html new file mode 100644 index 0000000..b0b9142 --- /dev/null +++ b/_layout/head_highlight.html @@ -0,0 +1 @@ +<link rel="stylesheet" href="/libs/highlight/github.min.css"> diff --git a/_layout/head_katex.html b/_layout/head_katex.html new file mode 100644 index 0000000..755f249 --- /dev/null +++ b/_layout/head_katex.html @@ -0,0 +1 @@ +<link rel="stylesheet" href="/libs/katex/katex.min.css"> diff --git a/_layout/header.html b/_layout/header.html new file mode 100644 index 0000000..b3d0f94 --- /dev/null +++ b/_layout/header.html @@ -0,0 +1,12 @@ +<header> +<div class="blog-name"><a href="">Basic Template</a></div> +<nav> + <ul> + <li><a href="/">Home</a></li> + <li><a href="/menu1/">Code blocks</a></li> + <li><a href="/menu2/">More goodies</a></li> + <li><a href="/menu3/">Tags</a></li> + </ul> + <img src="/assets/hamburger.svg" id="menu-icon"> +</nav> +</header> diff --git a/_layout/page_foot.html b/_layout/page_foot.html new file mode 100644 index 0000000..9562d32 --- /dev/null +++ b/_layout/page_foot.html @@ -0,0 +1,5 @@ +<div class="page-foot"> + <div class="copyright"> + © {{ fill author }}. {{isnotpage /tag/*}}Last modified: {{ fill fd_mtime }}.{{end}} Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>. + </div> +</div> diff --git a/_layout/tag.html b/_layout/tag.html new file mode 100644 index 0000000..979b60c --- /dev/null +++ b/_layout/tag.html @@ -0,0 +1,18 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="/css/franklin.css"> + <link rel="stylesheet" href="/css/basic.css"> + <title>Tag: {{fill fd_tag}}</title> +</head> +<body> + {{insert header.html}} + <div class="{{div_content}}"> + <h1>Tag: {{fill fd_tag}}</h1> + {{taglist}} + {{insert page_foot.html}} + </div> +</body> +</html> |