Skip to content

Commit

Permalink
UPDATE: use generic template
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Mar 9, 2024
1 parent cb15f26 commit 47a5c1c
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 128 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Google Cloud Icons [<img alt="Google Cloud Logo" src="/docs/favicon.svg" height="96" align="right"/>](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)

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.
All rights/licensing/ownership/etc is by Google.
14 changes: 6 additions & 8 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
57 changes: 15 additions & 42 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,63 +1,36 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>{% if page.h1 %}{{ page.title }}{% else %}{{ page.title }} - {{site.title}}{% endif %}</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>{{site.title}}</title>
<meta name="referrer" content="unsafe-url" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css" />
<style>
:root {
--block-spacing-vertical: 0;
/* LATER: why doesn't this work??? */
}

body>main {
padding-top: 1em;
}

h1 {
margin-bottom: 0.25em;
font-size: 3rem;
font-weight: 400;
}

h2 {
font-size: 2.5rem;
font-weight: 400;
margin-top: 0.75em;
margin-bottom: 0.25em;
footer {
margin-top: 0;
padding-top: 0;
text-align: center;
}

h3 {
margin-top: 0.75em;
margin-bottom: 0.25em;
}

p {
margin-bottom: 0.75em;
}

</style>

</head>

<body>
<main class="container">
<h1>
<img alt="logo" src="/favicon.svg" style="height:1.5em;vertical-align:top;" />&nbsp;
{% if page.h1 %}{{ page.h1 }}{% else %}{{ page.title }}{% endif %}
{{site.title}}
</h1>
<hr/>
<p><small>
{%- for link in site.links %}
{%- if forloop.index0 > 0 %} | {% endif %}
<a href="{{link.url}}" title="{{link.name}}">{{link.name}}</a>
{%- endfor %}
</small></p>
{{content}}
<hr/>
<p>
<a href="https://cloud.google.com/icons?hl=en" title="Google Cloud Icons"><img style="height:1em;vertical-align: text-top;padding-right:0.5em;" src="https://www.vectorlogo.zone/logos/google_cloud/google_cloud-icon.svg" alt="Google Cloud">Download all</a>
<a href="https://github.com/AwesomeLogos/google-cloud-icons" title="Source"><img style="height:1em;vertical-align: text-top;padding-right:0.5em;" src="https://www.vectorlogo.zone/logos/github/github-tile.svg" alt="GitHub">Website source</a>
</p>
</main>
</body>

</html>
</html>
1 change: 1 addition & 0 deletions docs/_layouts/none.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{content}}
9 changes: 0 additions & 9 deletions docs/count.json

This file was deleted.

5 changes: 2 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -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" %}
<p>
{% for myimage in image_files %}
<a href="{{myimage.path}}" title="{{myimage.basename}}"><img style="padding:5pt;height:72pt;" src="{{ myimage.path }}" alt="{{ myimage.basename }}"></a>
{% endfor %}
</p>
</p>
10 changes: 3 additions & 7 deletions docs/robots.txt
Original file line number Diff line number Diff line change
@@ -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
15 changes: 0 additions & 15 deletions docs/sitemap.xml

This file was deleted.

40 changes: 0 additions & 40 deletions docs/sitemap.xslt

This file was deleted.

6 changes: 4 additions & 2 deletions docs/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)'}}"
}
"tech": "Jekyll {{site.github.versions.jekyll | default: site.data.jekyll_version | default: '(unknown)'}}",
"count": {{ image_files | size }}
}
10 changes: 10 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 47a5c1c

Please sign in to comment.