mirror of
https://github.com/szymon-jozef/static-site-generator.git
synced 2026-09-07 12:10:42 +02:00
Merge pull request #4 from szymon-jozef/html-style/upgrade
Templates update
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
/* use catppuccin color palette */
|
||||
@import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css');
|
||||
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
|
||||
--light-bg: ghostwhite;
|
||||
--light-color: darkslategray;
|
||||
--light-code: tomato;
|
||||
|
||||
--dark-bg: darkslategray;
|
||||
--dark-color: ghostwhite;
|
||||
--dark-code: gold;
|
||||
}
|
||||
|
||||
* {
|
||||
background-color: light-dark(var(--light-bg), var(--dark-bg));
|
||||
color: light-dark(var(--light-color), var(--dark-color));
|
||||
}
|
||||
|
||||
code {
|
||||
color: light-dark(var(--light-code), var(--dark-code));
|
||||
background-color: light-dark(var(--ctp-latte-base), var(--ctp-frappe-base));
|
||||
color: light-dark(var(--ctp-latte-text), var(--ctp-frappe-text));
|
||||
}
|
||||
|
||||
6
templates/head.html
Normal file
6
templates/head.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{title}}</title>
|
||||
<link rel="stylesheet" href="/style/style.css">
|
||||
</head>
|
||||
3
templates/header.html
Normal file
3
templates/header.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<header>
|
||||
<h1>{{title}}</h1>
|
||||
</header>
|
||||
@@ -1,23 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{lang}}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{title}}</title>
|
||||
<link rel="stylesheet" href="/style/style.css">
|
||||
</head>
|
||||
{{head}}
|
||||
<body>
|
||||
<header>
|
||||
<h1>{{title}}</h1>
|
||||
</header>
|
||||
|
||||
<nav id="nav">
|
||||
|
||||
</nav>
|
||||
{{header}}
|
||||
|
||||
<main>
|
||||
<ol id="posts">
|
||||
|
||||
{{posts}}
|
||||
</ol>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user