Skip to content
Snippets Groups Projects
Commit 82853003 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

better preview

parent 67b20b8d
No related branches found
No related tags found
No related merge requests found
<header class="hero"> <% content_for :title, @page.title %>
<%= kamifusen_tag @page.best_featured_image if @page.best_featured_image.attached? %> <% content_for :image, kamifusen_tag(@page.best_featured_image) if @page.best_featured_image.attached? %>
<div class="container">
<div>
<h1><%= @page.title %></h1>
</div>
<ol class="breadcrumb" itemscope="" itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<a itemprop="item"><span itemprop="name">Accueil</span></a>
<meta itemprop="position" content="1">
</li>
<li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<span itemprop="name"><%= @page.title %></span>
<meta itemprop="position" content="2">
</li>
</ol>
</div>
</header>
<%= render 'admin/communication/blocks/preview', about: @page %> <%= render 'admin/communication/blocks/preview', about: @page %>
<header class="hero"> <% content_for :title, @post.title %>
<%= kamifusen_tag @post.featured_image if @post.featured_image.attached? %> <% content_for :image, kamifusen_tag(@post.featured_image) if @post.featured_image.attached? %>
<div class="container">
<div>
<h1><%= @post.title %></h1>
</div>
<ol class="breadcrumb" itemscope="" itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<a itemprop="item"><span itemprop="name">Accueil</span></a>
<meta itemprop="position" content="1">
</li>
<li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<span itemprop="name"><%= @post.title %></span>
<meta itemprop="position" content="2">
</li>
</ol>
</div>
</header>
<%= render 'admin/communication/blocks/preview', about: @post %> <%= render 'admin/communication/blocks/preview', about: @post %>
...@@ -11,6 +11,24 @@ ...@@ -11,6 +11,24 @@
<% end %> <% end %>
</head> </head>
<body> <body>
<header class="hero">
<%= yield :image %>
<div class="container">
<div>
<h1><%= yield :title %></h1>
</div>
<ol class="breadcrumb" itemscope="" itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<a itemprop="item"><span itemprop="name">Accueil</span></a>
<meta itemprop="position" content="1">
</li>
<li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<span itemprop="name"><%= yield :title %></span>
<meta itemprop="position" content="2">
</li>
</ol>
</div>
</header>
<main class="page-with-blocks" id="main" role="main" tabindex="-1"> <main class="page-with-blocks" id="main" role="main" tabindex="-1">
<div class="blocks"> <div class="blocks">
<%= yield %> <%= yield %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment