--- # Copyright 2025 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. layout: default menu_section: examples scripts: - examples ---
{% assign examples = site.data.examples | sort: 'featured' %} {% for example in examples reversed %}
{% if example.screenshot_platform == 'chalk' %} {% elsif example.screenshot_platform == 'basalt' %} {% else %} {% endif %}

{{ example.title }}

{% for tag in example.tags %}{{ tag }}{% unless forloop.last %} · {% endunless %}{% endfor %}
{{ example.description | markdownify }}

GitHub {% unless example.no_cloudpebble %} {% if example.beta_cloudpebble %} CloudPebble {% else %} CloudPebble {% endif %} {% endunless %}

{% endfor %}

Language

{% assign languages = site.data.examples_metadata.languages | hash_sort: 'count' %} {% for language in languages reversed %} {{ language | first }} {% endfor %}

Hardware Platform

{% assign hardware_platforms = site.data.examples_metadata.hardware_platforms | hash_sort: 'count' %} {% for hw in hardware_platforms reversed %} {{ hw | first }} {% endfor %}

Tags

{% assign tags = site.data.examples_metadata.tags | hash_sort: 'count' %} {% for tag in tags reversed %} {{ tag | first }} {% endfor %}