Skip to content

Commit

Permalink
remove _index.md condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ntheanh201 committed Oct 23, 2024
1 parent 2c68894 commit 89b0b2f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/layouts/partials/page-meta-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
{{ if .Site.Language.Lang }}
{{ $editURL = printf "%s/%s" $editURL .Site.Language.Lang }}
{{ end }}
{{ if eq .File.LogicalName "_index.md" }}
{{ $editURL = printf "%s/%s" $editURL (path.Dir .File.Path) }}
{{ else }}
{{ $editURL = printf "%s/%s" $editURL .File.Path }}
{{ end }}
{{ $editURL = printf "%s/%s" $editURL .File.Path }}
{{ end }}
{{ end }}

Expand Down

0 comments on commit 89b0b2f

Please sign in to comment.