diff --git a/app/views/admin/education/programs/static.html.erb b/app/views/admin/education/programs/static.html.erb index a8f30453e4ecdf7d8bd81d7000e7b157b7d806e6..fad53f85f8bbeae3b90c1c0519b0935382ba9945 100644 --- a/app/views/admin/education/programs/static.html.erb +++ b/app/views/admin/education/programs/static.html.erb @@ -2,15 +2,15 @@ title: > <%= @program.name %> url: /<%= @github_file.website.programs_github_directory %><%= @program.path %> -continuing: <%= @program.continuing %> -level: <%= @program.level %> -ects: <%= @program.ects %> +description: > + <%= prepare_for_github @program.description, @program.university %> position: <%= @program.position %> -related_category: "<%= @github_file.website.categories.find_by(program_id: @program.id)&.id %>" <% if @program.best_featured_image.attached? %> image: "<%= @program.best_featured_image.blob.id %>" image_alt: "<%= @program.featured_image_alt %>" <% end %> +categories: + - "<%= @github_file.website.categories.find_by(program_id: @program.id)&.id %>" <% if @program.teachers.any? %> teachers: <% @program.teachers.each do |teacher| %> @@ -24,12 +24,13 @@ members: role: "<%= member.role %>" <% end %> <% end %> +continuing: <%= @program.continuing %> +level: <%= @program.level %> +ects: <%= @program.ects %> accessibility: > <%= prepare_for_github @program.best_accessibility, @program.university %> contacts: > <%= prepare_for_github @program.best_contacts, @program.university %> -description: > - <%= prepare_for_github @program.description, @program.university %> duration: > <%= prepare_for_github @program.best_duration, @program.university %> evaluation: >