Skip to content

Commit cbc2832

Browse files
committed
change layout
1 parent 950897d commit cbc2832

2 files changed

Lines changed: 80 additions & 8 deletions

File tree

_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
markdown: kramdown
22
theme: null
3-
exclude:
4-
- README.md
53

_layouts/default.html

Lines changed: 80 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,88 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>{{ page.title }}</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<style>
8+
:root {
9+
color-scheme: dark light;
10+
--bg-color: #121212;
11+
--text-color: #e0e0e0;
12+
--link-color: #81aaff;
13+
--code-bg: #1e1e1e;
14+
--border-color: #333;
15+
}
16+
17+
body {
18+
background-color: var(--bg-color);
19+
color: var(--text-color);
20+
font-family: system-ui, sans-serif;
21+
max-width: 800px;
22+
margin: 2rem auto;
23+
padding: 1rem;
24+
line-height: 1.6;
25+
}
26+
27+
h1, h2, h3 {
28+
color: var(--text-color);
29+
}
30+
31+
a {
32+
color: var(--link-color);
33+
text-decoration: none;
34+
}
35+
36+
a:hover {
37+
text-decoration: underline;
38+
}
39+
40+
pre {
41+
background-color: var(--code-bg);
42+
padding: 1em;
43+
border-radius: 5px;
44+
overflow-x: auto;
45+
}
46+
47+
code {
48+
background-color: var(--code-bg);
49+
padding: 0.2em 0.4em;
50+
border-radius: 3px;
51+
font-family: monospace;
52+
}
53+
54+
blockquote {
55+
border-left: 4px solid var(--border-color);
56+
padding-left: 1em;
57+
color: #aaa;
58+
}
59+
60+
hr {
61+
border: none;
62+
border-top: 1px solid var(--border-color);
63+
margin: 2rem 0;
64+
}
65+
66+
table {
67+
width: 100%;
68+
border-collapse: collapse;
69+
margin-bottom: 1rem;
70+
}
71+
72+
th, td {
73+
border: 1px solid var(--border-color);
74+
padding: 0.5rem;
75+
}
76+
77+
th {
78+
background-color: #1a1a1a;
79+
}
80+
81+
img {
82+
max-width: 100%;
83+
height: auto;
84+
}
85+
</style>
686
</head>
787
<body>
8-
<nav>
9-
<a href="index.html">Home</a> |
10-
<a href="about.html">About</a> |
11-
<a href="contact.html">Contact</a>
12-
</nav>
13-
<hr>
1488
<main>
1589
{{ content }}
1690
</main>

0 commit comments

Comments
 (0)