-
Notifications
You must be signed in to change notification settings - Fork 13
New WP blog layout #812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
New WP blog layout #812
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| @charset 'utf-8'; | ||
|
|
||
| .post-info { | ||
| font-size: $font-size-sm; | ||
| margin-bottom: $paragraph-margin-bottom; | ||
| &:last-of-type { margin-bottom: 0; } | ||
|
|
||
| // Add the separator between the elements | ||
| > :not(:last-of-type) { | ||
| &:after { | ||
| content: '\002C '; | ||
| margin: 0 0.25em 0 0.15em; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On dirait qu'il y a un espace avant la virgule avec le |
||
| } | ||
| } | ||
|
|
||
| .post-info-date:not(:last-child):after { content: ' \2013 '; } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
|
|
||
| .list-group-teaser-content { | ||
| .post-info > span { color: $text-muted; } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <div class="list-group"> | ||
| {% for i in 1..4 %} | ||
| <a href="#" class="list-group-item list-group-teaser link-trapeze-vertical"> | ||
| <div class="list-group-teaser-container"> | ||
| <div class="list-group-teaser-thumbnail"> | ||
| {% include '@atoms/picture/picture.twig' with {'variant':'news-thumb'} %} | ||
| </div> | ||
| <div class="list-group-teaser-content" itemscope itemtype="http://schema.org/Article"> | ||
| <h3 class="h5 mb-2" itemprop="name">Physics: new e-books for the AIAA Education Series</h3> | ||
| <div class="post-info mb-2"> | ||
| <span class="post-info-date" itemprop="datePublished" content="2017-09-11T12:00"><span class="sr-only">Published:</span>11.09.17</span> | ||
| <span itemprop="about">Engineering</span><span itemprop="about">Space</span> | ||
| </div> | ||
| <p itemprop="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet | ||
| Epicureum esse, si probarem, quae ille diceret?</p> | ||
| </div> | ||
| </div> | ||
| </a> | ||
| {% endfor %} | ||
| </div> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| title: Blog Post | ||
| name: blog-post |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| {& set isSpecial = false %} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo sur le délimiteur : |
||
|
|
||
| {% extends "@templates/base/base.twig" %} | ||
|
|
||
| {% block header %} | ||
|
|
@@ -7,7 +9,7 @@ | |
| {% block content %} | ||
|
|
||
| <div class="container-full px-5 px-xxl-6 mt-5"> | ||
| <h1>Titre du blog</h1> | ||
| <h1 class="page-title entry-title">Titre du blog</h1> | ||
| </div> | ||
|
|
||
| <div class="container-full px-5 px-xxl-6 mt-5"> | ||
|
|
@@ -17,8 +19,8 @@ | |
| </div> | ||
| <div class="col-lg-9"> | ||
| <div class="card-deck"> | ||
| {% for 1 in 1..9 %} | ||
| {% include '@content-types/news/news-basic-teaser.twig' %} | ||
| {% for 1 in 1..2 %} | ||
| {% include '@content-types/blog-post/blog-post.twig' %} | ||
| {% endfor %} | ||
| </div> | ||
| <div class="mt-3"> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas besoin d'espace après, il est supprimé lors du build.