diff options
Diffstat (limited to 'lib/helpers')
-rw-r--r-- | lib/helpers/edit_on_gitlab.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/helpers/edit_on_gitlab.rb b/lib/helpers/edit_on_gitlab.rb index 7188cd1e..47d94d26 100644 --- a/lib/helpers/edit_on_gitlab.rb +++ b/lib/helpers/edit_on_gitlab.rb @@ -4,7 +4,7 @@ module Nanoc::Helpers module EditOnGitLab def edit_on_gitlab(item, editor: :simple) # Make an array out of the content's source path. - content_filename_array = @item.identifier.to_s.split('/') + content_filename_array = item.identifier.to_s.split('/') # remove first empty item content_filename_array.shift # Get the product name. @@ -35,8 +35,8 @@ module Nanoc::Helpers gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/gitlab/edit/master/-/doc/#{docs_content_filename}" else # gitlab-docs pages - gitlab_url = "https://gitlab.com/gitlab-org/gitlab-docs/blob/main/#{@item[:content_filename]}" - gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/gitlab-docs/edit/main/-/#{@item[:content_filename]}" + gitlab_url = "https://gitlab.com/gitlab-org/gitlab-docs/blob/main/#{item[:content_filename]}" + gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/gitlab-docs/edit/main/-/#{item[:content_filename]}" end case editor |