added layout.html and main.css
This commit is contained in:
parent
d9d071c169
commit
4746c59951
24
assets/_layout.html
Normal file
24
assets/_layout.html
Normal file
@ -0,0 +1,24 @@
|
||||
<!-- _layout.html -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>TCP.WIKI</title>
|
||||
<link rel="stylesheet" href="/assets/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>TCP.WIKI</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<!-- placeholder -->
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<div id="content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
52
assets/main.css
Normal file
52
assets/main.css
Normal file
@ -0,0 +1,52 @@
|
||||
/* assets/main.css */
|
||||
|
||||
/* placeholder for better sytle */
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
margin: 20px;
|
||||
background-color: #131313;
|
||||
color: #14ee00;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #059ce2;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #f700ff;
|
||||
}
|
||||
|
||||
header {
|
||||
padding: 1em;
|
||||
background-color: #5555;
|
||||
border-bottom: 1px solid #555;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
display: inline-block;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
display: inline;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
/* Add the following rule to improve code block appearance */
|
||||
pre {
|
||||
background-color: #5555;
|
||||
padding: 1em;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user