mirror of
https://github.com/avinal/avinal.github.io.git
synced 2026-07-04 07:40:09 +05:30
add favicon and html page handling
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
+13
-2
@@ -4,6 +4,17 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="msapplication-TileColor" content="#2d89ef">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/mdn-style.min.css">
|
||||
<link rel="stylesheet" href="/foo-style.min.css">
|
||||
@@ -26,7 +37,7 @@
|
||||
app.ports.sendString.subscribe(function (markdowndata) {
|
||||
|
||||
var numberOfHeadings = 0;
|
||||
let toc = '';
|
||||
// let toc = '';
|
||||
const renderer = new marked.Renderer();
|
||||
const sections = [];
|
||||
renderer.heading = (text, level) => {
|
||||
@@ -43,7 +54,7 @@
|
||||
</a>
|
||||
</h${level}>
|
||||
<div class="section-content">`;
|
||||
toc += `<li class="document-toc-item"><a class="document-toc-link" href="#${escapedText}">${text}</a></li>`;
|
||||
// toc += `<li class="document-toc-item"><a class="document-toc-link" href="#${escapedText}">${text}</a></li>`;
|
||||
if (numberOfHeadings === 0) {
|
||||
numberOfHeadings++;
|
||||
return sectionContent;
|
||||
|
||||
Reference in New Issue
Block a user