From 722548118a9a56f31a404955d7ff758c38a0ce6b Mon Sep 17 00:00:00 2001 From: klemek Date: Sun, 26 Apr 2026 22:35:14 +0200 Subject: [PATCH] feat: about page and better config --- README.md | 3 +-- articles.example/config.json | 1 + articles.example/style.scss | 1 + package.json | 2 +- src/App.vue | 28 +--------------------------- src/components/NavBar.vue | 3 ++- src/lib/articles.ts | 18 ++++++++++++++++++ src/lib/config.ts | 16 +++++++++------- src/router/index.ts | 2 ++ src/views/AboutView.vue | 28 ++++++++++++++++++++++++++++ src/views/ArticleView.vue | 7 +++++-- src/views/HomeView.vue | 7 +++++-- src/views/NotFoundView.vue | 7 ++++++- vite.config.ts | 6 ------ 14 files changed, 80 insertions(+), 49 deletions(-) create mode 100644 src/views/AboutView.vue diff --git a/README.md b/README.md index 8e0a8ea..d522516 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ bun run build - [x] nav bar on top - [ ] date updated - [ ] archive page -- [ ] about page -- [ ] contact/links +- [x] about page - [ ] link to previous/next article - [ ] proper docs \ No newline at end of file diff --git a/articles.example/config.json b/articles.example/config.json index 7f88827..58fa83f 100644 --- a/articles.example/config.json +++ b/articles.example/config.json @@ -6,6 +6,7 @@ "custom_head": "", "home_count": 5, "rss_link": " RSS", + "about_link": " ABOUT", "back_link": " Back to home", "published_on": "Published on", "copyright": "CC BY-NC" diff --git a/articles.example/style.scss b/articles.example/style.scss index 447f687..5ee438c 100644 --- a/articles.example/style.scss +++ b/articles.example/style.scss @@ -178,6 +178,7 @@ nav .nav-title { nav .nav-items { display: flex; + gap: .5em; } .article-published { diff --git a/package.json b/package.json index 3865ab2..7d675f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "md-blog", - "version": "1.7.0", + "version": "1.8.0", "private": true, "type": "module", "repository": "https://github.com/klemek/md-blog", diff --git a/src/App.vue b/src/App.vue index 69f5d57..7c2aa3f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,29 +1,3 @@ - - diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index dddaa80..813a653 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,11 +1,12 @@