diff --git a/docs/content/preview/architecture/key-concepts.md b/docs/content/preview/architecture/key-concepts.md index 352f987946bd..25399143ec19 100644 --- a/docs/content/preview/architecture/key-concepts.md +++ b/docs/content/preview/architecture/key-concepts.md @@ -220,3 +220,4 @@ Fully-relational SQL API that is wire compatible with the SQL language in Postgr ## Zone Typically referred as Availability Zones or just AZ, a zone is a datacenter or a group of colocated datacenters. Zone is the default [fault domain](#fault-domain) in YugabyteDB. +{{< contribute >}} diff --git a/docs/layouts/indexpage/list.html b/docs/layouts/indexpage/list.html index 70b15a0f7151..20876f34ac2e 100644 --- a/docs/layouts/indexpage/list.html +++ b/docs/layouts/indexpage/list.html @@ -1,79 +1,15 @@ {{ define "main" }} -{{- $headingIcon := false -}} -{{- $headingImage := false -}} -
- {{ if and (.Params.resourcesIntro) (.Params.resources) }} -
+
+ {{ partial "sidebar.html" . }} +
+

{{ .Title }}

+ {{ .Content }} -
- {{ end }} - - {{- if .Site.Params.search_banner -}} - {{ partial "search-banner.html" . }} - {{- end -}} - - {{- if and (.Site.Params.yb.heading_icons) (.Params.image) (not .Params.hideHeadingIcon) -}} - {{- if in .Params.image "/" -}} - {{ $checkImagePath := printf "public%s" .Params.image }} - {{- if fileExists $checkImagePath }} - {{- $headingImage = true -}} - {{- end -}} - {{- else -}} - {{- $headingIcon = true -}} - {{- end -}} - {{- end -}} - -
- {{- if and (.Site.Params.versions) (not .Params.unversioned) -}} - - {{- end -}} - {{- if $headingImage -}} -
- {{ .Title }} -
- {{- else if $headingIcon -}} -
- -
- {{- end -}} -
-
-

- {{ if .Params.headerTitle }}{{ .Params.headerTitle }}{{ else }}{{ .Title }}{{ end }} - {{ if .Draft }} (Draft){{ end }} - {{- if .Params.tags -}} - {{- if .Params.tags.feature -}} - {{- partial "tags/feature.html" . -}} - {{- end -}} - - {{- if .Params.tags.other -}} - {{- partial "tags/other.html" . -}} - {{- end -}} - {{- end -}} -

- {{ with .Params.headcontent }}
{{ . | markdownify }}
{{ end }} -
+ {{ partial "page-meta-lastmod.html" . }}
- - {{- if ne .Params.showRightNav true -}} - {{- partial "contribute_list" . -}} - {{- end -}} - - {{ .Content | replaceRE "()" "
${1}
" | safeHTML }} - {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} - {{ partial "feedback.html" .Site.Params.ui.feedback }} -
- {{ end }} - {{ partial "page-meta-lastmod.html" . }} -
{{ end }} diff --git a/docs/layouts/partials/page-meta-lastmod.html b/docs/layouts/partials/page-meta-lastmod.html new file mode 100644 index 000000000000..45b7f11c422d --- /dev/null +++ b/docs/layouts/partials/page-meta-lastmod.html @@ -0,0 +1,9 @@ +{{ if .Lastmod }} +

+ Last updated: {{ .Lastmod.Format "Jan 02, 2006" }} +

+{{ else }} +

+ Last updated: N/A +

+{{ end }} diff --git a/docs/layouts/partials/sidebar.html b/docs/layouts/partials/sidebar.html new file mode 100644 index 000000000000..4c7a45e6db94 --- /dev/null +++ b/docs/layouts/partials/sidebar.html @@ -0,0 +1,10 @@ + diff --git a/layouts/shortcodes/contribute.html b/layouts/shortcodes/contribute.html new file mode 100644 index 000000000000..470cf340bed4 --- /dev/null +++ b/layouts/shortcodes/contribute.html @@ -0,0 +1,3 @@ +
+

Want to improve this page? Contribute on GitHub!

+