forked from eleven-labs/blog.eleven-labs.com
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(page post): create text styles and headers + read also
- Loading branch information
1 parent
d178814
commit c42ca80
Showing
9 changed files
with
227 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
<h3>A lire aussi</h3> | ||
<ul> | ||
{% for post in site.posts limit:3 %} | ||
<li> | ||
<a href='{{ post.url | prepend: site.baseurl }}'>{{ post.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<aside class="slice read-also"> | ||
<div class="container"> | ||
<h3 class="read-also-title">A lire aussi</h3> | ||
<ul class="read-also-list"> | ||
{% for post in site.posts limit:3 %} | ||
<li class="read-also-item"> | ||
<a class="read-also-link" href='{{ post.url | prepend: site.baseurl }}'>{{ post.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</aside> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<span class="reading-time" title="Estimated read time"> | ||
{% assign words = include.content | number_of_words %} | ||
{% if words < 360 %} | ||
1 min | ||
lecture: 1 min | ||
{% else %} | ||
{{ words | divided_by:180 }} mins | ||
lecture: {{ words | divided_by:180 }} mins | ||
{% endif %} | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
layout: post | ||
title: Lorem ipsum dolor sit amet, consectetur adipisicing elit. | ||
excerpt: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
author: aveber | ||
permalink: /fr/test-article/ | ||
categories: | ||
- Dev Ops | ||
tags: | ||
- Dev Ops | ||
image: | ||
path: /assets/12app.png | ||
height: 100 | ||
width: 100 | ||
--- | ||
|
||
## lorem ipsum dolor sit amet | ||
|
||
### lorem ipsum dolor sit amet | ||
|
||
#### lorem ipsum dolor sit amet | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
|
||
> #### bloquote | ||
> | ||
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut | ||
> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
> | ||
> [exemple link](http://php.net/manual/fr/features.commandline.webserver.php) | ||
|
||
- Lorem ipsum dolor sit amet | ||
- Consectetur adipisicing elit, sed do eiusmod tempor | ||
- Incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
|
||
|
||
|
||
```json | ||
{ | ||
"name": "acme/standalone-bundle", | ||
"description": "acme standalone bundle", | ||
"type": "bundle", | ||
"require": {}, | ||
"autoload": { | ||
"psr-4": { | ||
"Acme\StandaloneBundle\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Acme\StandaloneBundle\Tests\": "tests/" | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.post-content { | ||
@media (min-width: 480px) { | ||
padding-top: 30px; | ||
} | ||
|
||
@media (max-width: 480px) { | ||
padding-top: 10px; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
font-family: $font-family-headings; | ||
line-height: 1.1; | ||
|
||
a { | ||
color: $brand-black; | ||
} | ||
|
||
&:first-child { | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
h1 { | ||
@extend %h1; | ||
|
||
@media (min-width: 480px) { | ||
margin: 2em 0 0.7em -15px; | ||
} | ||
|
||
@media (max-width: 480px) { | ||
margin: 2em 0 0.7em; | ||
} | ||
} | ||
|
||
h2 { | ||
@extend %h2; | ||
|
||
@media (min-width: 480px) { | ||
margin: 2em 0 0.7em -15px; | ||
} | ||
|
||
@media (max-width: 480px) { | ||
margin: 2em 0 0.7em; | ||
} | ||
} | ||
|
||
h3 { | ||
@extend %h3; | ||
margin: 0.7em 0; | ||
} | ||
|
||
h4 { | ||
@extend %h4; | ||
margin: 0.7em 0; | ||
} | ||
|
||
blockquote { | ||
border-left: 5px solid $brand-yellow; | ||
padding-left: 2rem; | ||
font-style: italic; | ||
margin: 3rem 0; | ||
opacity: 0.8; | ||
} | ||
|
||
pre { | ||
padding: 15px; | ||
margin: 3rem 0; | ||
} | ||
} |
Oops, something went wrong.