5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 21:06:22 +00:00
This commit is contained in:
f 2020-12-07 13:22:29 -03:00
parent 8d36b5734e
commit 9e35867ed5
2 changed files with 2 additions and 3 deletions

View file

@ -197,8 +197,7 @@ class Site < ApplicationRecord
# Define los valores por defecto según la llave buscada
@jekyll.data.default_proc = proc do |data, key|
data[key] = case key
when 'layout' then {}
else nil
when 'layout' then {}
end
end

View file

@ -17,7 +17,7 @@ Rails.application.routes.draw do
get :'sites/hidden_services', to: 'sites#hidden_services'
post :'sites/add_onion', to: 'sites#add_onion'
resources :sites, only: %i[index], constraints: { site_id: /[a-z0-9\-\.]+/, id: /[a-z0-9\-\.]+/ } do
resources :sites, only: %i[index], constraints: { site_id: /[a-z0-9\-.]+/, id: /[a-z0-9\-.]+/ } do
get :'invitades/cookie', to: 'invitades#cookie'
post :'posts/:layout', to: 'posts#create', as: :posts