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
end
def git_path(website)
"content/posts/#{hugo_path}.html" if published && published_at
"content/posts/#{static_path}.html" if published && published_at
end
def hugo_path
def static_path
"#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}"
end
......
......@@ -3,8 +3,5 @@
<% end %>
posts:
<% block.template.selected_posts.each do |post| %>
- slug: <%= post.slug %>
path: <%= post.path %>
url: <%= post.url %>
file: <%= post.hugo_path %>
- <%= post.static_path %>
<% 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