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

preview

parent 4673c3b5
No related branches found
No related tags found
No related merge requests found
<% content_for :title, @page.title %>
<% content_for :summary, @page.summary %>
<% content_for :image, kamifusen_tag(@page.best_featured_image) if @page.best_featured_image.attached? %>
<%= render 'admin/communication/blocks/content/show', about: @page %>
<% content_for :title, @post.title %>
<% content_for :summary, @post.summary %>
<% content_for :image, kamifusen_tag(@post.featured_image) if @post.featured_image.attached? %>
<%= render 'admin/communication/blocks/content/show', about: @post %>
......@@ -20,22 +20,17 @@
</style>
</head>
<body class="full-width">
<header class="hero">
<%= yield :image %>
<header class="hero <%= 'hero--with-image hero--image-square' if yield(:image).present? %>">
<div class="container">
<div>
<h1><%= yield :title %></h1>
<div class="content">
<hgroup>
<h1><%= yield :title %></h1>
<p class="lead"><%= yield :summary %></p>
</hgroup>
<figure>
<%= yield :image %>
</figure>
</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">
......
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