From 3b47236852feb7dca7e1c7a1815d95c73c970568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Avijit=20=F0=9F=9A=80?= <526avijit@gmail.com> Date: Sat, 29 May 2021 18:13:06 +0200 Subject: [PATCH 1/4] All tags page draft --- themes/gokarna/layouts/_default/tags.html | 53 ++++++++++++++++++ themes/gokarna/layouts/partials/header.html | 62 ++++++++++----------- themes/gokarna/static/css/main.css | 37 ++++++++++-- 3 files changed, 117 insertions(+), 35 deletions(-) create mode 100644 themes/gokarna/layouts/_default/tags.html diff --git a/themes/gokarna/layouts/_default/tags.html b/themes/gokarna/layouts/_default/tags.html new file mode 100644 index 0000000..08e69a0 --- /dev/null +++ b/themes/gokarna/layouts/_default/tags.html @@ -0,0 +1,53 @@ + + +{{- partial "head.html" . -}} + + + {{- partial "header.html" . -}} +
+ +
+ +

Tags

+ + +
+ +
+ {{- partial "footer.html" . -}} + + + \ No newline at end of file diff --git a/themes/gokarna/layouts/partials/header.html b/themes/gokarna/layouts/partials/header.html index 3b26285..3739fb1 100644 --- a/themes/gokarna/layouts/partials/header.html +++ b/themes/gokarna/layouts/partials/header.html @@ -1,37 +1,37 @@ -
- +
diff --git a/themes/gokarna/static/css/main.css b/themes/gokarna/static/css/main.css index 39fe9c8..4881d9c 100644 --- a/themes/gokarna/static/css/main.css +++ b/themes/gokarna/static/css/main.css @@ -50,12 +50,12 @@ html { .header-nav .avatar { float: left; - /* display: inline-block; */ margin-left: 15px; height: 100%; border: 0.5px solid white; border-radius: 18px; } + .header-nav .avatar img { display: block; width: 50px; @@ -108,22 +108,27 @@ html { color: gray; } -.post .post-tags { +.post-tags { padding: 0; list-style-type: none; } .post-tags .post-tag { display: inline-block; - background-color: #008c86; + background-color: #00b5ad; padding: 4px 12px; border-radius: 4px; - border: 1px solid #008c86; + border: 1px solid #00b5ad; color: white; font-size: 14px; font-weight: 700; } +.post-tag a { + text-decoration: none; + color: inherit; +} + .post .post-content { margin-top: 50px; } @@ -143,3 +148,27 @@ html { .post-title .post-date { float: right; } + +.tags-list .post-tags { + margin-top: 50px; +} + +.tags-list .post-tags .post-tag { + padding: 0; + margin: 0 5px; +} + +.tags-list .post-tags .post-tag:hover { + background-color: #009c95; + border: 1px solid #00b5ad; +} + +.tags-list .post-tags .post-tag a div { + display: inline-block; + padding: 5px 8px; +} + +.tags-list .post-tags .post-tag a .tag-posts-count { + background: rgba(0, 0, 0, 0.1); + opacity: 0.8; +} From 97509251a4818cd2ca6d0649ad9358987be9b48d Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Sat, 29 May 2021 22:07:05 +0530 Subject: [PATCH 2/4] Rename tags page to terms --- themes/gokarna/layouts/_default/tags.html | 2 +- themes/gokarna/layouts/_default/terms.html | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 themes/gokarna/layouts/_default/terms.html diff --git a/themes/gokarna/layouts/_default/tags.html b/themes/gokarna/layouts/_default/tags.html index 08e69a0..e30b22a 100644 --- a/themes/gokarna/layouts/_default/tags.html +++ b/themes/gokarna/layouts/_default/tags.html @@ -50,4 +50,4 @@ {{- partial "footer.html" . -}} - \ No newline at end of file + diff --git a/themes/gokarna/layouts/_default/terms.html b/themes/gokarna/layouts/_default/terms.html new file mode 100644 index 0000000..e41a5f1 --- /dev/null +++ b/themes/gokarna/layouts/_default/terms.html @@ -0,0 +1,53 @@ + + +{{- partial "head.html" . -}} + + + {{- partial "header.html" . -}} +
+ +
+ +

Tags

+ + +
+ +
+ {{- partial "footer.html" . -}} + + + From 8d032d9e1d13cc6a7b6323a9b82a0bd4b4766f0b Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Sat, 29 May 2021 22:15:42 +0530 Subject: [PATCH 3/4] Fix tag url --- exampleSite/content/project/tatooine.md | 1 - exampleSite/content/projects.md | 1 - themes/gokarna/layouts/_default/terms.html | 26 +--------------------- 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/exampleSite/content/project/tatooine.md b/exampleSite/content/project/tatooine.md index 5fb39bc..7deb229 100644 --- a/exampleSite/content/project/tatooine.md +++ b/exampleSite/content/project/tatooine.md @@ -1,7 +1,6 @@ --- title: "Tatooine" date: 2021-05-12T23:39:49+05:30 -tags: ["abc", "def"] type: singles --- diff --git a/exampleSite/content/projects.md b/exampleSite/content/projects.md index 0532f5b..efe010b 100644 --- a/exampleSite/content/projects.md +++ b/exampleSite/content/projects.md @@ -1,6 +1,5 @@ --- title: "Projects" -tags: ["abc", "def"] type: singles --- diff --git a/themes/gokarna/layouts/_default/terms.html b/themes/gokarna/layouts/_default/terms.html index e41a5f1..2ad490b 100644 --- a/themes/gokarna/layouts/_default/terms.html +++ b/themes/gokarna/layouts/_default/terms.html @@ -12,36 +12,12 @@ From 9b60a83345c89ee1775ed7b3cbc65bfaa222b54c Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Sat, 29 May 2021 22:20:35 +0530 Subject: [PATCH 4/4] Delete tags page --- themes/gokarna/layouts/_default/tags.html | 53 ----------------------- 1 file changed, 53 deletions(-) delete mode 100644 themes/gokarna/layouts/_default/tags.html diff --git a/themes/gokarna/layouts/_default/tags.html b/themes/gokarna/layouts/_default/tags.html deleted file mode 100644 index e30b22a..0000000 --- a/themes/gokarna/layouts/_default/tags.html +++ /dev/null @@ -1,53 +0,0 @@ - - -{{- partial "head.html" . -}} - - - {{- partial "header.html" . -}} -
- - - -
- {{- partial "footer.html" . -}} - - -