diff --git a/ecosystem.config.js b/ecosystem.config.js index 9785541..14630b4 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -8,7 +8,8 @@ NODE_ENV: "development" }, env_production: { - NODE_ENV: "production" + NODE_ENV: "production", + PORT: 3000 }, log_date_format: "YYYY-MM-DD HH:mm Z", error_file: "./logs/err.log", diff --git a/package.json b/package.json index fa61d66..cd30789 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "start": "nodemon ./src/app.js --trace-exit", "maildev": "maildev", "dev": "./node_modules/pm2/bin/pm2 start --env development --watch", - "prod": "./node_modules/pm2/bin/pm2 start --env production" + "prod": "./node_modules/pm2/bin/pm2 start --env production", + "stop": "node_modules/pm2/bin/pm2 stop expressjs-blog" }, "keywords": [], "author": "", diff --git a/public/css/nav.css b/public/css/nav.css index 6ee9e57..b27490e 100644 --- a/public/css/nav.css +++ b/public/css/nav.css @@ -1,5 +1,7 @@ -nav a { - text-transform: capitalize; +.sidebar h3.menu-year, +.sidebar h4, +.sidebar a { + text-transform: capitalize !important; } /* Navigation adjustments for small screens */ @media (max-width: 600px) { diff --git a/public/css/post.css b/public/css/post.css new file mode 100644 index 0000000..77691f8 --- /dev/null +++ b/public/css/post.css @@ -0,0 +1,26 @@ +.post-content h1 { font-size: 2.5rem; font-weight: 700; } +.post-content h2 { font-size: 1.8rem; margin-top: 2rem; } +.post-content p { max-width: 60ch; margin-bottom: 1.25rem; } +.post-content pre { background: #2d2d2d; color: #ccc; padding: 1rem; border-radius: 6px; overflow-x: auto; } +.post-content code { font-family: monospace; } +.post-content > * + * { + margin-top: 1.5rem; + } + .post-content p, .post-content li { + line-height: 1.6; + letter-spacing: 0.02em; + } + .post-content img { + max-width: 100%; + height: auto; + display: block; + margin: 1rem 0; + } + .post-content blockquote { + border-left: 4px solid #ccc; + padding-left: 1rem; + color: #666; + font-style: italic; + margin: 1rem 0; + } + \ No newline at end of file diff --git a/src/views/layouts/main.handlebars b/src/views/layouts/main.handlebars index 313bce4..ba372a5 100644 --- a/src/views/layouts/main.handlebars +++ b/src/views/layouts/main.handlebars @@ -1,24 +1,29 @@ -
- - - - {{{_sections.styles}}} -