3
3
< div class ="container ">
4
4
< div class ="row justify-center ">
5
5
< article class ="lg:col-10 ">
6
- {{ $image:= .Params.image }}
6
+ {{ $image := .Params.image }}
7
7
{{ if $image }}
8
8
< div class ="mb-10 ">
9
9
{{ partial "image" (dict "Src" $image "Alt" .Title "Class" "w-full rounded") }}
12
12
< h1 class ="h2 mb-4 ">
13
13
{{ .Title }}
14
14
</ h1 >
15
- {{/* < ul class ="mb-4 ">
16
- < li class ="mr-4 inline-block ">
17
- < a
18
- href ="{{ `authors/` | relLangURL }}{{ .Params.Author | urlize }}/ ">
19
- < i class ="fa-regular fa-circle-user mr-2 "> </ i
20
- > {{ .Params.author }}
21
- </ a >
22
- </ li >
23
- {{ $categories:= .Params.categories }}
24
- {{ if $categories }}
25
- < li class ="mr-4 inline-block ">
26
- < i class ="fa-regular fa-folder mr-2 "> </ i >
27
- {{ range $i,$p:= $categories }}
28
- < a
29
- href ="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}/ "
30
- class =""
31
- > {{ . | humanize }}{{ if ne $i (sub (len $categories) 1) }}
32
- {{ "," }}
33
- {{ end }}
34
- </ a >
35
- {{ end }}
36
- </ li >
37
- {{ end }}
38
- < li class ="mr-4 inline-block ">
39
- < i class ="fa-regular fa-clock mr-2 "> </ i >
40
- {{ time.Format ":date_long" .PublishDate }}
41
- </ li >
42
- </ ul > */}}
43
15
< div class ="content mb-10 ">
44
16
{{ .Content }}
45
17
</ div >
46
18
< div class ="row items-start justify-between ">
47
- {{ $tags:= .Params.tags }}
19
+ {{ $tags := .Params.tags }}
48
20
{{ if $tags }}
49
21
< div class ="lg:col-5 mb-10 flex items-center lg:mb-0 ">
50
22
< h5 class ="mr-3 "> {{ i18n "tags" }} :</ h5 >
51
23
< ul >
52
- {{ range $i,$p := $tags }}
24
+ {{ range $i, $p := $tags }}
53
25
< li class ="inline-block ">
54
26
< a
55
27
class ="bg-theme-light hover:bg-primary dark:bg-darkmode-theme-light dark:hover:bg-darkmode-primary dark:hover:text-dark m-1 block rounded px-3 py-1 hover:text-white "
@@ -61,16 +33,7 @@ <h5 class="mr-3">{{ i18n "tags" }} :</h5>
61
33
</ ul >
62
34
</ div >
63
35
{{ end }}
64
- {{/* < div class ="lg:col-4 flex items-center ">
65
- {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
66
- </ div > */}}
67
36
</ div >
68
- {{/* <!-- comments -->
69
- {{ if site.Config.Services.Disqus.Shortname }}
70
- < div class ="mt-20 ">
71
- {{ template "_internal/disqus.html" . }}
72
- </ div >
73
- {{ end }} */}}
74
37
</ article >
75
38
</ div >
76
39
0 commit comments