liddlelab-theme 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +2 -0
- data/_includes/adsense-under-header.html +12 -0
- data/_includes/featuredbox.html +55 -0
- data/_includes/giscus.html +15 -0
- data/_includes/pagination.html +25 -0
- data/_includes/postbox.html +51 -0
- data/_includes/search-lunr.html +21 -0
- data/_includes/share.html +25 -0
- data/_layouts/archive.html +21 -0
- data/_layouts/blog.html +168 -0
- data/_layouts/categories.html +23 -0
- data/_layouts/default.html +117 -0
- data/_layouts/page.html +24 -0
- data/_layouts/post.html +180 -0
- data/_layouts/tags.html +23 -0
- data/assets/css/main.css +572 -0
- data/assets/img/android-chrome-192x192.png +0 -0
- data/assets/img/android-chrome-512x512.png +0 -0
- data/assets/img/apple-touch-icon.png +0 -0
- data/assets/img/favicon-16x16.png +0 -0
- data/assets/img/favicon-32x32.png +0 -0
- data/assets/img/favicon.ico +0 -0
- data/assets/img/logo.png +0 -0
- data/assets/img/sample.jpg +0 -0
- data/assets/img/sample2.jpg +0 -0
- data/assets/js/lunr.js +2977 -0
- data/assets/js/lunrsearchengine.js +89 -0
- data/blog/index.html +54 -0
- metadata +195 -0
data/_layouts/post.html
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
archive: false
|
4
|
+
post_class: post-template
|
5
|
+
---
|
6
|
+
|
7
|
+
<!-- Begin Article
|
8
|
+
================================================== -->
|
9
|
+
<div class="container">
|
10
|
+
<div class="row">
|
11
|
+
|
12
|
+
<!-- Post Share -->
|
13
|
+
<div class="col-md-2 pl-0">
|
14
|
+
{% include share.html %}
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<!-- Post -->
|
18
|
+
{% assign author = site.authors[page.author] %}
|
19
|
+
|
20
|
+
<div class="col-md-9 flex-first flex-md-unordered">
|
21
|
+
<div class="mainheading">
|
22
|
+
|
23
|
+
<!-- Author Box -->
|
24
|
+
{% if page.author %}
|
25
|
+
<div class="row post-top-meta">
|
26
|
+
<div class="col-xs-12 col-md-3 col-lg-2 text-center text-md-left mb-4 mb-md-0">
|
27
|
+
{% if author.avatar %}
|
28
|
+
<img class="author-thumb" src="{{site.baseurl}}/{{ author.avatar }}" alt="{{ author.display_name }}">
|
29
|
+
{% else %}
|
30
|
+
<img class="author-thumb" src="https://www.gravatar.com/avatar/{{ author.gravatar }}?s=250&d=mm&r=x" alt="{{ author.display_name }}">
|
31
|
+
{% endif %}
|
32
|
+
</div>
|
33
|
+
<div class="col-xs-12 col-md-9 col-lg-10 text-center text-md-left">
|
34
|
+
<a target="_blank" href="{{ author.web }}">{{ author.display_name }}</a><a target="_blank" href="{{ author.twitter }}" class="btn follow">Follow</a>
|
35
|
+
<span class="author-description">{{ author.description }}</span>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
{% endif %}
|
39
|
+
|
40
|
+
<!-- Post Title -->
|
41
|
+
<h1 class="posttitle">{{ page.title }}</h1>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<!-- Adsense if enabled from _config.yml (change your pub id and slot) -->
|
46
|
+
{% if site.adsense == "enabled" %}
|
47
|
+
{% include adsense-under-header.html %}
|
48
|
+
{% endif %}
|
49
|
+
<!-- End Adsense -->
|
50
|
+
|
51
|
+
<!-- Post Featured Image -->
|
52
|
+
{% if page.image %}
|
53
|
+
|
54
|
+
{% if site.lazyimages == "enabled" %}
|
55
|
+
<img class="featured-image img-fluid lazyimg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII=" data-src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ site.baseurl }}/{{ page.image }}{% endif %}" alt="{{ page.title }}">
|
56
|
+
{% else %}
|
57
|
+
<img class="featured-image img-fluid" src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ site.baseurl }}/{{ page.image }}{% endif %}" alt="{{ page.title }}">
|
58
|
+
{% endif %}
|
59
|
+
|
60
|
+
{% endif %}
|
61
|
+
<!-- End Featured Image -->
|
62
|
+
|
63
|
+
<!-- Post Content -->
|
64
|
+
<div class="article-post">
|
65
|
+
<!-- Toc if any -->
|
66
|
+
{% if page.toc %}
|
67
|
+
{% if page.beforetoc %}
|
68
|
+
<p><em>{{page.beforetoc}}</em></p>
|
69
|
+
{% endif %}
|
70
|
+
<div class="toc mt-4 mb-4 lead">
|
71
|
+
<h3 class="font-weight-bold">Summary</h3>
|
72
|
+
{% include toc.html html=content %}
|
73
|
+
</div>
|
74
|
+
{% endif %}
|
75
|
+
<!-- End Toc -->
|
76
|
+
{{content}}
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<!-- Rating -->
|
80
|
+
{% if page.rating %}
|
81
|
+
<div class="rating mb-4 d-flex align-items-center">
|
82
|
+
<strong class="mr-1">Rating:</strong> {% include star_rating.html %}
|
83
|
+
</div>
|
84
|
+
{% endif %}
|
85
|
+
|
86
|
+
<!-- Post Date -->
|
87
|
+
<p>
|
88
|
+
<small>
|
89
|
+
<span class="post-date"><time class="post-date" datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time></span>
|
90
|
+
{% if page.last_modified_at %}
|
91
|
+
(Updated: <time datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="dateModified">{{ page.last_modified_at | date: "%b %-d, %Y" }}</time>)
|
92
|
+
{% endif %}
|
93
|
+
</small>
|
94
|
+
</p>
|
95
|
+
|
96
|
+
<!-- Post Categories -->
|
97
|
+
<div class="after-post-cats">
|
98
|
+
<ul class="tags mb-4">
|
99
|
+
{% assign sortedCategories = page.categories | sort %}
|
100
|
+
{% for category in sortedCategories %}
|
101
|
+
<li>
|
102
|
+
<a class="smoothscroll" href="{{site.baseurl}}/categories#{{ category | replace: " ","-" }}">{{ category }}</a>
|
103
|
+
</li>
|
104
|
+
{% endfor %}
|
105
|
+
</ul>
|
106
|
+
</div>
|
107
|
+
<!-- End Categories -->
|
108
|
+
|
109
|
+
<!-- Post Tags -->
|
110
|
+
<div class="after-post-tags">
|
111
|
+
<ul class="tags">
|
112
|
+
{% assign sortedTags = page.tags | sort %}
|
113
|
+
{% for tag in sortedTags %}
|
114
|
+
<li>
|
115
|
+
<a class="smoothscroll" href="{{site.baseurl}}/tags#{{ tag | replace: " ","-" }}">#{{ tag }}</a>
|
116
|
+
</li>
|
117
|
+
{% endfor %}
|
118
|
+
</ul>
|
119
|
+
</div>
|
120
|
+
<!-- End Tags -->
|
121
|
+
|
122
|
+
<!-- Prev/Next -->
|
123
|
+
<div class="row PageNavigation d-flex justify-content-between font-weight-bold">
|
124
|
+
{% if page.previous.url %}
|
125
|
+
<a class="prev d-block col-md-6" href="{{ site.baseurl }}/{{page.previous.url}}"> « {{page.previous.title}}</a>
|
126
|
+
{% endif %}
|
127
|
+
{% if page.next.url %}
|
128
|
+
<a class="next d-block col-md-6 text-lg-right" href="{{ site.baseurl }}/{{page.next.url}}">{{page.next.title}} » </a>
|
129
|
+
{% endif %}
|
130
|
+
<div class="clearfix"></div>
|
131
|
+
</div>
|
132
|
+
<!-- End Categories -->
|
133
|
+
|
134
|
+
</div>
|
135
|
+
<!-- End Post -->
|
136
|
+
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
<!-- End Article
|
140
|
+
================================================== -->
|
141
|
+
|
142
|
+
<!-- Begin Comments
|
143
|
+
================================================== -->
|
144
|
+
{% if page.comments != false %}
|
145
|
+
<div class="container">
|
146
|
+
<div id="comments" class="row justify-content-center mb-5">
|
147
|
+
<div class="col-md-8">
|
148
|
+
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
{% endif %}
|
153
|
+
<!--End Comments
|
154
|
+
================================================== -->
|
155
|
+
|
156
|
+
<!-- Review with LD-JSON, adapt it for your needs if you like, but make sure you test the generated HTML source code first:
|
157
|
+
https://search.google.com/structured-data/testing-tool/u/0/
|
158
|
+
================================================== -->
|
159
|
+
{% if page.rating %}
|
160
|
+
<script type="application/ld+json">
|
161
|
+
{
|
162
|
+
"@context": "http://schema.org/",
|
163
|
+
"@type": "Review",
|
164
|
+
"itemReviewed": {
|
165
|
+
"@type": "Thing",
|
166
|
+
"name": "{{ page.title }}"
|
167
|
+
},
|
168
|
+
"author": {
|
169
|
+
"@type": "Person",
|
170
|
+
"name": "{{ author.display_name }}"
|
171
|
+
},
|
172
|
+
"datePublished": "{{ page.date | date:"%Y-%m-%d" }}",
|
173
|
+
"reviewRating": {
|
174
|
+
"@type": "Rating",
|
175
|
+
"ratingValue": "{{ page.rating }}",
|
176
|
+
"bestRating": "5"
|
177
|
+
}
|
178
|
+
}
|
179
|
+
</script>
|
180
|
+
{% endif %}
|
data/_layouts/tags.html
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
title: "Tags"
|
3
|
+
layout: default
|
4
|
+
permalink: "/tags.html"
|
5
|
+
---
|
6
|
+
|
7
|
+
<div class="row listrecent">
|
8
|
+
{% for tag in site.tags %}
|
9
|
+
<div class="section-title col-md-12 mt-4">
|
10
|
+
<h2 id="{{ tag[0] | replace: " ","-" }}">Tag <span class="text-capitalize">{{ tag[0] }}</span></h2>
|
11
|
+
</div>
|
12
|
+
{% assign pages_list = tag[1] %}
|
13
|
+
{% for post in pages_list %}
|
14
|
+
{% if post.title != null %}
|
15
|
+
{% if group == null or group == post.group %}
|
16
|
+
{% include postbox.html %}
|
17
|
+
{% endif %}
|
18
|
+
{% endif %}
|
19
|
+
{% endfor %}
|
20
|
+
{% assign pages_list = nil %}
|
21
|
+
{% assign group = nil %}
|
22
|
+
{% endfor %}
|
23
|
+
</div>
|