File tree 4 files changed +10
-9
lines changed
4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ description = "Sample article showcasing basic Markdown syntax and formatting fo
5
5
[taxonomies ]
6
6
tags = [" markdown" , " css" , " html" ]
7
7
[extra ]
8
- cover_image = " images/markdown-syntax.png"
8
+ cover.image = " images/markdown-syntax.png"
9
+ cover.alt = " A Markdown logo"
9
10
+++
10
11
11
12
This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Kita theme.
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ <h1 class="!my-0 pb-2.5">{{ page.title }}</h1>
6
6
{% include "partials/page_info.html" %}
7
7
</ header >
8
8
9
- {% if page.extra.cover_image %}<!---->
9
+ {% if page.extra.cover.image %}<!---->
10
10
< figure class ="mb-12 mt-0 ">
11
11
< img
12
12
class ="h-auto w-full rounded-lg "
13
- src ="{{ get_url(path=page.extra.cover_image ) }} "
14
- alt ="cover "
13
+ src ="{{ get_url(path=page.extra.cover.image ) }} "
14
+ alt ="{{ page.extra. cover.alt | default(value='cover') }} "
15
15
/>
16
16
</ figure >
17
17
{% endif %}
Original file line number Diff line number Diff line change 36
36
< meta property ="og:site_name " content ="{{ config.title }} " />
37
37
< meta property ="og:description " content ="{{ description }} " />
38
38
< meta property ="og:url " content ="{{ page.permalink }} " />
39
- {% if page.extra.cover_image %}
39
+ {% if page.extra.cover.image %}
40
40
<!---->
41
- {% set image = page.extra.cover_image %}
41
+ {% set image = page.extra.cover.image %}
42
42
<!---->
43
43
{% elif config.extra.social_image %}
44
44
<!---->
Original file line number Diff line number Diff line change 12
12
< section
13
13
class ="block-bg relative mb-4 rounded-lg p-4 first-of-type:mt-0 last-of-type:mb-0 active:scale-95 lg:mb-6 lg:p-6 "
14
14
>
15
- {% if page.extra.cover_image %}
15
+ {% if page.extra.cover.image %}
16
16
< figure class ="mb-4 mt-0 ">
17
17
< img
18
18
class ="h-auto w-full rounded-lg "
19
- src ="{{ get_url(path=page.extra.cover_image ) }} "
20
- alt ="cover "
19
+ src ="{{ get_url(path=page.extra.cover.image ) }} "
20
+ alt ="{{ page.extra. cover.alt | default(value='cover') }} "
21
21
/>
22
22
</ figure >
23
23
{% endif %}<!---->
You can’t perform that action at this time.
0 commit comments