diff --git a/content/articles/example.md b/content/articles/example.md index ed93666..925a7d3 100644 --- a/content/articles/example.md +++ b/content/articles/example.md @@ -6,6 +6,8 @@ updated = 2025-05-13 authors = ["Ungol"] +++ +test-image + Cet article est un exemple utilisant du lorem ipsum en markdown pour développer et styler les éléments sur une base qui ressemble à un vrai texte. Il contient les éléments d'un article assez complet. diff --git a/sass/parts/_anchor.scss b/sass/parts/_anchor.scss index 39c607d..ca87477 100644 --- a/sass/parts/_anchor.scss +++ b/sass/parts/_anchor.scss @@ -8,14 +8,14 @@ h3, h4, h5, h6 { - &>a { + &>a.zola-anchor { visibility: hidden; opacity: 0; transition: visibility 0s, opacity 0.5s linear; } &:hover { - &>a { + &>a.zola-anchor { visibility: visible; opacity: 1; } diff --git a/sass/parts/_articles.scss b/sass/parts/_articles.scss new file mode 100644 index 0000000..8bc8553 --- /dev/null +++ b/sass/parts/_articles.scss @@ -0,0 +1,34 @@ +ul.articles { + list-style-type: none; + padding-left: 0; + + li { + margin-top: 3rem; + margin-bottom: 3rem; + } + + .title { + margin: 0; + + &>a { + color: var(--text); + text-decoration: none; + + &:visited { + color: var(--lavender); + } + + &:hover { + color: var(--sky); + } + } + } + + .date { + color: var(--subtext0); + } + + a.read-more { + color: var(--overlay1); + } +} \ No newline at end of file diff --git a/sass/styles.scss b/sass/styles.scss index 9a81197..f42cd56 100644 --- a/sass/styles.scss +++ b/sass/styles.scss @@ -2,6 +2,7 @@ @use 'theme'; @use 'shortcodes/callout'; @use 'parts/anchor'; +@use 'parts/articles'; @use 'parts/code'; @use 'parts/footnote'; @use 'parts/misc'; @@ -29,14 +30,14 @@ body { margin: 0; } -article { +main { max-width: calc(var(--main-width) - 12rem); margin-left: auto; margin-right: auto; } @media only screen and (max-width: $smartphone) { - article { + main { max-width: var(--main-width); } } @@ -46,8 +47,13 @@ h1 { font-weight: medium; margin-top: 2rem; margin-bottom: 1rem; + + &.section-title { + font-size: 3rem; + } } + h2 { font-size: 1.5rem; margin-bottom: 1rem; @@ -90,6 +96,10 @@ h6 { h1 { font-size: 1.5rem; margin-top: 1.3rem; + + &.section-title { + font-size: 2.2rem; + } } h2 { diff --git a/templates/anchor-link.html b/templates/anchor-link.html deleted file mode 100644 index b67c464..0000000 --- a/templates/anchor-link.html +++ /dev/null @@ -1 +0,0 @@ -# \ No newline at end of file diff --git a/templates/blog.html b/templates/blog.html index 8ecabe0..f09a58e 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -1,17 +1,23 @@ {% extends "base.html" %} {% block content %} -

+

{{ section.title }}

-