Added document title and fixed viewport size
This commit is contained in:
@@ -85,10 +85,12 @@ const writeMarkdownAsHtmlToOutputDirectory = (
|
|||||||
) => {
|
) => {
|
||||||
markdownManifest.forEach((m) => {
|
markdownManifest.forEach((m) => {
|
||||||
const markdownAsHtml = toHtml(m.markdown, m.publicAssetDirectoryPath);
|
const markdownAsHtml = toHtml(m.markdown, m.publicAssetDirectoryPath);
|
||||||
|
const titleWithoutDashesOrNumbers = (m.name.slice(m.name.indexOf('-') + 1) ?? "").replaceAll('-', ' ');
|
||||||
const noteHtmlDocument = noteHtmlTemplate.replace(
|
const noteHtmlDocument = noteHtmlTemplate.replace(
|
||||||
markdownHtmlReplacementTag,
|
markdownHtmlReplacementTag,
|
||||||
markdownAsHtml
|
markdownAsHtml
|
||||||
);
|
|
||||||
|
).replace("{{title}}", titleWithoutDashesOrNumbers);
|
||||||
writeTextAsFile(
|
writeTextAsFile(
|
||||||
`${outputDirectory}/${m.directoryName}.html`,
|
`${outputDirectory}/${m.directoryName}.html`,
|
||||||
noteHtmlDocument
|
noteHtmlDocument
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<meta>
|
<meta>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>zacke.dev - playground</title>
|
||||||
<link href="base.css" rel="stylesheet" />
|
<link href="base.css" rel="stylesheet" />
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Document</title>
|
<title>zacke.dev</title>
|
||||||
<link href="base.css" rel="stylesheet" />
|
<link href="base.css" rel="stylesheet" />
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Document</title>
|
<title>zacke.dev - {{title}}</title>
|
||||||
<link href="base.css" rel="stylesheet" />
|
<link href="base.css" rel="stylesheet" />
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
|||||||
Reference in New Issue
Block a user