Skip to content

Commit d8f8299

Browse files
committed
Actually fixed analytics (maybe)
1 parent 308a4e1 commit d8f8299

17 files changed

+364
-213
lines changed

Diff for: .DS_Store

0 Bytes
Binary file not shown.

Diff for: _config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ github_username: cs-pui
2525

2626
# Build settings
2727
markdown: kramdown
28+
2829
theme: minima
2930
plugins:
3031
- jekyll-feed

Diff for: _includes/analytics.html

+9
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=G-JF6D9C6584"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', 'G-JF6D9C6584');
9+
</script>

Diff for: _includes/disqus_comments.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% if page.comments != false and jekyll.environment == "production" %}
2+
3+
<div id="disqus_thread"></div>
4+
<script>
5+
var disqus_config = function () {
6+
this.page.url = '{{ page.url | absolute_url }}';
7+
this.page.identifier = '{{ page.url | absolute_url }}';
8+
};
9+
10+
(function() {
11+
var d = document, s = d.createElement('script');
12+
13+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14+
15+
s.setAttribute('data-timestamp', +new Date());
16+
(d.head || d.body).appendChild(s);
17+
})();
18+
</script>
19+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20+
{% endif %}

Diff for: _includes/footer.html

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
6+
7+
<div class="footer-col-wrapper">
8+
<div class="footer-col footer-col-1">
9+
<ul class="contact-list">
10+
<li>
11+
{% if site.author %}
12+
{{ site.author | escape }}
13+
{% else %}
14+
{{ site.title | escape }}
15+
{% endif %}
16+
</li>
17+
{% if site.email %}
18+
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
19+
{% endif %}
20+
</ul>
21+
</div>
22+
23+
<div class="footer-col footer-col-2">
24+
<ul class="social-media-list">
25+
{% if site.github_username %}
26+
<li>
27+
{% include icon-github.html username=site.github_username %}
28+
</li>
29+
{% endif %}
30+
31+
{% if site.twitter_username %}
32+
<li>
33+
{% include icon-twitter.html username=site.twitter_username %}
34+
</li>
35+
{% endif %}
36+
</ul>
37+
</div>
38+
39+
<div class="footer-col footer-col-3">
40+
<!--<p>{{ site.description | escape }}</p>-->
41+
Help us make this space better!
42+
Problems with this webpage?
43+
<a id="file-bug-anchor" href="#">File a Bug</a> or
44+
<a id="pull-request-anchor" href="#">Suggest a Fix</a>.
45+
</div>
46+
</div>
47+
48+
</div>
49+
50+
<script>
51+
runMainScript();
52+
</script>
53+
54+
</footer>

Diff for: _includes/head.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8+
9+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
11+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
12+
13+
{% if site.google_analytics and jekyll.environment == 'production' %}
14+
{% include analytics.html %}
15+
{% endif %}
16+
</head>

Diff for: _includes/header.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{% assign default_paths = site.pages | map: "path" %}
5+
{% assign page_paths = site.header_pages | default: default_paths %}
6+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
8+
{% if page_paths %}
9+
<nav class="site-nav">
10+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
15+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
16+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
17+
</svg>
18+
</span>
19+
</label>
20+
21+
<div class="trigger">
22+
{% for path in page_paths %}
23+
{% assign my_page = site.pages | where: "path", path | first %}
24+
{% unless my_page.exclude %}
25+
{% if my_page.title %}
26+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
27+
{% endif %}
28+
{% endunless %}
29+
{% endfor %}
30+
</div>
31+
</nav>
32+
{% endif %}
33+
</div>
34+
</header>

Diff for: _includes/icon-github.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>

Diff for: _includes/icon-github.svg

+1
Loading

Diff for: _includes/icon-twitter.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>

Diff for: _includes/icon-twitter.svg

+1
Loading

Diff for: _layouts/default.html

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
{% include header.html %}
1111

12-
{% if jekyll.environment == 'production' %}
13-
{% include analytics.html %}
14-
{% endif %}
15-
1612
<main class="page-content" aria-label="Content">
1713
<div class="wrapper">
1814
{{ content }}

Diff for: guide.md

+17-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ layout: page
33
title: Add Listing
44
---
55

6-
Last year, I was a gateway for looking for and adding institutions. As the post gained more and more traction, I grew uncomfortable with the notion that a university's publicity might rely on my responsiveness and attention alone. This year, I am hoping that CS departments (and other people who catch listings!) can [**submit pull requests to add their own information.**](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)
6+
This website is manually updated.
77

8-
1. _Please make sure your department and university aligns with the criteria outlined on the home page_. I'd prefer to give everyone the benefit of the doubt and not act as a filter.
8+
If you belong to a CS department (or just happen to catch a listing before I do), you can [**submit pull requests to add their own information.**](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)
9+
10+
1. _Please make sure your department and university aligns with the criteria outlined on the [home page](index.html)_. I'd prefer to give everyone the benefit of the doubt and not act as a filter.
911
2. Go to [the Github page that contains the job listings](https://github.com/cs-pui/cs-pui.github.io/blob/master/index.md)
1012
3. Edit it following the template guidelines below and submit a pull request.
1113

@@ -28,24 +30,29 @@ If you would like to put a _placeholder_ in for an approved position in which yo
2830
```
2931

3032
## Add info to _Descriptions, Links, and Locations_
31-
Modify and paste the following template into [our listing page](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)
32-
```
33-
### <a name="your-college">Your College (Your State)</a>
33+
Modify and paste the following template into [our listing page](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).
34+
35+
```markdown
36+
### <a name="your-college"> [FT] Your College (Your State)</a>
3437
_[Excerpt] This is where you add a paragraph from your job description_
3538
- Insert a statement about your **deadline**
3639
- [Link to application](https://enter-your-link.com)
40+
41+
_[back to deadlines](#deadlines)_
3742
```
3843

39-
- Include your **state** next to your name. It's enough information to help people with geographic constraints, but will keep the title shorter than including more specific geographic markers
40-
- Please only include the most relevant paragraph. Your full job ad should be linked, so think of this as the teaser that gets applicants excited to read the rest.
41-
- If you want to bold a key sentence or key terms in here, that's fine.
44+
- Include your **state** next to your name (please only state). If outside the US, put country.
45+
- Include either `[FT]` for fixed-term positions (where VAPs should go) or `[P]` for permanent positions (where tenure-track should go)
46+
- Only include the most relevant paragraph. Your full job ad should be linked, so think of this as the teaser that gets applicants excited to read the rest.
4247
- Make sure you are inserting this in the correct place alphabetically.
4348
- `<a name="your-college">` below should match `(#your-college)` in the Deadlines section so that the internal link works.
4449

4550
### Forthcoming info
4651
If you would like to put a _placeholder_ in for an approved position in which you expect an ad soon, continue to place it in alphabetical order with the following format.
4752

48-
```
49-
### <a name="your-college">Your College (Your State)</a>
53+
```markdown
54+
### <a name="your-college"> [P] Your College (Your State)</a>
5055
_[Excerpt] Hiring is approved - ad is expected soon_
56+
57+
_[back to deadlines](#deadlines)_
5158
```

0 commit comments

Comments
 (0)