Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add subheadings to docs pages #1467

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
date: 2023-03-07T16:00:58+02:00
draft: false
main_title: "Headings"
subheading: ""Tailwind CSS Headings"
subheading: "Tailwind CSS Headings"
seo_title: "Tailwind CSS Headings - Free Examples & Tutorial"
description: "Responsive headings built with Tailwind CSS. Use different typography classes to change the size, weight and appearance of the text. Free download."
image: "img/components-big.jpg"
Expand Down
9 changes: 8 additions & 1 deletion site/layouts/docs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
{{ partial "head/head.html" . }}
</head>

<body class="transition-colors duration-500 dark:bg-neutral-800">
{{ partial "header/header.html" . }}

Expand Down Expand Up @@ -131,10 +132,16 @@
{{ end }}
flex w-full flex-col px-3">
{{ if not (isset .Params "custom_links") }}
<h1
<h2
class="mt-0 text-3xl font-bold leading-8 sm:text-[33px] md:text-4xl lg:text-[40px]">
{{ .Params.main_title }}
</h2>

<h1
class="my-3 text-base font-bold text-neutral-500 dark:text-neutral-300">
{{ .Params.subheading }}
</h1>

<p class="text-neutral-500 dark:text-neutral-300">
{{ .Params.description }}
</p>
Expand Down