feat: initial release of pengzhan.dev personal editorial blog platform
- Editorial web platform built with Node.js, Express, EJS, and Vanilla CSS - Markdown content engine with YAML frontmatter, bilingual variants, and hot-reload watcher - Unified SQLite with FTS5 search indexing, query logging, and schema filters - Centered editorial post layout with margin-docked left TOC and mobile bottom sheet - WordPress-grade comment system with moderation dashboard and bulk operations under /guanli - Complete SEO suite (JSON-LD structured data, RSS/Atom feeds, XML sitemap, robots.txt) - CI/CD workflows for linting, security audits (Gitleaks), automated tests, and Docker releases
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><%= typeof title !== 'undefined' ? `${title} - ${site.title}` : site.title %></title>
|
||||
|
||||
<meta name="description" content="<%= (seo && seo.description) || site.tagline %>">
|
||||
<link rel="canonical" href="<%= (seo && seo.canonicalUrl) || site.url %>">
|
||||
|
||||
<!-- Open Graph / Social Media -->
|
||||
<meta property="og:site_name" content="<%= site.title %>">
|
||||
<meta property="og:title" content="<%= (seo && seo.title) || site.title %>">
|
||||
<meta property="og:description" content="<%= (seo && seo.description) || site.tagline %>">
|
||||
<meta property="og:type" content="<%= (seo && seo.type) || 'website' %>">
|
||||
<meta property="og:url" content="<%= (seo && seo.canonicalUrl) || site.url %>">
|
||||
<% if (seo && seo.ogImage) { %>
|
||||
<meta property="og:image" content="<%= seo.ogImage %>">
|
||||
<% } %>
|
||||
|
||||
<!-- RSS Link -->
|
||||
<link rel="alternate" type="application/rss+xml" title="<%= site.title %> RSS Feed" href="/feed">
|
||||
|
||||
<!-- Core Stylesheets -->
|
||||
<link rel="stylesheet" href="/css/fonts.css">
|
||||
<link rel="stylesheet" href="/css/base.css">
|
||||
<link rel="stylesheet" href="/css/components.css">
|
||||
<link rel="stylesheet" href="/css/prism-okaidia.css">
|
||||
|
||||
<!-- Custom CSS overrides from PV if provided -->
|
||||
<link rel="stylesheet" href="/css/custom/custom.css" onerror="this.remove()">
|
||||
|
||||
<!-- Plugin head injection -->
|
||||
<%- pluginHook('injectHead', { pageType: typeof pageType !== 'undefined' ? pageType : 'default' }) %>
|
||||
</head>
|
||||
<body>
|
||||
<%- pluginHook('injectBodyStart', { pageType: typeof pageType !== 'undefined' ? pageType : 'default' }) %>
|
||||
|
||||
<%- include('../partials/header') %>
|
||||
|
||||
<main class="site-main">
|
||||
<div class="container">
|
||||
<%- body %>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<%- pluginHook('injectFooter', { pageType: typeof pageType !== 'undefined' ? pageType : 'default' }) %>
|
||||
|
||||
<%- include('../partials/footer') %>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="/js/toc.js" defer></script>
|
||||
<script src="/js/search-ui.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user