Skip to content

Commit

Permalink
fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkikadafi committed Apr 16, 2024
1 parent f486e89 commit c892325
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ social:
links:
- https://www.linkedin.com/in/rizkikadafi
- https://github.com/rizkikadafi
baseurl: "/blog"
baseurl: ""
url: ""
defaults:
- scope:
path: ''
type: posts
values:
permalink: blog/:title
permalink: /:title

postcss:
cache: false
Expand Down
3 changes: 0 additions & 3 deletions _data/blog-category.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
- name: Web
desc: Posts related to web development
img: web.jpeg
link: /blog/category/math
- name: Linux
desc: Posts related to the use of the Linux operating system
img: linux.jpeg
link: /blog/category/math
- name: General
desc: Posts related to general topic and sharing my opinion
img: general.jpeg
link: /blog/category/general
8 changes: 4 additions & 4 deletions _data/blog-navigation.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- name: Dashboard
link: "/blog"
link: "/"
- name: Categories
link: "/blog/categories"
link: "/categories"
- name: Recent Post
link: "/blog/#recent"
link: "/#recent"
- name: Archives
link: /blog/archives
link: /archives

2 changes: 1 addition & 1 deletion _includes/blog-category-card.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="swiper-slide">
<a href="/blog/categories?category={{ include.category[0] }}">
<a href="/categories?category={{ include.category[0] }}">
<div class="relative text-white">
<img src="/assets/image/blog-category/{{ include.img }}" alt="{{include.img}}" class="rounded-md">
<div
Expand Down
2 changes: 1 addition & 1 deletion _includes/blog-post-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2 class="text-xl font-bold hover:text-sky-200">{{ include.post.title }}</h2>
</div>

{% for tag in include.post.tags %}
<a href="/blog/tags?tag={{ tag }}"
<a href="/tags?tag={{ tag }}"
class="inline-block mr-2 mt-2 text-sm w-fit bg-slate-500/70 backdrop-blur-md rounded-xl px-3 py-[2px] text-slate-200">{{tag}}</a>
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<h1>{{page.title}}</h1>
<div class="not-prose">
{% for tag in page.tags %}
<a href="/blog/tags?tag={{ tag }}"
<a href="/tags?tag={{ tag }}"
class="inline-block mr-2 my-1 w-fit text-sm bg-slate-500/70 backdrop-blur-md rounded-xl px-4 py-[2px] dark:text-slate-200">{{tag}}</a>
{% endfor %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion categories.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: blog
permalink: /categories
title: categories
title: Categories
---

<div class="content">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1 class="font-bold text-xl sm:text-2xl lg:text-3xl">Welcome to Kadafi's Blog</
<i class="hidden bi bi-arrow-right-circle-fill text-3xl group-hover:block"></i>
</div>
</div>
<a href="{{site.baseurl}}/blog/categories"
<a href="{{site.baseurl}}/categories"
class="group flex justify-center items-center text-sm hover:underline">
<span class="block mr-2">view all category</span>
<i class="bi bi-arrow-right block mt-[4px] group-hover:translate-x-2 transition-transform"></i>
Expand Down
4 changes: 2 additions & 2 deletions tags.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: blog
permalink: /blog/tags
title: tags
permalink: /tags
title: Tags
---

<div class="content">
Expand Down

0 comments on commit c892325

Please sign in to comment.