5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:26:21 +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 # Define los valores por defecto según la llave buscada
@jekyll.data.default_proc = proc do |data, key| @jekyll.data.default_proc = proc do |data, key|
data[key] = case key data[key] = case key
when 'layout' then {} when 'layout' then {}
else nil
end end
end end

View file

@ -17,7 +17,7 @@ Rails.application.routes.draw do
get :'sites/hidden_services', to: 'sites#hidden_services' get :'sites/hidden_services', to: 'sites#hidden_services'
post :'sites/add_onion', to: 'sites#add_onion' 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' get :'invitades/cookie', to: 'invitades#cookie'
post :'posts/:layout', to: 'posts#create', as: :posts post :'posts/:layout', to: 'posts#create', as: :posts