Skip to content

Commit c4fd08d

Browse files
committed
Add logo and analytics
Signed-off-by: Jim Crossley <jim@crossleys.org>
1 parent 0ddbaec commit c4fd08d

6 files changed

Lines changed: 75 additions & 4 deletions

File tree

_config.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020

2121
title: Trustification
2222
description: >- # this means to ignore newlines until "baseurl:"
23-
A community, vendor-neutral, thought-leadering, mostly informational
24-
collection of resources devoted to making Software Supply Chains
25-
easier to create, manage, consume... and trust!
23+
Making Software Supply Chains easier to trust
2624
baseurl: "" # the subpath of your site, e.g. /blog
2725
url: "" # the base hostname & protocol for your site, e.g. http://example.com
28-
twitter_username: trustification
2926
github_username: trustification
27+
author: ""
28+
29+
google_analytics: "G-HWS6R519CF"
30+
title-logo: /images/logo.png
3031

3132
# Build settings
3233
theme: minima

_includes/google-analytics.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
2+
<script>
3+
window.dataLayer = window.dataLayer || [];
4+
function gtag(){dataLayer.push(arguments);}
5+
gtag('js', new Date());
6+
7+
gtag('config', '{{ site.google_analytics }}');
8+
</script>
9+

_includes/header.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{%- assign default_paths = site.pages | map: "path" -%}
5+
{%- assign page_paths = site.header_pages | default: default_paths -%}
6+
7+
<!-- <a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a> -->
8+
<!-- replacing above line with a logo -->
9+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
10+
{%- if site.title-logo -%}
11+
<img src="{{ site.title-logo | relative_url }}" alt="{{ site.title | escape }}"></img>
12+
{%- else -%}
13+
{{ site.title | escape }}
14+
{%- endif -%}
15+
</a>
16+
17+
{%- if page_paths -%}
18+
<nav class="site-nav">
19+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
20+
<label for="nav-trigger">
21+
<span class="menu-icon">
22+
<svg viewBox="0 0 18 15" width="18px" height="15px">
23+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
24+
</svg>
25+
</span>
26+
</label>
27+
28+
<div class="trigger">
29+
{%- for path in page_paths -%}
30+
{%- assign my_page = site.pages | where: "path", path | first -%}
31+
{%- if my_page.title -%}
32+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
33+
{%- endif -%}
34+
{%- endfor -%}
35+
</div>
36+
</nav>
37+
{%- endif -%}
38+
</div>
39+
</header>

images/logo.png

4.14 KB
Loading

images/trustification.svg

Lines changed: 17 additions & 0 deletions
Loading

index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
layout: home
33
list_title: ' '
44
---
5+
6+
A community, vendor-neutral, thought-leadering, mostly informational
7+
collection of resources devoted to making Software Supply Chains
8+
easier to create, manage, consume and ultimately... to trust!
9+

0 commit comments

Comments
 (0)