Skip to content

Commit 4cd3616

Browse files
committed
Make site work with mobile, add releases
1 parent a1419a1 commit 4cd3616

30 files changed

+287
-1105
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ links:
3737
url: /ced
3838
- title: Certifications
3939
url: /certs
40+
- title: Releases
41+
url: /releases
4042
- title: About Me
4143
url: /about
4244
- title: Tags

_includes/header-default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ <h1>
1414
<a aria-label="Use the RSS to get updated" target="_blank" href="{{ "/feed.xml" | prepend: site.baseurl }}"><svg class="icon icon-rss"><use xlink:href="#icon-rss"></use></svg></a>
1515
</div>
1616
</div>
17-
<a role="button" class="down" data-scroll href="#scroll"><svg class="icon icon-angle-down"><use xlink:href="#icon-angle-down"></use></svg></a>
17+
<!--<a role="button" class="down" data-scroll href="#scroll"><svg class="icon icon-angle-down"><use xlink:href="#icon-angle-down"></use></svg></a>-->
1818
{% include menu-search.html %}
1919
</header>

_includes/header-post.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
<h1 class="post-title" itemprop="name">{{ page.title }}</h1>
77
<p itemprop="description" class="subtitle">{{ page.description }}</p>
88
</div>
9-
<a class="down" data-scroll href="#scroll"><svg class="icon icon-angle-down"><use xlink:href="#icon-angle-down"></use></svg></a>
9+
10+
<div class="icons-home">
11+
<a aria-label="Send email" href="mailto:{{site.username}}"><svg class="icon icon-email"><use xlink:href="#icon-email"></use></svg></a>
12+
<a aria-label="My LinkedIn" target="_blank" href="https://www.linkedin.com/in/{{site.linkedin_username}}"><svg class="icon"><use xlink:href="#icon-linkedin"></use></svg></a>
13+
<a aria-label="Stack Overflow" target="_blank" href="https://www.stackoverflow.com/{{site.stackoverflow_url}}"><svg class="icon"><use xlink:href="#icon-stackoverflow"></use></svg></a>
14+
<a aria-label="My Twitter" target="_blank" href="https://twitter.com/{{site.twitter_username}}"><svg class="icon"><use xlink:href="#icon-twitter"></use></svg></a>
15+
<a aria-label="My Google Plus" target="_blank" href="https://plus.google.com/+{{site.gplus_username}}/posts"><svg class="icon"><use xlink:href="#icon-google-plus"></use></svg></a>
16+
<a aria-label="My Github" target="_blank" href="https://github.com/{{site.github_username}}"><svg class="icon icon-github-alt"><use xlink:href="#icon-github-alt"></use></svg></a>
17+
<a aria-label="Use the RSS to get updated" target="_blank" href="{{ "/feed.xml" | prepend: site.baseurl }}"><svg class="icon icon-rss"><use xlink:href="#icon-rss"></use></svg></a>
18+
</div>
1019
{% include menu-search.html %}
1120
</header>

_includes/latest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h1>Latest</h1>
33
<ul>
44
{% for post in site.posts limit: 10 %}
5-
{% if post.category == null and post.noindex != true %}
5+
{% if post.noindex != true %}
66
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></li>
77
{% endif %}
88
{% endfor %}

_includes/menu-search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ <h2>MENU</h2>
2424
</aside>
2525
<a id="search" class="dosearch">
2626
<svg class="icon-menu icon-search"><use xlink:href="#icon-search"></use></svg>
27-
</a>
27+
</a>

_includes/svg-icons.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<!--http://codepen.io/ruandre/pen/howFi-->
21
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" display="none" version="1.1">
2+
<!--http://codepen.io/ruandre/pen/howFi-->
33
<defs>
44
<symbol id="icon-menu" viewBox="0 0 1024 1024"><path class="path1" d="M128 213.333h768q17.667 0 30.167 12.5t12.5 30.167-12.5 30.167-30.167 12.5h-768q-17.667 0-30.167-12.5t-12.5-30.167 12.5-30.167 30.167-12.5zM128 725.333h768q17.667 0 30.167 12.5t12.5 30.167-12.5 30.167-30.167 12.5h-768q-17.667 0-30.167-12.5t-12.5-30.167 12.5-30.167 30.167-12.5zM128 469.333h768q17.667 0 30.167 12.5t12.5 30.167-12.5 30.167-30.167 12.5h-768q-17.667 0-30.167-12.5t-12.5-30.167 12.5-30.167 30.167-12.5z"/></symbol>
55
<symbol id="icon-search" viewBox="0 0 951 1024"><path class="path1" d="M658.286 475.429q0-105.714-75.143-180.857t-180.857-75.143-180.857 75.143-75.143 180.857 75.143 180.857 180.857 75.143 180.857-75.143 75.143-180.857zM950.857 950.857q0 29.714-21.714 51.429t-51.429 21.714q-30.857 0-51.429-21.714l-196-195.429q-102.286 70.857-228 70.857-81.714 0-156.286-31.714t-128.571-85.714-85.714-128.571-31.714-156.286 31.714-156.286 85.714-128.571 128.571-85.714 156.286-31.714 156.286 31.714 128.571 85.714 85.714 128.571 31.714 156.286q0 125.714-70.857 228l196 196q21.143 21.143 21.143 51.429z"/></symbol>

_posts/2016-08-13-storm-invalid-class-exception.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: InvalidClassException Upon Storm Topology Submission
33
layout: post
4-
category: tips
54

65
search: "yes"
76
tags:
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: jsoup-configuration 1.0.2 Released
3+
layout: post
4+
category : releases
5+
release-date: 2016-11-12
6+
search: "yes"
7+
noindex: false
8+
tags:
9+
- jsoup
10+
- release
11+
keywords: "jsoup, release, jsoup-configuration"
12+
---
13+
14+
15+
[JSoup Configuration v 1.0.2 Released](http://trevershick.github.io/jsoup-configuration/)
16+
17+
This library was born from the need to externalize JSoup's HTML Whitelist. Deploying code
18+
for constant tweaks to the Whitelist's configuration was cumbersome. This library allows
19+
me to update the configuration outside the code (in JSON or JowliML).
20+
21+
### Usage
22+
23+
Pick your flavor, using JSON or JowliML and include the appropriate dependency.
24+
25+
In pom.xml, add the following:
26+
27+
```xml
28+
<dependency>
29+
<groupId>io.shick.jsoup</groupId>
30+
<artifactId>jsoup-configuration-gson</artifactId>
31+
<version>1.0.1</version>
32+
</dependency>
33+
```
34+
35+
Then in your Java code
36+
37+
```java
38+
39+
// you can simply instantiate the parser
40+
final Whitelist whitelist = new GsonParser().parse(json).whitelist();
41+
42+
// or you can get a parser by 'type', (either gson or jowli)
43+
final Whitelist whitelist = WhitelistConfigurationParserFactory.newParser("gson").parse(json).whitelist();
44+
45+
// or you can append to an existing whitelist
46+
final Whitelist whitelist = new GsonParser().parse(json).apply(Whitelist.basic());
47+
48+
// you can construct a new config and serialize it out too!
49+
WhitelistConfiguration wlc = new BasicWhitelistConfiguration().enforceAttribute("a","rel","nofollow");
50+
51+
final String jowli = new JowliMLFormatter().format(wlc).toString(); //jowliml
52+
final String json = new GsonFormatter().format(wlc).toString(); //json
53+
54+
55+
```
56+
57+
Formats
58+
----
59+
60+
JSON
61+
62+
```
63+
{
64+
"tags" : ["a","b"],
65+
"attributes" : {
66+
"blockquote": ["cite"]
67+
},
68+
"enforcedAttributes": {
69+
"a" : {
70+
"rel" : "nofollow"
71+
}
72+
},
73+
"protocols" : {
74+
"a" : {
75+
"href":["ftp", "http", "https", "mailto"]
76+
}
77+
}
78+
}
79+
```
80+
81+
**JowliML**
82+
83+
The point of JowliML is to provide a very terse representation of the whitelist rules.
84+
What you see below is the same as the above JSON but in a much more compact,
85+
externalized configuration friendly format.
86+
87+
88+
```
89+
(all on one line)
90+
t:a,b;
91+
a:blockquote[cite],a[href,rel];
92+
e:a[rel:nofollow];
93+
p:a[href:[ftp,http,https,mailto]]
94+
```

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: minimal
33
title: "About me"
44
permalink: /about/index.html
5-
description: "Some description about Lorem Ipsum..."
5+
description: ""
66
---
77

88
<img itemprop="image" class="img-rounded" src="/assets/img/trevershick.jpeg" alt="Trever Shick">

assets/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)