Skip to content

Commit 8e743f6

Browse files
committed
https://github.com/mmistakes/minimal-mistakes/pull/5368
1 parent ade4dbb commit 8e743f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2324
-41
lines changed

_includes/after-content.html

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- start custom analytics snippet -->
2+
3+
<!-- end custom analytics snippet -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- Global site tag (gtag.js) - Google Analytics -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.tracking_id }}"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', '{{ site.analytics.google.tracking_id }}', { 'anonymize_ip': {{ site.analytics.google.anonymize_ip | default: false }}});
9+
</script>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
3+
ga('create','{{ site.analytics.google.tracking_id }}','auto');
4+
ga('set', 'anonymizeIp', {{ site.analytics.google.anonymize_ip | default: false }});
5+
ga('send','pageview')
6+
</script>
7+
<script src="https://www.google-analytics.com/analytics.js" async></script>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script>
2+
var _gaq = _gaq || [];
3+
_gaq.push(['_setAccount', '{{ site.analytics.google.tracking_id }}']);
4+
{% if site.analytics.google.anonymize_ip == true %}
5+
_gaq.push(['_gat._anonymizeIp']);
6+
{% endif %}
7+
_gaq.push(['_trackPageview']);
8+
9+
(function() {
10+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
11+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
12+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
13+
})();
14+
</script>

_includes/analytics.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% if jekyll.environment == 'production' and site.analytics.provider and page.analytics != false %}
2+
3+
{% case site.analytics.provider %}
4+
{% when "google" %}
5+
{% include /analytics-providers/google.html %}
6+
{% when "google-universal" %}
7+
{% include /analytics-providers/google-universal.html %}
8+
{% when "google-gtag" %}
9+
{% include /analytics-providers/google-gtag.html %}
10+
{% when "custom" %}
11+
{% include /analytics-providers/custom.html %}
12+
{% endcase %}
13+
14+
{% endif %}

_includes/archive-single.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{% if post.header.teaser %}
2+
{% capture teaser %}{{ post.header.teaser }}{% endcapture %}
3+
{% else %}
4+
{% assign teaser = site.teaser %}
5+
{% endif %}
6+
7+
{% if post.id %}
8+
{% assign title = post.title | markdownify | remove: "<p>" | remove: "</p>" %}
9+
{% else %}
10+
{% assign title = post.title %}
11+
{% endif %}
12+
13+
<div class="{{ include.type | default: 'list' }}__item">
14+
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork"{% if post.locale %} lang="{{ post.locale }}"{% endif %}>
15+
{% if include.type == "grid" and teaser %}
16+
<div class="archive__item-teaser">
17+
<img src="{{ teaser | relative_url }}" alt="">
18+
</div>
19+
{% endif %}
20+
<h2 class="archive__item-title no_toc" itemprop="headline">
21+
{% if post.link %}
22+
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
23+
{% else %}
24+
<a href="{{ post.url | relative_url }}" rel="permalink">{{ title }}</a>
25+
{% endif %}
26+
</h2>
27+
{% include page__meta.html type=include.type %}
28+
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
29+
</article>
30+
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--
2+
<li>
3+
<a href="http://link-to-whatever-social-network.com/user/" itemprop="sameAs" rel="nofollow noopener noreferrer me">
4+
<i class="fas fa-fw" aria-hidden="true"></i> Custom Social Profile Link
5+
</a>
6+
</li>
7+
-->

