Skip to content

Commit f646dfd

Browse files
remove the newsletter and rename the card
1 parent c3648a6 commit f646dfd

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed

post.hbs

+34-31
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,46 @@
22

33
{{#post}}
44

5+
<article class="{{post_class}} pt-8 pb-16 lg:pt-16 lg:pb-24 antialiased flex flex-col justify-between px-4 mx-auto max-w-screen">
6+
7+
<section class="mx-auto text-center w-full max-w-4xl prose-neutral prose-sm prose-ul:list-disc prose-ol:list-disc sm:prose-base lg:prose-lg format-blue dark:format-invert">
8+
9+
<time class="w-full text-slate-600 dark:text-slate-400 font-extrabold text-xs xs:text-xs sm:text-xs md:text-sm lg:text-sm xl:text-sm 2xl:text-sm " datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
10+
<h1 class="mb-4 text-3xl font-extrabold text-center leading-tight text-gray-900 lg:mb-6 lg:text-6xl dark:text-white"> {{title}} </h1>
11+
<p class="text-slate-600 dark:text-slate-400 text-xs xs:text-xs sm:text-xs md:text-sm lg:text-2xl ">{{excerpt}}</p>
512

6-
{{!-- Pass reading_time time to authors partials with block , learn more about about block https://ghost.org/docs/themes/helpers/block/ --}}
7-
{{#contentFor "fastestReadingTime"}}
813

9-
<p class="text-slate-600 dark:text-slate-400 text-xs xs:text-xs sm:text-xs md:text-sm lg:text-sm xl:text-sm 2xl:text-sm ">
10-
{{reading_time}}
11-
</p>
14+
<header class="mb-4 lg:mb-6 not-prose mx-auto">
15+
<address class="flex items-center justify-center mb-6 not-italic">
16+
<div class="inline-flex items-center mr-3 text-sm text-gray-900 dark:text-white">
17+
<img class="mr-4 w-16 h-16 rounded-full" src="{{primary_author.profile_image}}" alt="{{primary_author.name}}">
18+
<div>
19+
<a href="{{primary_author.url}}" rel="author" class="text-xl font-bold text-gray-900 dark:text-white">{{primary_author.name}}</a>
20+
</div>
21+
</div>
22+
</address>
23+
</header>
1224

13-
{{/contentFor}}
25+
<div class="my-5">
1426

15-
<article class="{{post_class}} w-6/6 p-2">
27+
{{#foreach tags visibility="public"}}
28+
1629

17-
<!-- article thumbnail with partials/authors -->
18-
{{> featureImage}}
30+
<a href="{{url}}" class="bg-purple-100 text-purple-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-purple-400 border border-purple-400" > # {{name}}</a>
1931

20-
<!-- Heading section -->
21-
<div class="m-auto mb-4 w-6/6 xs:w-5/6 sm:w-5/6 md:w-5/6 lg:w-5/6 xl:w-5/6 2xl:w-5/6">
22-
<h1 class="mt-8 text-3xl xs:text-4xl sm:text-5xl md:text-5xl xl:text-5xl 2xl:text-5xl">
23-
{{title}}
24-
</h1>
25-
<p class="text-slate-600 dark:text-slate-500 mt-2 text-1xl">
26-
{{excerpt}}
27-
</p>
28-
</div>
29-
30-
<!-- Author card partials/authors -->
31-
{{> authors}}
32+
{{/foreach}}
33+
34+
</div>
35+
</section>
36+
37+
{{> featureImage}}
38+
39+
<section class="mx-auto w-full max-w-4xl prose-neutral prose-sm prose-ul:list-disc prose-ol:list-disc sm:prose-base lg:prose-lg format-blue dark:format-invert">
40+
{{content}}
41+
</section>
42+
</article>
3243

33-
<!-- article body -->
34-
<div class="prose-lg prose-neutral m-auto p-2 my-10 w-10/12">
35-
{{content}}
36-
</div>
3744

38-
</article>
3945

4046

4147
{{!-- partials/comment --}}
@@ -54,15 +60,12 @@
5460

5561
{{!-- loop all post --}}
5662
{{#foreach posts}}
57-
{{> postCard }}
63+
{{> card }}
5864
{{/foreach}}
5965

6066
{{/if}}
6167

6268
{{/get}}
6369

6470

65-
{{/post}}
66-
67-
{{!-- newsletter partials --}}
68-
{{> newsletter}}
71+
{{/post}}

0 commit comments

Comments
 (0)