Skip to content

Commit

Permalink
2024-8-26
Browse files Browse the repository at this point in the history
  • Loading branch information
NianHhhh committed Aug 26, 2024
1 parent 1f14a9a commit c7addaf
Showing 1 changed file with 3 additions and 40 deletions.
43 changes: 3 additions & 40 deletions layouts/variety/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container">
<div class="row justify-center">
<article class="lg:col-10">
{{ $image:= .Params.image }}
{{ $image := .Params.image }}
{{ if $image }}
<div class="mb-10">
{{ partial "image" (dict "Src" $image "Alt" .Title "Class" "w-full rounded") }}
Expand All @@ -12,44 +12,16 @@
<h1 class="h2 mb-4">
{{ .Title }}
</h1>
{{/* <ul class="mb-4">
<li class="mr-4 inline-block">
<a
href="{{ `authors/` | relLangURL }}{{ .Params.Author | urlize }}/">
<i class="fa-regular fa-circle-user mr-2"></i
>{{ .Params.author }}
</a>
</li>
{{ $categories:= .Params.categories }}
{{ if $categories }}
<li class="mr-4 inline-block">
<i class="fa-regular fa-folder mr-2"></i>
{{ range $i,$p:= $categories }}
<a
href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}/"
class=""
>{{ . | humanize }}{{ if ne $i (sub (len $categories) 1) }}
{{ "," }}
{{ end }}
</a>
{{ end }}
</li>
{{ end }}
<li class="mr-4 inline-block">
<i class="fa-regular fa-clock mr-2"></i>
{{ time.Format ":date_long" .PublishDate }}
</li>
</ul> */}}
<div class="content mb-10">
{{ .Content }}
</div>
<div class="row items-start justify-between">
{{ $tags:= .Params.tags }}
{{ $tags := .Params.tags }}
{{ if $tags }}
<div class="lg:col-5 mb-10 flex items-center lg:mb-0">
<h5 class="mr-3">{{ i18n "tags" }} :</h5>
<ul>
{{ range $i,$p:= $tags }}
{{ range $i, $p := $tags }}
<li class="inline-block">
<a
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"
Expand All @@ -61,16 +33,7 @@ <h5 class="mr-3">{{ i18n "tags" }} :</h5>
</ul>
</div>
{{ end }}
{{/* <div class="lg:col-4 flex items-center">
{{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
</div> */}}
</div>
{{/* <!-- comments -->
{{ if site.Config.Services.Disqus.Shortname }}
<div class="mt-20">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }} */}}
</article>
</div>

Expand Down

0 comments on commit c7addaf

Please sign in to comment.