_includes/author-profile.html

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
{% assign locale = include.locale | default: page.locale | default: layout.locale | default: site.locale %}
2+
{% assign author = page.author | default: page.authors[0] | default: site.author %}
3+
{% assign author = site.data.authors[author] | default: author %}
4+
5+
<div itemscope itemtype="https://schema.org/Person" class="h-card">
6+
7+
{% if author.avatar %}
8+
<div class="author__avatar">
9+
<a href="{{ author.home | default: '/' | absolute_url }}">
10+
<img src="{{ author.avatar | relative_url }}" alt="{{ author.name }}" itemprop="image" class="u-photo">
11+
</a>
12+
</div>
13+
{% endif %}
14+
15+
<div class="author__content">
16+
<h3 class="author__name p-name" itemprop="name">
17+
<a class="u-url" rel="me" href="{{ author.home | default: '/' | absolute_url }}" itemprop="url">{{ author.name }}</a>
18+
</h3>
19+
{% if author.bio %}
20+
<div class="author__bio p-note" itemprop="description">
21+
{{ author.bio | markdownify }}
22+
</div>
23+
{% endif %}
24+
</div>
25+
26+
<div class="author__urls-wrapper">
27+
<button class="btn btn--inverse">{{ site.data.ui-text[locale].follow_label | remove: ":" | default: "Follow" }}</button>
28+
<ul class="author__urls social-icons">
29+
{% if author.location %}
30+
<li itemprop="homeLocation" itemscope itemtype="https://schema.org/Place">
31+
<i class="fas fa-fw fa-map-marker-alt" aria-hidden="true"></i> <span itemprop="name" class="p-locality">{{ author.location }}</span>
32+
</li>
33+
{% endif %}
34+
35+
{% if author.links %}
36+
{% for link in author.links %}
37+
{% if link.label and link.url %}
38+
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer me"{% if link.url contains 'http' %} itemprop="sameAs"{% endif %}><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i><span class="label">{{ link.label }}</span></a></li>
39+
{% endif %}
40+
{% endfor %}
41+
{% endif %}
42+
43+
{% if author.uri %}
44+
<li>
45+
<a href="{{ author.uri }}" itemprop="url" rel="me">
46+
<i class="fas fa-fw fa-link" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[locale].website_label | default: "Website" }}</span>
47+
</a>
48+
</li>
49+
{% endif %}
50+
51+
{% if author.email %}
52+
<li>
53+
<a href="mailto:{{ author.email }}" rel="me" class="u-email">
54+
<meta itemprop="email" content="{{ author.email }}" />
55+
<i class="fas fa-fw fa-envelope-square" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[locale].email_label | default: "Email" }}</span>
56+
</a>
57+
</li>
58+
{% endif %}
59+
60+
{% if author.keybase %}
61+
<li>
62+
<a href="https://keybase.io/{{ author.keybase }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
63+
<i class="fab fa-fw fa-keybase" aria-hidden="true"></i><span class="label">Keybase</span>
64+
</a>
65+
</li>
66+
{% endif %}
67+
68+
{% if author.twitter %}
69+
<li>
70+
<a href="https://twitter.com/{{ author.twitter }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
71+
<i class="fab fa-fw fa-twitter-square" aria-hidden="true"></i><span class="label">Twitter</span>
72+
</a>
73+
</li>
74+
{% endif %}
75+
76+
{% if author.facebook %}
77+
<li>
78+
<a href="https://www.facebook.com/{{ author.facebook }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
79+
<i class="fab fa-fw fa-facebook-square" aria-hidden="true"></i><span class="label">Facebook</span>
80+
</a>
81+
</li>
82+
{% endif %}
83+
84+
{% if author.linkedin %}
85+
<li>
86+
<a href="https://www.linkedin.com/in/{{ author.linkedin }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
87+
<i class="fab fa-fw fa-linkedin" aria-hidden="true"></i><span class="label">LinkedIn</span>
88+
</a>
89+
</li>
90+
{% endif %}
91+
92+
{% if author.xing %}
93+
<li>
94+
<a href="https://www.xing.com/profile/{{ author.xing }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
95+
<i class="fab fa-fw fa-xing-square" aria-hidden="true"></i><span class="label">XING</span>
96+
</a>
97+
</li>
98+
{% endif %}
99+
100+
{% if author.instagram %}
101+
<li>
102+
<a href="https://instagram.com/{{ author.instagram }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
103+
<i class="fab fa-fw fa-instagram" aria-hidden="true"></i><span class="label">Instagram</span>
104+
</a>
105+
</li>
106+
{% endif %}
107+
108+
{% if author.tumblr %}
109+
<li>
110+
<a href="https://{{ author.tumblr }}.tumblr.com" itemprop="sameAs" rel="nofollow noopener noreferrer me">
111+
<i class="fab fa-fw fa-tumblr-square" aria-hidden="true"></i><span class="label">Tumblr</span>
112+
</a>
113+
</li>
114+
{% endif %}
115+
116+
{% if author.bitbucket %}
117+
<li>
118+
<a href="https://bitbucket.org/{{ author.bitbucket }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
119+
<i class="fab fa-fw fa-bitbucket" aria-hidden="true"></i><span class="label">Bitbucket</span>
120+
</a>
121+
</li>
122+
{% endif %}
123+
124+
{% if author.github %}
125+
<li>
126+
<a href="https://github.com/{{ author.github }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
127+
<i class="fab fa-fw fa-github" aria-hidden="true"></i><span class="label">GitHub</span>
128+
</a>
129+
</li>
130+
{% endif %}
131+
132+
{% if author.gitlab %}
133+
<li>
134+
<a href="https://gitlab.com/{{ author.gitlab }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
135+
<i class="fab fa-fw fa-gitlab" aria-hidden="true"></i><span class="label">GitLab</span>
136+
</a>
137+
</li>
138+
{% endif %}
139+
140+
{% if author.stackoverflow %}
141+
<li>
142+
<a href="https://stackoverflow.com/users/{{ author.stackoverflow }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
143+
<i class="fab fa-fw fa-stack-overflow" aria-hidden="true"></i><span class="label">Stack Overflow</span>
144+
</a>
145+
</li>
146+
{% endif %}
147+
148+
{% if author.lastfm %}
149+
<li>
150+
<a href="https://last.fm/user/{{ author.lastfm }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
151+
<i class="fab fa-fw fa-lastfm-square" aria-hidden="true"></i><span class="label">Last.fm</span>
152+
</a>
153+
</li>
154+
{% endif %}
155+
156+
{% if author.dribbble %}
157+
<li>
158+
<a href="https://dribbble.com/{{ author.dribbble }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
159+
<i class="fab fa-fw fa-dribbble" aria-hidden="true"></i><span class="label">Dribbble</span>
160+
</a>
161+
</li>
162+
{% endif %}
163+
164+
{% if author.pinterest %}
165+
<li>
166+
<a href="https://www.pinterest.com/{{ author.pinterest }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
167+
<i class="fab fa-fw fa-pinterest" aria-hidden="true"></i><span class="label">Pinterest</span>
168+
</a>
169+
</li>
170+
{% endif %}
171+
172+
{% if author.foursquare %}
173+
<li>
174+
<a href="https://foursquare.com/{{ author.foursquare }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
175+
<i class="fab fa-fw fa-foursquare" aria-hidden="true"></i><span class="label">Foursquare</span>
176+
</a>
177+
</li>
178+
{% endif %}
179+
180+
{% if author.steam %}
181+
<li>
182+
<a href="https://steamcommunity.com/id/{{ author.steam }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
183+
<i class="fab fa-fw fa-steam" aria-hidden="true"></i><span class="label">Steam</span>
184+
</a>
185+
</li>
186+
{% endif %}
187+
188+
{% if author.youtube %}
189+
{% if author.youtube contains "://" %}
190+
<li>
191+
<a href="{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
192+
<i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span>
193+
</a>
194+
</li>
195+
{% elsif author.youtube %}
196+
<li>
197+
<a href="https://www.youtube.com/user/{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
198+
<i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span>
199+
</a>
200+
</li>
201+
{% endif %}
202+
{% endif %}
203+
204+
{% if author.soundcloud %}
205+
<li>
206+
<a href="https://soundcloud.com/{{ author.soundcloud }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
207+
<i class="fab fa-fw fa-soundcloud" aria-hidden="true"></i><span class="label">SoundCloud</span>
208+
</a>
209+
</li>
210+
{% endif %}
211+
212+
{% if author.weibo %}
213+
<li>
214+
<a href="https://www.weibo.com/{{ author.weibo }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
215+
<i class="fab fa-fw fa-weibo" aria-hidden="true"></i><span class="label">Weibo</span>
216+
</a>
217+
</li>
218+
{% endif %}
219+
220+
{% if author.flickr %}
221+
<li>
222+
<a href="https://www.flickr.com/{{ author.flickr }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
223+
<i class="fab fa-fw fa-flickr" aria-hidden="true"></i><span class="label">Flickr</span>
224+
</a>
225+
</li>
226+
{% endif %}
227+
228+
{% if author.codepen %}
229+
<li>
230+
<a href="https://codepen.io/{{ author.codepen }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
231+
<i class="fab fa-fw fa-codepen" aria-hidden="true"></i><span class="label">CodePen</span>
232+
</a>
233+
</li>
234+
{% endif %}
235+
236+
{% if author.vine %}
237+
<li>
238+
<a href="https://vine.co/u/{{ author.vine }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
239+
<i class="fab fa-fw fa-vine" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[locale].email_label | default: "Email" }}</span>
240+
</a>
241+
</li>
242+
{% endif %}
243+
244+
{% include author-profile-custom-links.html %}
245+
</ul>
246+
</div>
247+
</div>

_includes/before-related.html

Whitespace-only changes.

0 commit comments

Comments
 (0)