diff --git a/content/actions/index.md b/content/actions/index.md index f289ebb7f7..62205a48e4 100644 --- a/content/actions/index.md +++ b/content/actions/index.md @@ -46,29 +46,4 @@ versions: - - - -{% assign actionsCodeExamples = site.data.variables.action_code_examples %} -{% if actionsCodeExamples %} -
-

Code examples

- -
- -
- -
- {% render code-example-card for actionsCodeExamples as example %} -
- - - -
-
{% octicon "search" width="24" %}
-

Sorry, there is no result for

-

It looks like we don't have an example that fits your filter.
Try another filter or add your code example

- Learn how to add a code example {% octicon "arrow-right" %} -
-
-{% endif %} + \ No newline at end of file diff --git a/content/discussions/index.md b/content/discussions/index.md index e0092dcbc1..3c52fee2cf 100644 --- a/content/discussions/index.md +++ b/content/discussions/index.md @@ -34,24 +34,3 @@ versions: - - -{% assign discussionsCommunityExamples = site.data.variables.discussions_community_examples %} -{% if discussionsCommunityExamples %} -
-

Communities using discussions

- -
- {% render discussions-community-card for discussionsCommunityExamples as example %} -
- {% if discussionsCommunityExamples.length > 6 %} - - {% endif %} -
-
{% octicon "search" width="24" %}
-

Sorry, there is no result for

-

It looks like we don't have an example that fits your filter.
Try another filter or add your code example

- Add your community {% octicon "arrow-right" %} -
-
-{% endif %} diff --git a/data/ui.yml b/data/ui.yml index fac465f2b4..17425b6564 100644 --- a/data/ui.yml +++ b/data/ui.yml @@ -140,6 +140,16 @@ product_landing: quick_start: Quickstart reference_guides: Reference guides overview: Overview + code_examples: Code examples + search_code_examples: Search code examples + show_more: Show more + sorry: Sorry, there is no result for + no_example: It looks like we don't have an example that fits your filter. + try_another: Try another filter or add your code example. + no_result: Sorry, there is no guide that match your filter. + learn: Learn how to add a code example + communities_using_discussions: Communities using discussions + add_your_community: Add your community product_sublanding: start: Start start_path: Start path @@ -149,7 +159,6 @@ product_sublanding: more_guides: more guides load_more: Load more guides all_guides: 'All {{ productMap[currentProduct].name }} guides' - no_result: Sorry, there is no guide that match your filter. filters: type: Type topic: Topic diff --git a/data/variables/action_code_examples.yml b/data/variables/actions_code_examples.yml similarity index 100% rename from data/variables/action_code_examples.yml rename to data/variables/actions_code_examples.yml diff --git a/includes/code-examples.html b/includes/code-examples.html new file mode 100644 index 0000000000..cbd29a51cb --- /dev/null +++ b/includes/code-examples.html @@ -0,0 +1,20 @@ +
+

{% data ui.product_landing.code_examples %}

+ +
+ +
+ +
+ {% render code-example-card for productCodeExamples as example %} +
+ + + +
+
{% octicon "search" width="24" %}
+

{% data ui.product_landing.sorry %}

+

{% data ui.product_landing.no_result %}
{% data ui.product_landing.try_another %}

+ {% data ui.product_landing.learn %} {% octicon "arrow-right" %} +
+
diff --git a/includes/community-examples.html b/includes/community-examples.html new file mode 100644 index 0000000000..42a95855cb --- /dev/null +++ b/includes/community-examples.html @@ -0,0 +1,16 @@ +
+

{% data ui.product_landing.communities_using_discussions %}

+ +
+ {% render discussions-community-card for productCommunityExamples as example %} +
+ {% if productCommunityExamples.length > 6 %} + + {% endif %} +
+
{% octicon "search" width="24" %}
+

{% data ui.product_landing.sorry %}

+

{% data ui.product_landing.no_example %}
{% data ui.product_landing.try_another %}

+ {% data ui.product_landing.add_your_community %} {% octicon "arrow-right" %} +
+
\ No newline at end of file diff --git a/includes/sidebar-specific-product.html b/includes/sidebar-specific-product.html index e4684187de..99dc1c4d41 100644 --- a/includes/sidebar-specific-product.html +++ b/includes/sidebar-specific-product.html @@ -19,13 +19,14 @@ {% capture fullPathToCategory %}{{category[1].href}}{% endcapture %}