Skip to content

Commit 4fe5aac

Browse files
authored
Merge branch 'main' into fix-meta
2 parents 2dba917 + 4d81098 commit 4fe5aac

File tree

167 files changed

+31705
-1038
lines changed

Some content is hidden

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

167 files changed

+31705
-1038
lines changed

.codespellrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
skip = *.js,*.yml,*.scss

.github/workflows/build-site.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
- name: Check HTML using htmlproofer
3737
uses: chabad360/htmlproofer@master
3838
with:
39-
directory: '_site'
39+
directory: "_site"
4040
arguments: |
4141
--ignore-urls "https://fonts.googleapis.com,https://fonts.gstatic.com,_site/_posts/README/index.html"
4242
--ignore-files "/.+\/_posts\/README.md"
43-
--ignore-status-codes "403, 503"
43+
--ignore-status-codes "403, 503, 999"

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/#installing-the-theme
1212

1313
# theme : "minimal-mistakes-jekyll"
14-
remote_theme: "mmistakes/minimal-mistakes"
14+
remote_theme: #"mmistakes/minimal-mistakes"
1515
minimal_mistakes_skin: "default" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise"
1616

1717
# Site Settings
@@ -152,9 +152,9 @@ footer:
152152
- label: "GitHub"
153153
icon: "fab fa-fw fa-github"
154154
url: https://github.com/pyOpenSci
155-
- label: "GitLab"
156-
icon: "fab fa-fw fa-gitlab"
157-
# url:
155+
- label: "LinkedIn"
156+
icon: "fab fa-fw fa-linkedin"
157+
url: https://www.linkedin.com/company/pyopensci
158158
- label: "Bitbucket"
159159
icon: "fab fa-fw fa-bitbucket"
160160
# url:

_data/contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2139,6 +2139,6 @@
21392139
packages-editor:
21402140
-
21412141
twitter: sampottinger
2142-
website: gleap.org
2142+
website: https://www.gleap.org
21432143
location: San Francisco, CA, USA
21442144
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">
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>

0 commit comments

Comments
 (0)