From 1b75c8a0eb8edf45ea56180a35169c03c684e232 Mon Sep 17 00:00:00 2001 From: XIAO LI Date: Wed, 31 Jan 2024 11:47:47 +0800 Subject: [PATCH 1/2] added the menu of sidebar --- _assets/main.css | 16 +++++++++++++++- _layouts/default.html | 18 ++++++++++++------ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/_assets/main.css b/_assets/main.css index 0edcfc2..33f82e2 100644 --- a/_assets/main.css +++ b/_assets/main.css @@ -1,2 +1,16 @@ /* _assets/main.css */ -/* Your styles go here */ \ No newline at end of file +/* Your styles go here */ +.container { + display: flex; + } + + .sidebar { + background-color: #f4f4f4; + padding: 20px; + width: 200px; + } + + main { + flex: 1; + padding: 20px; + } \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 28adb9f..be90f94 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,13 +10,19 @@ - +
+ -
- {{ content }} -
+
+ {{ content }} +
+