diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index fadbcbab..123266d1 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -384,6 +384,7 @@ $bezier: cubic-bezier(0.75, 0, 0.25, 1); } .word-break-all { word-break: break-all !important; } +.hyphens { hyphens: auto; } /* * Modificadores de Bootstrap que no tienen versiĆ³n responsive. diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 4f814cda..dd0bf052 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -1,7 +1,7 @@ %main.row %aside.menu.col-md-3 - %h1= @site.title - %p.lead= @site.description + = render 'sites/header', site: @site + - cache_if @usuarie, [@site, I18n.locale] do = render 'sites/status', site: @site diff --git a/app/views/sites/_header.haml b/app/views/sites/_header.haml new file mode 100644 index 00000000..c8931041 --- /dev/null +++ b/app/views/sites/_header.haml @@ -0,0 +1,3 @@ +.hyphens{ lang: site.default_locale } + %h1= site.title + %p.lead= site.description