From 47a5c1c0d506007025d36248f9d9e7a55b81a750 Mon Sep 17 00:00:00 2001 From: Andrew Marcuse Date: Sat, 9 Mar 2024 12:54:59 -0500 Subject: [PATCH] UPDATE: use generic template --- README.md | 5 ++-- docs/_config.yml | 14 ++++------ docs/_layouts/default.html | 57 ++++++++++---------------------------- docs/_layouts/none.txt | 1 + docs/count.json | 9 ------ docs/index.html | 5 ++-- docs/robots.txt | 10 ++----- docs/sitemap.xml | 15 ---------- docs/sitemap.xslt | 40 -------------------------- docs/status.json | 6 ++-- run.sh | 10 +++++++ 11 files changed, 44 insertions(+), 128 deletions(-) create mode 100644 docs/_layouts/none.txt delete mode 100644 docs/count.json delete mode 100644 docs/sitemap.xml delete mode 100644 docs/sitemap.xslt create mode 100755 run.sh diff --git a/README.md b/README.md index a9b4210..1247c32 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Google Cloud Icons [Google Cloud Logo](https://cloud.google.com/icons) -[![# of icons](https://img.shields.io/badge/dynamic/json.svg?label=icons&url=https%3A%2F%2Fgcp-icons.vectorlogo.zone%2Fcount.json&query=$.count)](https://gcp-icons.vectorlogo.zone/) +[![# of icons](https://img.shields.io/badge/dynamic/json.svg?label=icons&url=https%3A%2F%2Fgcp-icons.vectorlogo.zone%2Fstatus.json&query=$.count)](https://gcp-icons.vectorlogo.zone/) +[![last update](https://img.shields.io/badge/dynamic/json.svg?label=last%20update&url=https%3A%2F%2Fgcp-icons.svg.zone%2Fstatus.json&query=%24.lastmod)](https://gcp-icons.svg.zone/) [![pages-build-deployment](https://github.com/AwesomeLogos/google-cloud-icons/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/AwesomeLogos/google-cloud-icons/actions/workflows/pages/pages-build-deployment) [![update](https://github.com/AwesomeLogos/google-cloud-icons/actions/workflows/update.yaml/badge.svg)](https://github.com/AwesomeLogos/google-cloud-icons/actions/workflows/update.yaml) @@ -8,4 +9,4 @@ This is just an expansion of the zip file with Google Cloud's product icons. You can download the original zip (which includes PNG versions) [directly from Google](https://cloud.google.com/icons) -All rights/licensing/ownership/etc is by Google. \ No newline at end of file +All rights/licensing/ownership/etc is by Google. diff --git a/docs/_config.yml b/docs/_config.yml index 3936f85..e4cb1f8 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -5,17 +5,15 @@ exclude: [ "CNAME", "**/*_src*" ] permalink: /blog/:year/:month/:day/:title/index.:output_ext production_url: https://gcp-icons.vectorlogo.zone -title: My Vector Icons +title: Google Cloud Product Icons markdown: kramdown plugins: - jekyll-redirect-from redirect_from: json: false theme: null -defaults: - - - scope: - path: "" # an empty string here means all files in the project - values: - layout: "default" - +links: + - name: "Download original" + url: "https://cloud.google.com/icons" + - name: "Report an issue" + url: "https://github.com/AwesomeLogos/gcp-icons/issues" \ No newline at end of file diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 6f667d5..65c61bb 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -1,63 +1,36 @@ - - {% if page.h1 %}{{ page.title }}{% else %}{{ page.title }} - {{site.title}}{% endif %} - + {{site.title}} - + + - -

logo  - {% if page.h1 %}{{ page.h1 }}{% else %}{{ page.title }}{% endif %} + {{site.title}}


+

+ {%- for link in site.links %} + {%- if forloop.index0 > 0 %} | {% endif %} + {{link.name}} + {%- endfor %} +

{{content}}
-

- Google CloudDownload all - GitHubWebsite source -

- - \ No newline at end of file + diff --git a/docs/_layouts/none.txt b/docs/_layouts/none.txt new file mode 100644 index 0000000..b92f652 --- /dev/null +++ b/docs/_layouts/none.txt @@ -0,0 +1 @@ +{{content}} diff --git a/docs/count.json b/docs/count.json deleted file mode 100644 index e7139b6..0000000 --- a/docs/count.json +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Count for README badge from shields.io -noindex: true -layout: none ---- -{%- assign image_files = site.static_files | where: "extname", ".svg" | where_exp: "item", "item.path != '/favicon.svg'" | sort: "basename" -%} -{ - "count": {{ image_files | size }} -} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 82c24cf..c355e57 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,10 +1,9 @@ --- -title: Google Cloud Product Icons -h1: Google Cloud Product Icons +layout: default --- {% assign image_files = site.static_files | where: "extname", ".svg" | where_exp: "item", "item.path != '/favicon.svg'" | sort: "basename" %}

{% for myimage in image_files %} {{ myimage.basename }} {% endfor %} -

\ No newline at end of file +

diff --git a/docs/robots.txt b/docs/robots.txt index 2e34d84..2c5034b 100644 --- a/docs/robots.txt +++ b/docs/robots.txt @@ -1,14 +1,10 @@ --- -title: robots.txt layout: none -noindex: true --- # -# robots.txt for {{site.title}} -# -# all content is indexable +# robots.txt for {{site.production_url | slice: 8, 99}} # + User-Agent: * +Disallow: /honeypot.txt Allow: / - -Sitemap: {{site.production_url}}/sitemap.xml diff --git a/docs/sitemap.xml b/docs/sitemap.xml deleted file mode 100644 index a44e9e4..0000000 --- a/docs/sitemap.xml +++ /dev/null @@ -1,15 +0,0 @@ ---- -# Remember to set production_url in your _config.yml file! -title : Sitemap -layout: none -noindex: true ---- - - -{% assign sorted_pages = site.pages | sort:'url' -%} - -{% for page in sorted_pages %}{% if page.noindex %}{% else %} {{site.production_url}}{{ page.url }} -{% endif %}{% endfor -%} -{% assign sorted_posts = site.posts | sort:'url' -%} - {% for post in sorted_posts %}{% if post.noindex or post.draft %}{% else %} {{site.production_url}}{{ post.url }} -{% endif %}{% endfor %} diff --git a/docs/sitemap.xslt b/docs/sitemap.xslt deleted file mode 100644 index cf3ed8d..0000000 --- a/docs/sitemap.xslt +++ /dev/null @@ -1,40 +0,0 @@ - - - - -Powered by Sitemap Style - - - - - - - - - - Sitemap for <xsl:value-of select="$hostname"/> - - - -

Pages on

-
    - - - -
  • - - - () - -
  • -
    -
-

pages

- - -
-
diff --git a/docs/status.json b/docs/status.json index aef0f80..a0d9925 100644 --- a/docs/status.json +++ b/docs/status.json @@ -3,10 +3,12 @@ title: Status noindex: true layout: none --- +{%- assign image_files = site.static_files | where: "extname", ".svg" | where_exp: "item", "item.path != '/favicon.svg'" | sort: "basename" -%} { "success":true, "message":"OK", "commit":"{{site.github.build_revision | default: site.data.build_revision | default: 'null' | slice: 0, 7 }}", "lastmod":"{{site.time|date_to_xmlschema}}", - "tech": "Jekyll {{site.github.versions.jekyll | default: site.data.jekyll_version | default: '(unknown)'}}" -} \ No newline at end of file + "tech": "Jekyll {{site.github.versions.jekyll | default: site.data.jekyll_version | default: '(unknown)'}}", + "count": {{ image_files | size }} +} diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..eee7f2b --- /dev/null +++ b/run.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# +# run Jekyll locally +# + +set -o errexit +set -o pipefail +set -o nounset + +jekyll serve --watch --source docs --port 4000