Skip to content

Commit bb05c6a

Browse files
Reduced the TopSpacing Sidebar in the CSS, Added Metadata for the each MD file, Recent Notes Component Section
1 parent ec00688 commit bb05c6a

File tree

5 files changed

+30
-14
lines changed

5 files changed

+30
-14
lines changed

content/Decorator Pattern.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#structural
1+
---
2+
title: Decorator Pattern
3+
tags:
4+
- structural
5+
---
26
## Definition
37

48
The Decorator pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.

content/Observer Pattern.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#behavioral
1+
---
2+
title: Observer Pattern
3+
tags:
4+
- behavioral
5+
---
26
## Definition
37

48
It Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. Just like the Subscription, as long as you take the subscription you will get the updates, when you invoke the Subscription you will stop getting the updates or say the services.

content/Strategy Pattern.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#behavioral
1+
---
2+
title: Strategy Pattern
3+
tags:
4+
- behavioral
5+
---
6+
27
## Definition
38

49
It defines a family of algorithms, encapsulates each one, and makes them interchangeable. The **Strategy Pattern** allows algorithms to vary independently from the clients that use them.

quartz.layout.ts

+13-10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ import * as Component from "./quartz/components"
55
export const sharedPageComponents: SharedLayout = {
66
head: Component.Head(),
77
header: [],
8-
afterBody: [],
8+
afterBody: [
9+
Component.MobileOnly(Component.Explorer({
10+
title: "Patterns",
11+
folderClickBehavior: "collapse",
12+
folderDefaultState: "collapsed",
13+
}))
14+
],
915
footer: Component.Footer({
1016
links: {
1117
GitHub: "https://prathameshdhande22.github.io/Java-Tutorial/",
@@ -31,20 +37,17 @@ export const defaultContentPageLayout: PageLayout = {
3137
Component.DesktopOnly(
3238
Component.Explorer({
3339
title: "Patterns"
34-
}),
40+
})
3541
)
3642
],
3743
right: [
3844
Component.TableOfContents(),
3945
Component.Backlinks(),
40-
Component.MobileOnly(Component.Explorer({
41-
title: "Patterns",
42-
folderClickBehavior: "collapse",
43-
folderDefaultState: "collapsed",
44-
45-
})),
46-
Component.Graph({ globalGraph: { zoom: true }, localGraph: {} }),
47-
],
46+
Component.DesktopOnly(Component.RecentNotes({
47+
limit: 2
48+
}))
49+
// Component.Graph({ globalGraph: { zoom: true }, localGraph: {} }),
50+
]
4851
}
4952

5053
// components for pages that display lists of pages (e.g. tags or folders)

quartz/styles/variables.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $desktop: "(min-width: #{map-get($breakpoints, desktop)})";
1616

1717
$pageWidth: #{map-get($breakpoints, mobile)};
1818
$sidePanelWidth: 320px; //380px;
19-
$topSpacing: 6rem;
19+
$topSpacing: 2rem;
2020
$boldWeight: 700;
2121
$semiBoldWeight: 600;
2222
$normalWeight: 400;

0 commit comments

Comments
 (0)