From d625eb7a57147600ebb978d9700cd651bf1b684e Mon Sep 17 00:00:00 2001 From: nik Date: Wed, 24 Sep 2025 12:23:47 +0300 Subject: [PATCH] add avatar --- assets/css/extended/custom.css | 18 ++++++++++++++++++ config.yaml | 23 ++++++++++++++++++++--- content/blog/_index.md | 6 ++++++ content/blog/first-post.md | 22 ++++++++++++++++++++++ 4 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 content/blog/_index.md create mode 100644 content/blog/first-post.md diff --git a/assets/css/extended/custom.css b/assets/css/extended/custom.css index 722dcfb..4cde724 100644 --- a/assets/css/extended/custom.css +++ b/assets/css/extended/custom.css @@ -24,3 +24,21 @@ body { height: auto; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* лёгкая тень */ } + +/* Blog specific styles */ +.post-entry { + margin-bottom: 2rem; + padding: 1.5rem; + background: rgba(var(--entry), 0.8); + border-radius: 8px; + transition: transform 0.2s; +} + +.post-entry:hover { + transform: translateY(-2px); +} + +.entry-content h2 { + margin-top: 2rem; + color: rgb(var(--primary)); +} diff --git a/config.yaml b/config.yaml index 3f22d9c..b262827 100644 --- a/config.yaml +++ b/config.yaml @@ -3,8 +3,19 @@ title: Маша Дергачева theme: PaperMod languageCode: ru defaultContentLanguage: ru -pagination: - pagerSize: 10 + +# Add these new sections: +paginate: 10 +buildDrafts: false +buildFuture: false + +menu: + main: + - identifier: blog + name: Блог + url: /blog/ + weight: 10 + params: defaultTheme: light disableThemeToggle: true @@ -13,6 +24,13 @@ params: ShowPostNavLinks: false ShowBreadCrumbs: false ShowRssButtonInSectionTermList: false + + # Blog specific settings + ShowPostNavLinks: true + ShowBreadCrumbs: true + ShowReadingTime: true + ShowCodeCopyButtons: true + profileMode: enabled: true title: Привет, я Маша @@ -28,4 +46,3 @@ params: url: mailto:dermaria2006@gmail.com - name: Позвонить url: tel:+79521474129 - diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..1f082d3 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,6 @@ +--- +title: "Блог" +date: 2024-01-01 +type: blog +--- +Здесь я делюсь своими мыслями и заметками. diff --git a/content/blog/first-post.md b/content/blog/first-post.md new file mode 100644 index 0000000..4d5928d --- /dev/null +++ b/content/blog/first-post.md @@ -0,0 +1,22 @@ +--- +title: "Мой первый пост" +date: 2024-12-20T10:00:00+03:00 +draft: false +tags: ["первый пост", "новости"] +summary: "Это мой первый пост в блоге" +--- + +## Добро пожаловать в мой блог! + +Это пример первого поста. Здесь можно писать: + +- Новости +- Мысли +- Идеи +- И многое другое + +```python +# Пример кода +print("Привет, мир!") + +```