new link and routes
This commit is contained in:
parent
90b1b21276
commit
19db53d98c
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user