diff --git a/app/views/layouts/_footer.haml b/app/views/layouts/_footer.haml index 0b280dc..31bb2e4 100644 --- a/app/views/layouts/_footer.haml +++ b/app/views/layouts/_footer.haml @@ -46,6 +46,10 @@ %p.font-medium.text-gray-900 News %nav.mt-6{"aria-label" => "Footer Navigation - Downloads"} %ul.space-y-4.text-sm + - if blog = last_blog + %li + %a.text-gray-700.transition.hover:opacity-75{:href => main_app.view_blog_path(blog.page.name) } + Latest News %li %a.text-gray-700.transition.hover:opacity-75{:href => "https://www.facebook.com/hubfeenix" , :target => "_blank"} Facebook diff --git a/app/views/layouts/application.haml b/app/views/layouts/application.haml index 5f5835f..658a70f 100644 --- a/app/views/layouts/application.haml +++ b/app/views/layouts/application.haml @@ -6,13 +6,12 @@ %meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/ = csrf_meta_tags = csp_meta_tag + = stylesheet_link_tag "tailwind" = stylesheet_link_tag "application" = javascript_importmap_tags - - if Rails.env.development? + - if false %script{:src => "https://cdn.tailwindcss.com"} - - else - = stylesheet_link_tag "tailwind" %body = render "layouts/header" diff --git a/config/routes.rb b/config/routes.rb index 6bfd312..04f0470 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,6 +8,8 @@ Rails.application.routes.draw do mount Merged::Engine => "/merged" - get ":id" , to: "merged/view#page" , id: :id + get "/news/:id" , to: "merged/view#page" , id: :id , as: :view_blog + get ":id" , to: "merged/view#page" , id: :id , as: :view_page + root "merged/view#page" , id: 'index' end