From 949b35ae7c19057cf2ffc61bbe91f10905d3e780 Mon Sep 17 00:00:00 2001 From: nevfy Date: Fri, 7 Jun 2024 05:17:15 +0300 Subject: [PATCH] fix: docs article lead --- _vendor/github.com/google/docsy/assets/scss/_content.scss | 3 ++- .../github.com/google/docsy/layouts/_default/content.html | 6 +++--- _vendor/github.com/google/docsy/layouts/blog/content.html | 6 +++--- _vendor/github.com/google/docsy/layouts/docs/list.html | 6 +++--- .../google/docsy/layouts/partials/breadcrumb.html | 2 +- _vendor/github.com/google/docsy/layouts/swagger/list.html | 6 +++--- assets/scss/docsy_overrides.scss | 5 +++++ layouts/partials/footer.html | 7 +++---- 8 files changed, 23 insertions(+), 18 deletions(-) diff --git a/_vendor/github.com/google/docsy/assets/scss/_content.scss b/_vendor/github.com/google/docsy/assets/scss/_content.scss index 364aff2..a330271 100644 --- a/_vendor/github.com/google/docsy/assets/scss/_content.scss +++ b/_vendor/github.com/google/docsy/assets/scss/_content.scss @@ -82,7 +82,8 @@ } .lead { - margin-bottom: 1.5rem; + margin-bottom: 4rem; + font-size: 1.5rem; } } diff --git a/_vendor/github.com/google/docsy/layouts/_default/content.html b/_vendor/github.com/google/docsy/layouts/_default/content.html index 3da0d06..b09bbaf 100644 --- a/_vendor/github.com/google/docsy/layouts/_default/content.html +++ b/_vendor/github.com/google/docsy/layouts/_default/content.html @@ -1,11 +1,11 @@
+ {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}} + {{ partial "reading-time.html" . -}} + {{ end -}}

{{ .Title }}

{{ with .Params.description }}
{{ . | markdownify }}
{{ end }} {{ .Content }} {{ partial "feedback.html" . -}} diff --git a/_vendor/github.com/google/docsy/layouts/blog/content.html b/_vendor/github.com/google/docsy/layouts/blog/content.html index 05c69f1..c6b7ac1 100644 --- a/_vendor/github.com/google/docsy/layouts/blog/content.html +++ b/_vendor/github.com/google/docsy/layouts/blog/content.html @@ -1,4 +1,7 @@
+ {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}} + {{ partial "reading-time.html" . -}} + {{ end -}}

{{ .Title }}

{{ with .Params.description }}
{{ . | markdownify }}
{{ end }} {{ .Content }} {{ if (.Site.Params.DisqusShortname) -}} diff --git a/_vendor/github.com/google/docsy/layouts/docs/list.html b/_vendor/github.com/google/docsy/layouts/docs/list.html index 9c23159..bea6271 100644 --- a/_vendor/github.com/google/docsy/layouts/docs/list.html +++ b/_vendor/github.com/google/docsy/layouts/docs/list.html @@ -1,12 +1,12 @@ {{ define "main" }}
+ {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}} + {{ partial "reading-time.html" . -}} + {{ end -}}

{{ .Title }}

{{ with .Params.description }}
{{ . | markdownify }}
{{ end }} {{ .Content }} {{ partial "section-index.html" . -}} diff --git a/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html b/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html index ac51d3a..a04bab2 100644 --- a/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html +++ b/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html @@ -4,7 +4,7 @@ {{ end -}} diff --git a/_vendor/github.com/google/docsy/layouts/swagger/list.html b/_vendor/github.com/google/docsy/layouts/swagger/list.html index f5dd7d1..273bfe4 100644 --- a/_vendor/github.com/google/docsy/layouts/swagger/list.html +++ b/_vendor/github.com/google/docsy/layouts/swagger/list.html @@ -1,12 +1,12 @@ {{ define "main" }}
+ {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}} + {{ partial "reading-time.html" . -}} + {{ end -}}

{{ .Title }}

{{ with .Params.description }}
{{ . | markdownify }}
{{ end }} {{ .Content }} {{ partial "section-index.html" . -}} diff --git a/assets/scss/docsy_overrides.scss b/assets/scss/docsy_overrides.scss index f691de3..0a7e8be 100644 --- a/assets/scss/docsy_overrides.scss +++ b/assets/scss/docsy_overrides.scss @@ -162,4 +162,9 @@ li:has(input[type="checkbox"]) { .carousel-control-next, .carousel-control-prev { background-image: none; +} + +.reading-time { + font-weight: 600 !important; + margin-bottom: .5rem !important; } \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 009d638..938d559 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,5 @@ {{ $links := .Site.Params.links }}