Revise third-party content warning
parent
92d8d1e966
commit
8a736308a9
|
@ -217,7 +217,17 @@ other = "Subscribe"
|
|||
other = "Synopsis"
|
||||
|
||||
[thirdparty_message]
|
||||
other = """This section links to third party projects that provide functionality required by Kubernetes. The Kubernetes project authors aren't responsible for these projects. This page follows <a href="https://github.com/cncf/foundation/blob/master/website-guidelines.md" target="_blank">CNCF website guidelines</a> by listing projects alphabetically. To add a project to this list, read the <a href="/docs/contribute/style/content-guide/#third-party-content">content guide</a> before submitting a change."""
|
||||
other = """This section links to third party projects that provide functionality required by Kubernetes. The Kubernetes project authors aren't responsible for these projects, which are listed alphabetically. To add a project to this list, read the <a href="/docs/contribute/style/content-guide/#third-party-content">content guide</a> before submitting a change. <a href="#third-party-content-disclaimer">More information.</a>"""
|
||||
|
||||
[thirdparty_message_edit_disclaimer]
|
||||
other="""Third party content advice"""
|
||||
|
||||
|
||||
[thirdparty_message_single_item]
|
||||
other = """🛇 This item links to a third party project or product that is not part of Kubernetes itself. <a class="alert-more-info" href="#third-party-content-disclaimer">More information</a>"""
|
||||
|
||||
[thirdparty_message_disclaimer]
|
||||
other = """<p>Items on this page refer to third party products or projects that provide functionality required by Kubernetes. The Kubernetes project authors aren't responsible for those third-party products or projects. See the <a href="https://github.com/cncf/foundation/blob/master/website-guidelines.md" target="_blank">CNCF website guidelines</a> for more details.</p><p>You should read the <a href="/docs/contribute/style/content-guide/#third-party-content">content guide</a> before proposing a change that adds an extra third-party link.</p>"""
|
||||
|
||||
[ui_search_placeholder]
|
||||
other = "Search"
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
{{ partial "deprecation-warning.html" . }}
|
||||
{{ end }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{- if .HasShortcode "thirdparty-content" -}}
|
||||
{{ block "thirdparty-disclaimer" . }}
|
||||
{{ partial "docs/thirdparty-disclaimer.html" . }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
|
||||
{{ partial "feedback.html" .Site.Params.ui.feedback }}
|
||||
{{ end }}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<div class="pageinfo pageinfo-secondary" id="third-party-content-disclaimer">
|
||||
{{ T "thirdparty_message_disclaimer" | safeHTML }}
|
||||
</div>
|
|
@ -24,6 +24,10 @@
|
|||
|
||||
{{ if not (.Param "auto_generated") }}
|
||||
<a href="{{ $editURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_edit_this" }}</a>
|
||||
{{- if .HasShortcode "thirdparty-content" -}}
|
||||
<a href="#third-party-content-disclaimer" class="third-party-disclaimer-link"><i class="fa fa-icon-circle fa-fw"></i> {{ T "thirdparty_message_edit_disclaimer" | safeHTML }}</a>
|
||||
{{- end }}
|
||||
|
||||
<a href="{{ $newPageURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_create_child_page" }}</a>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
<blockquote class="callout caution" role="alert">
|
||||
<strong>{{ T "caution" | safeHTML }}</strong>
|
||||
{{- $single := .Get "single" | default "false" -}}
|
||||
<div class="alert alert-secondary callout third-party-content" role="alert">
|
||||
{{- if not (eq $single "true" ) -}}
|
||||
<strong>{{ T "note" | safeHTML }}</strong>
|
||||
{{ T "thirdparty_message" | safeHTML }}
|
||||
</blockquote>
|
||||
{{- else -}}
|
||||
{{ T "thirdparty_message_single_item" | safeHTML }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue