jekyll-theme-hydejack 6.0.0.pre.alpha → 6.0.0.pre.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -1
- data/README.md +0 -84
- data/_includes/about.html +1 -5
- data/_includes/body.html +31 -0
- data/_includes/copyright-header +4 -4
- data/_includes/footer.html +4 -9
- data/_includes/head.html +38 -22
- data/_includes/icon-github.html +2 -0
- data/_includes/page-style.html +8 -0
- data/_includes/related.html +2 -2
- data/_includes/scripts.html +7 -2
- data/_includes/sidebar.html +1 -1
- data/_includes/styles/inline.scss +1 -0
- data/_includes/styles/style.scss +2 -1
- data/_layouts/about.html +1 -5
- data/_layouts/base.html +6 -26
- data/_layouts/compress.html +4 -4
- data/_layouts/default.html +22 -14
- data/_layouts/home.html +3 -0
- data/_layouts/list.html +2 -2
- data/_layouts/redirect.html +8 -0
- data/_sass/_mixins.scss +2 -2
- data/_sass/_spinner.scss +1 -1
- data/_sass/_variables.scss +15 -31
- data/_sass/hydejack/_base-inline.scss +27 -14
- data/_sass/hydejack/_base.scss +26 -17
- data/_sass/hydejack/_content-inline.scss +7 -3
- data/_sass/hydejack/_footer-inline.scss +7 -3
- data/_sass/hydejack/_katex.scss +10 -7
- data/_sass/hydejack/_me-inline.scss +6 -4
- data/_sass/hydejack/_menu-inline.scss +4 -4
- data/_sass/hydejack/_menu.scss +4 -4
- data/_sass/hydejack/_sidebar-inline.scss +10 -3
- data/_sass/hydejack/_sidebar.scss +13 -6
- data/_sass/hydejack/_social-inline.scss +29 -20
- data/_sass/hydejack/_social.scss +29 -20
- data/_sass/hydejack/_toc.scss +0 -4
- data/_sass/pooleparty/_base-inline.scss +2 -1
- data/_sass/pooleparty/_base.scss +2 -1
- data/_sass/pooleparty/_code.scss +6 -10
- data/_sass/pooleparty/_footnotes.scss +4 -6
- data/_sass/pooleparty/_message-inline.scss +2 -2
- data/_sass/pooleparty/_pagination.scss +6 -6
- data/_sass/pooleparty/_posts-inline.scss +1 -1
- data/_sass/pooleparty/_related-inline.scss +2 -1
- data/_sass/pooleparty/_table.scss +13 -9
- data/_sass/pooleparty/_type-inline.scss +9 -8
- data/_sass/pooleparty/_type.scss +9 -4
- data/assets/img/doc.jpg +0 -0
- data/assets/img/google-fonts.png +0 -0
- data/assets/js/hydejack.js +16 -15
- data/assets/version.json +1 -1
- metadata +8 -52
- data/_includes/menu.html +0 -6
- data/_includes/pro/project-card.html +0 -17
- data/_includes/pro/styles/projects.scss +0 -4
- data/_includes/pro/styles/resume.scss +0 -4
- data/assets/img/projects/hyde-v1.png +0 -0
- data/assets/img/projects/hyde-v1@0,25x.png +0 -0
- data/assets/img/projects/hyde-v1@0,5x.png +0 -0
- data/assets/img/projects/hyde-v2.png +0 -0
- data/assets/img/projects/hyde-v2@0,25x.png +0 -0
- data/assets/img/projects/hyde-v2@0,5x.png +0 -0
- data/assets/img/projects/hydejack-v3.jpg +0 -0
- data/assets/img/projects/hydejack-v3@0,25x.jpg +0 -0
- data/assets/img/projects/hydejack-v3@0,5x.jpg +0 -0
- data/assets/img/projects/hydejack-v4.jpg +0 -0
- data/assets/img/projects/hydejack-v4@0,25x.jpg +0 -0
- data/assets/img/projects/hydejack-v4@0,5x.jpg +0 -0
- data/assets/img/projects/hydejack-v5.jpg +0 -0
- data/assets/img/projects/hydejack-v5@0,25x.jpg +0 -0
- data/assets/img/projects/hydejack-v5@0,5x.jpg +0 -0
- data/assets/img/projects/hydejack-v6.jpg +0 -0
- data/assets/img/projects/hydejack-v6@0,25x.jpg +0 -0
- data/assets/img/projects/hydejack-v6@0,5x.jpg +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f60e61d8d8c49226b4a8c5c4b4e0b4a7fb014429
|
4
|
+
data.tar.gz: b1d61e7346be85e5b00238481a26ca6d757d79f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a09aaf0df840fc8222a66a53e9ddae29d42400967b289a0eb7688085e61f955296711f60d3baa75bfd44f8695fd454a2f8a856a9c779de056b118d74cb2f667b
|
7
|
+
data.tar.gz: 4908cb5c8ffc57645a988dbfe1ab0c33e486b23da6affa74d14bcb55676d6d49cdacae23145f1bac68b71e693b19cc1db3014ab1120e524306b8f984b3fcf652
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,87 +1,3 @@
|
|
1
1
|
# Hydejack
|
2
2
|
|
3
3
|
Hydejack is a pretentious two-column [Jekyll](http://jekyllrb.com) theme, stolen by [`@qwtel`](https://twitter.com/qwtel) from [Hyde](http://hyde.getpoole.com). You could say it was.. [hydejacked](http://media3.giphy.com/media/makedRIckZBW8/giphy.gif).
|
4
|
-
|
5
|
-
## Features
|
6
|
-
Unlike Hyde, it's very opinionated about how you are going to use it.
|
7
|
-
|
8
|
-
Features include:
|
9
|
-
|
10
|
-
* Touch-enabled sidebar / drawer for mobile, including fallback when JS is disabled.
|
11
|
-
* Github Pages compatible tag support based on [this post][tag].
|
12
|
-
* Customizable link color and sidebar image, per-site, per-tag and per-post.
|
13
|
-
* Optional author section at the bottom of each post.
|
14
|
-
* Optional comment section powered by Disqus.
|
15
|
-
* Layout for posts grouped by year
|
16
|
-
* Wide array of social media icons on sidebar.
|
17
|
-
* Math blocks via [KaTeX](https://khan.github.io/KaTeX/).
|
18
|
-
|
19
|
-
## Download
|
20
|
-
Hydejack is developed on and hosted with GitHub. Head to the [GitHub repository](https://github.com/qwtel/hydejack) for downloads, bug reports, and feature requests.
|
21
|
-
|
22
|
-
## Sidebar
|
23
|
-
I love the original Hyde theme, but unfortunately the layout isn't as great on small screens.
|
24
|
-
Since the sidebar moves to the top, the user has to scroll down just to read the title of a blog post.
|
25
|
-
|
26
|
-
By using a drawer component I was able to retain the original two column layout. It's possible to move the drawer via touch input (with the help of a little JavaScript).
|
27
|
-
|
28
|
-
Since the background image contributes to the feel of the page I'm letting it peek over the edge a bit. This also provides a hint to the user that an interaction is possible.
|
29
|
-
|
30
|
-
## Manual
|
31
|
-
|
32
|
-
### Configuration
|
33
|
-
You can configure important aspects of the theme via [`_config.yml`](https://github.com/qwtel/hydejack/blob/master/_config.yml). This includes:
|
34
|
-
|
35
|
-
* the blog description in the sidebar
|
36
|
-
* the (optional) author description and photo
|
37
|
-
* default image and link color of the blog
|
38
|
-
* the github and twitter usernames
|
39
|
-
|
40
|
-
### How to Change the Image and Color of a Post
|
41
|
-
In the manifest of a blog post, simply add an url as `image` and a CSS color as `color`:
|
42
|
-
|
43
|
-
~~~yml
|
44
|
-
layout: post
|
45
|
-
title: Introducing Hydejack
|
46
|
-
image: https://qwtel.com/hydejack/public/img/hyde.jpg
|
47
|
-
color: '#949667'
|
48
|
-
~~~
|
49
|
-
|
50
|
-
### How to Add a New Tag
|
51
|
-
Tags are possible, but they are not meant to be used #instagram #style: #food #goodfood #happy #happylife #didimentionfood #yougetthepoint. Each tag requires some setup work. I tend to think of it as categories that can be combined.
|
52
|
-
|
53
|
-
1. Add an entry to `_data/tags.yml`, where the key represents a slug and provide at least a `name` value and optionally `image`, `color` and `description`.
|
54
|
-
|
55
|
-
Example `/_data/tags.yml`:
|
56
|
-
|
57
|
-
~~~yml
|
58
|
-
mytag:
|
59
|
-
name: My Tag
|
60
|
-
~~~
|
61
|
-
|
62
|
-
2. Make a new file in the `tag` folder, using the same name you've used as the key / slug and change the `tag` and `permalink` entries.
|
63
|
-
|
64
|
-
Example `/tag/mytag.md`:
|
65
|
-
|
66
|
-
~~~yml
|
67
|
-
layout: blog-by-tag
|
68
|
-
tag: mytag
|
69
|
-
permalink: /tag/mytag/
|
70
|
-
~~~
|
71
|
-
|
72
|
-
3. Tag your blog posts using the `tags` key (color and image will only depend on the first tag).
|
73
|
-
|
74
|
-
~~~yml
|
75
|
-
layout: post
|
76
|
-
title: Introducing My New Tag
|
77
|
-
tags: [mytag, othertag]
|
78
|
-
~~~
|
79
|
-
|
80
|
-
4. (optional) Add the tag to the sidebar, by adding it to `sidebar_tags` in `_config.yml`.
|
81
|
-
They will appear in the listed order.
|
82
|
-
|
83
|
-
~~~yml
|
84
|
-
sidebar_tags: [mytag, othertag]
|
85
|
-
~~~
|
86
|
-
|
87
|
-
[tag]: http://www.minddust.com/post/tags-and-categories-on-github-pages/
|
data/_includes/about.html
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
{%
|
2
|
-
{% assign author = site.data.authors[page.author] %}
|
3
|
-
{% elsif site.author.authors_key %}
|
4
|
-
{% assign author = site.data.authors[site.author.authors_key] %}
|
5
|
-
{% endif %}
|
1
|
+
{% assign author = site.data.authors[page.author] | default:site.data.authors.first[1] %}
|
6
2
|
|
7
3
|
{% if author.about %}
|
8
4
|
<aside class="author" role="complementary">
|
data/_includes/body.html
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
<!-- =============== -->
|
2
|
+
<!-- MENU -->
|
3
|
+
<!-- =============== -->
|
4
|
+
<span class="sr-only">Jump to:</span>
|
5
|
+
|
6
|
+
<a id="_menu" class="menu no-hover" href="#_title">
|
7
|
+
<span>☰</span>
|
8
|
+
<span class="sr-only">Menu</span>
|
9
|
+
</a>
|
10
|
+
|
11
|
+
<!-- =============== -->
|
12
|
+
<!-- CONTENT -->
|
13
|
+
<!-- =============== -->
|
14
|
+
<div id="_yPushState">
|
15
|
+
<main id="_main" class="content container" role="main" data-color="{{ color | escape }}" data-image="{{ image | escape }}">
|
16
|
+
|
17
|
+
{{ content }}
|
18
|
+
|
19
|
+
{% if site.disqus_shortname and page.comments %}
|
20
|
+
{% include comments.html %}
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
{% include footer.html %}
|
24
|
+
</main>
|
25
|
+
{% include sidebar.html %}
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<!-- =============== -->
|
29
|
+
<!-- SCRIPTS -->
|
30
|
+
<!-- =============== -->
|
31
|
+
{% include scripts.html %}
|
data/_includes/copyright-header
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
* /\___/ \ \____/
|
9
9
|
* \/__/ \/___/
|
10
10
|
*
|
11
|
-
* Copyright (c) 2017 Florian Klampfer
|
12
|
-
* Licensed under MIT
|
13
|
-
*
|
14
|
-
* Version: 6.0.0-
|
11
|
+
* Copyright (c) 2017 Florian Klampfer
|
12
|
+
* Licensed under MIT
|
13
|
+
* Powered by Hydejack (https://qwtel.com/hydejack/)
|
14
|
+
* Version: 6.0.0-beta2
|
15
15
|
*/
|
data/_includes/footer.html
CHANGED
@@ -1,14 +1,9 @@
|
|
1
1
|
<footer>
|
2
2
|
<hr/>
|
3
|
+
{% if site.copyright.size > 0 %}
|
4
|
+
{{ site.copyright | markdownify }}
|
5
|
+
{% endif %}
|
3
6
|
<p>
|
4
|
-
<
|
5
|
-
<br/>
|
6
|
-
<a class="code" href="https://qwtel.com/hydejack">
|
7
|
-
Made with
|
8
|
-
<span class="icon-droplet" title="Blood" style="color:#de6767"></span><span class="icon-droplet" title="Sweat" style="color:#66dcff"></span><span class="icon-droplet" title="Tears" style="color:#66beff"></span>
|
9
|
-
<span class="sr-only">blood, sweat and tears</span>
|
10
|
-
by
|
11
|
-
@qwtel
|
12
|
-
</a>
|
7
|
+
<code>Powered by <a href="https://qwtel.com/hydejack/">Hydejack</a> v<span id="_version">6.0.0-beta2</span></code>
|
13
8
|
</p>
|
14
9
|
</footer>
|
data/_includes/head.html
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
<!-- =============== -->
|
2
|
+
<!-- META -->
|
3
|
+
<!-- =============== -->
|
1
4
|
<meta charset="utf-8">
|
2
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
|
3
6
|
<meta name="format-detection" content="telephone=no">
|
@@ -13,7 +16,12 @@
|
|
13
16
|
{% endif %}
|
14
17
|
{% endcapture %}
|
15
18
|
|
16
|
-
|
19
|
+
{% unless page.redirect %}
|
20
|
+
<title>{{ title | strip }}</title>
|
21
|
+
{% else %}
|
22
|
+
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
|
23
|
+
<title>Redirecting...</title>
|
24
|
+
{% endunless %}
|
17
25
|
|
18
26
|
{% if page.description.size > 0 %}
|
19
27
|
{% assign description = page.description | markdownify %}
|
@@ -39,6 +47,20 @@
|
|
39
47
|
<link rel="next" href="{{ page.next.url | absolute_url }}">
|
40
48
|
{% endif %}
|
41
49
|
|
50
|
+
<!-- =============== -->
|
51
|
+
<!-- SCRIPTS -->
|
52
|
+
<!-- =============== -->
|
53
|
+
<script>
|
54
|
+
window._version = '6.0.0-beta2';
|
55
|
+
{% include scripts/load-js-deferred.min.js %}
|
56
|
+
{% include scripts/loadCSS.min.js %}
|
57
|
+
{% include scripts/cssrelpreload.min.js %}
|
58
|
+
</script>
|
59
|
+
|
60
|
+
<!--[if lt IE 9]>
|
61
|
+
<script src="https://unpkg.com/html5shiv/dist/html5shiv.min.js"></script>
|
62
|
+
<![endif]-->
|
63
|
+
|
42
64
|
<!-- =============== -->
|
43
65
|
<!-- STYLES -->
|
44
66
|
<!-- =============== -->
|
@@ -50,38 +72,32 @@
|
|
50
72
|
{{ include_to_scssify | scssify }}
|
51
73
|
</style>
|
52
74
|
|
53
|
-
{% capture style_url %}
|
75
|
+
{% capture style_url %}{% link assets/css/hydejack.css %}?v=6.0.0-beta2{% endcapture %}
|
54
76
|
<link rel="preload" href="{{ style_url | relative_url }}" as="style" onload="this.rel='stylesheet'">
|
55
77
|
|
56
78
|
{% include page-style.html %}
|
57
79
|
|
58
|
-
{% assign google_fonts = site.google_fonts | default:"Roboto+Slab:700|Noto+Serif:400,400i,700,700i" %}
|
59
|
-
|
60
80
|
<noscript>
|
61
81
|
<link rel="stylesheet" href="{{ style_url | relative_url }}">
|
62
82
|
|
83
|
+
{% assign font = site.font %}
|
84
|
+
{% assign font_heading = site.font_heading %}
|
85
|
+
{% assign google_fonts = site.google_fonts %}
|
86
|
+
{% unless font or font_heading or google_fonts %}
|
87
|
+
{% assign font = "'Noto Serif', Georgia, serif" %}
|
88
|
+
{% assign font_heading = "'Roboto Slab', Helvetica, Arial, sans-serif" %}
|
89
|
+
{% assign google_fonts = "Roboto+Slab:700|Noto+Serif:400,400i,700,700i" %}
|
90
|
+
{% endunless %}
|
91
|
+
|
63
92
|
{% if google_fonts.size > 0 %}
|
64
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
|
93
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{ google_fonts }}">
|
65
94
|
<style>
|
66
|
-
html { font-family: {{
|
67
|
-
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .heading { font-family: {{
|
95
|
+
html { font-family: {{ font }} }
|
96
|
+
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .heading { font-family: {{ font_heading }} }
|
68
97
|
</style>
|
69
98
|
{% endif %}
|
70
99
|
|
71
|
-
|
100
|
+
{% capture icons_url %}{% link assets/icomoon/style.css %}{% endcapture %}
|
101
|
+
<link rel="stylesheet" href="{{ icons_url | relative_url }}">
|
72
102
|
</noscript>
|
73
103
|
<!--<![endif]-->
|
74
|
-
|
75
|
-
<!-- =============== -->
|
76
|
-
<!-- SCRIPTS -->
|
77
|
-
<!-- =============== -->
|
78
|
-
<script>
|
79
|
-
window._version = '6.0.0-alpha';
|
80
|
-
{% include scripts/load-js-deferred.min.js %}
|
81
|
-
{% include scripts/loadCSS.min.js %}
|
82
|
-
{% include scripts/cssrelpreload.min.js %}
|
83
|
-
</script>
|
84
|
-
|
85
|
-
<!--[if lt IE 9]>
|
86
|
-
<script src="https://unpkg.com/html5shiv/dist/html5shiv.min.js"></script>
|
87
|
-
<![endif]-->
|
data/_includes/page-style.html
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
<style id="_pageStyle">
|
2
|
+
{% capture page_style %}
|
2
3
|
.content a {
|
3
4
|
color: {{ color }};
|
5
|
+
border-color: fade-out({{ color }}, 0.8);
|
6
|
+
}
|
7
|
+
|
8
|
+
.content a:hover {
|
9
|
+
border-color: {{ color }};
|
4
10
|
}
|
5
11
|
|
6
12
|
:focus {
|
@@ -16,4 +22,6 @@
|
|
16
22
|
color: #fff;
|
17
23
|
background: {{ color }};
|
18
24
|
}
|
25
|
+
{% endcapture %}
|
26
|
+
{{ page_style | scssify }}
|
19
27
|
</style>
|
data/_includes/related.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
{% for post in site.related_posts limit:3 %}
|
10
10
|
{% include post-list-item.html post=post format="%m/%d/%y" %}
|
11
11
|
{% endfor %}
|
12
|
-
{% elsif post.categories.first
|
12
|
+
{% elsif post.categories.first %}
|
13
13
|
{% assign category_posts = site.categories[post.categories.first] %}
|
14
14
|
{% assign plusone = false %}
|
15
15
|
{% for post in category_posts limit:4 %}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
{% include post-list-item.html post=post format="%m/%d/%y" %}
|
22
22
|
{% endif %}
|
23
23
|
{% endfor %}
|
24
|
-
{% elsif post.tags.first
|
24
|
+
{% elsif post.tags.first %}
|
25
25
|
{% assign tag_posts = site.tags[post.tags.first] %}
|
26
26
|
{% assign plusone = false %}
|
27
27
|
{% for post in tag_posts limit:4 %}
|
data/_includes/scripts.html
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
{% endunless %}
|
5
5
|
|
6
6
|
<!--[if gt IE 8]><!---->
|
7
|
+
{% capture icons_url %}{% link assets/icomoon/style.css %}{% endcapture %}
|
7
8
|
<script>
|
8
9
|
WebFontConfig = {
|
9
10
|
{% if google_fonts %}
|
@@ -14,14 +15,16 @@
|
|
14
15
|
|
15
16
|
custom: {
|
16
17
|
families: ['icomoon'],
|
17
|
-
urls: ['{{
|
18
|
+
urls: ['{{ icons_url | relative_url }}']
|
18
19
|
}
|
19
20
|
};
|
20
21
|
loadJSDeferred('https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js');
|
21
22
|
</script>
|
22
23
|
|
24
|
+
{% unless page.redirect %}
|
25
|
+
|
23
26
|
<!--[if gt IE 9]><!---->
|
24
|
-
{% capture js_url %}
|
27
|
+
{% capture js_url %}{% link assets/js/hydejack.js %}?v=6.0.0-beta2{% endcapture %}
|
25
28
|
<script>loadJSDeferred('{{ js_url | relative_url }}');</script>
|
26
29
|
<!--<![endif]-->
|
27
30
|
|
@@ -34,3 +37,5 @@
|
|
34
37
|
</script>
|
35
38
|
{% endif %}
|
36
39
|
<!--<![endif]-->
|
40
|
+
|
41
|
+
{% endunless %}
|
data/_includes/sidebar.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
{% include nav.html %}
|
12
12
|
</nav>
|
13
13
|
|
14
|
-
{% assign author = site.data.authors[
|
14
|
+
{% assign author = site.data.authors.first[1] %}
|
15
15
|
{% if author.social %}
|
16
16
|
<div class="sidebar-social">
|
17
17
|
{% include social.html social=author.social %}
|
data/_includes/styles/style.scss
CHANGED
@@ -24,6 +24,7 @@
|
|
24
24
|
// @import "hydejack/social-inline";
|
25
25
|
@import "hydejack/social";
|
26
26
|
// @import "hydejack/menu-inline";
|
27
|
+
// @import "hydejack/menu";
|
27
28
|
// @import "hydejack/content-inline";
|
28
29
|
// @import "hydejack/me-inline";
|
29
30
|
@import "hydejack/katex";
|
@@ -54,7 +55,7 @@
|
|
54
55
|
|
55
56
|
{% if site.mark_external %}
|
56
57
|
@media screen {
|
57
|
-
a[href*="//"]
|
58
|
+
a[href*="//"]::after, a.no-push-state::after {
|
58
59
|
content: "\00A0\ea7e";
|
59
60
|
font-family: 'icomoon' !important;
|
60
61
|
speak: none;
|
data/_layouts/about.html
CHANGED
@@ -2,11 +2,7 @@
|
|
2
2
|
layout: base
|
3
3
|
---
|
4
4
|
|
5
|
-
{%
|
6
|
-
{% assign author = site.data.authors[page.author] %}
|
7
|
-
{% elsif site.author.authors_key %}
|
8
|
-
{% assign author = site.data.authors[site.author.authors_key] %}
|
9
|
-
{% endif %}
|
5
|
+
{% assign author = site.data.authors[page.author] | default:site.data.authors.first[1] %}
|
10
6
|
|
11
7
|
<article class="page" role="article">
|
12
8
|
{% if author.picture %}
|
data/_layouts/base.html
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
layout: compress
|
3
3
|
---
|
4
4
|
|
5
|
+
{% assign author = site.data.authors[page.author] | default:site.data.authors.first[1] %}
|
6
|
+
|
5
7
|
{% assign color = site.color | default:'#A85641' %}
|
6
8
|
{% assign image = site.image | default:'/assets/img/nap.jpg' %}
|
7
9
|
|
@@ -15,6 +17,9 @@ layout: compress
|
|
15
17
|
{% assign tag = site.featured_tags | where: "slug", tag_name | first %}
|
16
18
|
{% if tag.color %}{% assign color = tag.color %}{% endif %}
|
17
19
|
{% if tag.image %}{% assign image = tag.image %}{% endif %}
|
20
|
+
{% elsif author %}
|
21
|
+
{% if author.color %}{% assign color = author.color %}{% endif %}
|
22
|
+
{% if author.image %}{% assign image = author.image %}{% endif %}
|
18
23
|
{% endif %}
|
19
24
|
|
20
25
|
{% if page.color %}{% assign color = page.color %}{% endif %}
|
@@ -25,30 +30,5 @@ layout: compress
|
|
25
30
|
</head>
|
26
31
|
|
27
32
|
<body>
|
28
|
-
{% include
|
29
|
-
|
30
|
-
<div id="_yPushState">
|
31
|
-
<main id="_main" class="content container" role="main" data-color="{{ color | escape }}" data-image="{{ image | escape }}">
|
32
|
-
|
33
|
-
{% if page.layout == 'welcome' or page.layout == 'projects' or page.layout == 'project' or page.layout == 'resume' %}
|
34
|
-
<style>.warning{position:absolute;top:0;left:0;right:0;padding:1rem;font-size:smaller;} @media(max-width:800px){.warning{margin-left:2rem;}}</style>
|
35
|
-
{% capture warning %}
|
36
|
-
**NOTE**: The `{{ page.layout }}` layout is not part of the free version of Hydejack.
|
37
|
-
{:.warning.faded}
|
38
|
-
{% endcapture %}
|
39
|
-
{{ warning | markdownify }}
|
40
|
-
{% endif %}
|
41
|
-
|
42
|
-
{{ content }}
|
43
|
-
|
44
|
-
{% if site.disqus_shortname and page.comments %}
|
45
|
-
{% include comments.html %}
|
46
|
-
{% endif %}
|
47
|
-
|
48
|
-
{% include footer.html %}
|
49
|
-
</main>
|
50
|
-
{% include sidebar.html %}
|
51
|
-
</div>
|
52
|
-
|
53
|
-
{% include scripts.html %}
|
33
|
+
{% include body.html %}
|
54
34
|
</body>
|