Skip to content
Snippets Groups Projects
Commit 64194c5b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 4575f399
No related branches found
No related tags found
No related merge requests found
...@@ -91,10 +91,10 @@ class Communication::Website::Post < ApplicationRecord ...@@ -91,10 +91,10 @@ class Communication::Website::Post < ApplicationRecord
end end
def git_path(website) def git_path(website)
"content/posts/#{hugo_path}.html" if published && published_at "content/posts/#{static_path}.html" if published && published_at
end end
def hugo_path def static_path
"#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}" "#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}"
end end
......
...@@ -3,8 +3,5 @@ ...@@ -3,8 +3,5 @@
<% end %> <% end %>
posts: posts:
<% block.template.selected_posts.each do |post| %> <% block.template.selected_posts.each do |post| %>
- slug: <%= post.slug %> - <%= post.static_path %>
path: <%= post.path %>
url: <%= post.url %>
file: <%= post.hugo_path %>
<% end %> <% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment