diff --git a/app/models/communication/website/home.rb b/app/models/communication/website/home.rb index fca79028c7deaa90c37a8c9adb795564b1e04aa9..54d68f7aa5942e548583149f931dc8452cecccab 100644 --- a/app/models/communication/website/home.rb +++ b/app/models/communication/website/home.rb @@ -44,7 +44,7 @@ class Communication::Website::Home < ApplicationRecord # Override from WithGithubFiles def github_path_generated - '_pages/index.html' + 'content/_index.html' end end diff --git a/app/views/active_storage/blobs/jekyll.html.erb b/app/views/active_storage/blobs/static.html.erb similarity index 100% rename from app/views/active_storage/blobs/jekyll.html.erb rename to app/views/active_storage/blobs/static.html.erb diff --git a/app/views/admin/communication/website/home/static.html.erb b/app/views/admin/communication/website/home/static.html.erb index 4e8cb8499eb6a74656a6fa153866d727153f44dd..61c67859ea9be2c07f951298a0e956f06e574009 100644 --- a/app/views/admin/communication/website/home/static.html.erb +++ b/app/views/admin/communication/website/home/static.html.erb @@ -1,11 +1,12 @@ --- -layout: home -permalink: "/" title: > - <%= @website.title %> + <%= @home.website.name %> +breadcrumb_title: "Accueil" <% if @home.featured_image.attached? %> image: "<%= @home.featured_image.blob.id %>" image_alt: "<%= @home.featured_image_alt %>" <% end %> +description: > + <%= strip_tags(@home.text.to_s).chomp %> --- <%= prepare_for_github @home.text, @home.university %>