Skip to content

Commit c7addaf

Browse files
committed
2024-8-26
1 parent 1f14a9a commit c7addaf

File tree

1 file changed

+3
-40
lines changed

1 file changed

+3
-40
lines changed

layouts/variety/single.html

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="container">
44
<div class="row justify-center">
55
<article class="lg:col-10">
6-
{{ $image:= .Params.image }}
6+
{{ $image := .Params.image }}
77
{{ if $image }}
88
<div class="mb-10">
99
{{ partial "image" (dict "Src" $image "Alt" .Title "Class" "w-full rounded") }}
@@ -12,44 +12,16 @@
1212
<h1 class="h2 mb-4">
1313
{{ .Title }}
1414
</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> */}}
4315
<div class="content mb-10">
4416
{{ .Content }}
4517
</div>
4618
<div class="row items-start justify-between">
47-
{{ $tags:= .Params.tags }}
19+
{{ $tags := .Params.tags }}
4820
{{ if $tags }}
4921
<div class="lg:col-5 mb-10 flex items-center lg:mb-0">
5022
<h5 class="mr-3">{{ i18n "tags" }} :</h5>
5123
<ul>
52-
{{ range $i,$p:= $tags }}
24+
{{ range $i, $p := $tags }}
5325
<li class="inline-block">
5426
<a
5527
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>
6133
</ul>
6234
</div>
6335
{{ 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> */}}
6736
</div>
68-
{{/* <!-- comments -->
69-
{{ if site.Config.Services.Disqus.Shortname }}
70-
<div class="mt-20">
71-
{{ template "_internal/disqus.html" . }}
72-
</div>
73-
{{ end }} */}}
7437
</article>
7538
</div>
7639

0 commit comments

Comments
 (0)