Skip to content

Commit 589095f

Browse files
committed
Theme customizations, add some posts
1 parent 780382e commit 589095f

20 files changed

+530
-51
lines changed

_config.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
1414
# You can create any custom variable you would like, and they will be accessible
1515
# in the templates via {{ site.myvariable }}.
16-
title: Your awesome title
17-
email: your-email@example.com
16+
title: Transparency Matters
17+
email: johnny@lockdownprivacy.com
1818
description: >- # this means to ignore newlines until "baseurl:"
19-
Write an awesome description for your new site here. You can edit this
20-
line in _config.yml. It will appear in your document head meta (for
21-
Google search results) and in your feed.xml site description.
19+
A news and opinion blog about transparency, privacy, and incentives. Written by Johnny Lin, co-founder of Lockdown Privacy.
2220
baseurl: "" # the subpath of your site, e.g. /blog
23-
url: "" # the base hostname & protocol for your site, e.g. http://example.com
24-
twitter_username: jekyllrb
25-
github_username: jekyll
21+
url: "https://blog.lockdownprivacy.com" # the base hostname & protocol for your site, e.g. http://example.com
22+
twitter_username: lockdown_hq
23+
github_username: confirmedcode
24+
author: Johnny Lin
25+
26+
show_excerpts: true
2627

2728
# Build settings
2829
markdown: kramdown

_includes/disqus_comments.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{%- if page.comments != false and jekyll.environment == "production" -%}
2+
3+
<!-- DISQUS Disabled -->
4+
5+
{%- endif -%}

_includes/footer.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<footer class="site-footer h-card">
2+
<data class="u-url" href="{{ "/" | relative_url }}"></data>
3+
4+
<div class="wrapper">
5+
6+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
7+
8+
<div class="footer-col-wrapper">
9+
<div class="footer-col footer-col-1">
10+
<ul class="contact-list">
11+
<li class="p-name">
12+
{%- if site.author -%}
13+
{{ site.author | escape }}
14+
{%- else -%}
15+
{{ site.title | escape }}
16+
{%- endif -%}
17+
</li>
18+
{%- if site.email -%}
19+
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
20+
{%- endif -%}
21+
</ul>
22+
</div>
23+
24+
<div class="footer-col footer-col-2">
25+
{%- include social.html -%}
26+
</div>
27+
28+
<div class="footer-col footer-col-3">
29+
<p>{{- site.description | escape -}}</p>
30+
</div>
31+
</div>
32+
33+
</div>
34+
35+
</footer>

_includes/google-analytics.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- Google Analytics Disabled -->

_includes/head.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{%- seo -%}
6+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7+
{%- feed_meta -%}
8+
</head>

_includes/header.html

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}" style="font-weight: 500">{{ site.title | escape }}</a>
7+
{%- if page_paths -%}
8+
<nav class="site-nav">
9+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
10+
<label for="nav-trigger">
11+
<span class="menu-icon">
12+
<svg viewBox="0 0 18 15" width="18px" height="15px">
13+
<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"/>
14+
</svg>
15+
</span>
16+
</label>
17+
18+
<div class="trigger">
19+
<a class="page-link" href="https://lockdownprivacy.com" target="_blank">Lockdown Privacy</a>
20+
<a class="page-link" href="https://openlyoperated.org" target="_blank">Openly Operated</a>
21+
<a class="page-link" href="https://privacyreview.co" target="_blank">Privacy Review</a>
22+
{%- for path in page_paths -%}
23+
{%- assign my_page = site.pages | where: "path", path | first -%}
24+
{%- if my_page.title -%}
25+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
26+
{%- endif -%}
27+
{%- endfor -%}
28+
</div>
29+
</nav>
30+
{%- endif -%}
31+
</div>
32+
</header>

_includes/icon-github.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-github.svg

+1
Loading

_includes/icon-twitter.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-twitter.svg

+1
Loading

_includes/social.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<ul class="social-media-list">
2+
{%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{%- endif -%}
3+
{%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{%- endif -%}
4+
{%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{%- endif -%}
5+
{%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{%- endif -%}
6+
{%- if site.instagram_username -%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{%- endif -%}
7+
{%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{%- endif -%}
8+
{%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{%- endif -%}
9+
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{%- endif -%}{%- endfor -%}
10+
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
11+
{%- if site.youtube_username -%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{%- endif -%}
12+
{%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{%- endif -%}
13+
{%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
14+
</ul>

_layouts/default.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
4+
{%- include head.html -%}
5+
6+
<body>
7+
8+
{%- include header.html -%}
9+
10+
<main class="page-content" aria-label="Content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</main>
15+
16+
{%- include footer.html -%}
17+
18+
</body>
19+
20+
</html>

_layouts/home.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="home">
6+
{%- if page.title -%}
7+
<h1 class="page-heading">{{ page.title }}</h1>
8+
{%- endif -%}
9+
10+
<p style="margin-top: 0px; padding-top: 0px; padding-bottom: 20px;">Transparency Matters is a blog about transparency, privacy, and incentives. It's written by <a href="mailto:johnny@lockdownprivacy.com">Johnny Lin</a>, an ex-iCloud engineer who is a co-founder of <a href="https://lockdownprivacy.com/" target=_blank>Lockdown Privacy</a> and the <a href="https://openlyoperated.org" target=_blank>Openly Operated</a> standard.</p>
11+
12+
{{ content }}
13+
14+
{%- if site.posts.size > 0 -%}
15+
<ul class="post-list">
16+
{%- for post in site.posts -%}
17+
<li>
18+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
19+
<span class="post-meta">{{ post.date | date: date_format }}</span>
20+
<h3 style="margin-bottom: 0px;">
21+
<a class="post-link" href="{{ post.url | relative_url }}">
22+
{{ post.title | escape }}
23+
</a>
24+
</h3>
25+
{%- if site.show_excerpts -%}
26+
<div style="color:gray;">{{ post.excerpt }}</div>
27+
{%- endif -%}
28+
</li>
29+
{%- endfor -%}
30+
</ul>
31+
32+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
33+
{%- endif -%}
34+
35+
</div>

_layouts/page.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title | escape }}</h1>
8+
</header>
9+
10+
<div class="post-content">
11+
{{ content }}
12+
</div>
13+
14+
</article>

_layouts/post.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5+
6+
<header class="post-header">
7+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8+
<p class="post-meta">
9+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
11+
{{ page.date | date: date_format }}
12+
</time>
13+
{%- if page.author -%}
14+
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
15+
{%- endif -%}</p>
16+
</header>
17+
18+
<div class="post-content e-content" itemprop="articleBody">
19+
{{ content }}
20+
</div>
21+
22+
{%- if site.disqus.shortname -%}
23+
{%- include disqus_comments.html -%}
24+
{%- endif -%}
25+
26+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
27+
</article>

0 commit comments

Comments
 (0)