Skip to content

Commit 2585f8f

Browse files
committed
Fixed analytics and custom slide code
1 parent 91d06a5 commit 2585f8f

File tree

5 files changed

+41
-28
lines changed

5 files changed

+41
-28
lines changed

config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ summaryLength = 30
2727
weight = 2
2828

2929
[params]
30-
matomo_analytics_id=""
31-
matomo_anyltics_host="https://matomo.nysos.net"
30+
matomo_analytics_id="11"
31+
matomo_analytics_host="//matomo.nysos.net/"
3232
homepage_button_link = '/course'
3333
homepage_button_text = 'Content'
3434
homepage_intro = 'Privacy-Enhancing Techologies Lecture Archive'

content/course/slides/index.md

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,44 @@ date: 2024-09-24
44
weight: 2
55
summary: 'PDF Slides based on our PETS lecture from late 2023.'
66
---
7-
The following slides are based on our last PETS course ([194.144@TU Wien](https://tiss.tuwien.ac.at/course/educationDetails.xhtml?dswid=9857&dsrid=946&semester=2023W&courseNr=194144)) from late 2023.
7+
The following slides in format are based on our last PETS course from late 2023 (see [194.144@TU Wien](https://tiss.tuwien.ac.at/course/educationDetails.xhtml?dswid=9857&dsrid=946&semester=2023W&courseNr=194144)).
88

99
### Topics
1010

11-
#### 01_Introduction.pdf [-> pdf](/slides/01_Introduction.pdf)
12-
`introduction`, `motivation`
11+
{{< slide file_name="01_Introduction.pdf" >}}
12+
`introduction`, `motivation`, `non-technical aspects`
13+
14+
15+
{{< slide file_name="02_Anonymity.pdf" >}}
1316

14-
#### [02_Anonymity.pdf](/slides/02_Anonymity.pdf)
15-
Systems for online anonymity (remailer, dining cryptographers, mix networks)
1617
`remailer`, `chaum mixes`, `mix networks`
1718

18-
#### [03_Censorship.pdf](/slides/03_Censorship.pdf)
19-
Internet censorship (technologies, measurements, circumvention, Great Firewall of China)
2019

21-
#### [04_Messaging.pdf](/slides/04_Messaging.pdf)
22-
Secure Messaging (PGP, OTR, ZRTP, mobile messaging, Signal)
20+
{{< slide file_name="03_Censorship.pdf" >}}
21+
22+
`censorship technologies`, `circumvention`, `measurements`
23+
24+
25+
{{< slide file_name="04_Messaging.pdf" >}}
26+
27+
`pgp`, `mobile messaging`, `signal`
28+
29+
30+
{{< slide file_name="05_TLS.pdf" >}}
31+
32+
`transport layer security`, `public key infrastructure`, `https`
33+
34+
35+
{{< slide file_name="06_Tor.pdf" >}}
36+
37+
`onion routing`, `hidden services`, `attacks`
38+
39+
40+
{{< slide file_name="07_WebPrivacy.pdf" >}}
2341

24-
#### [05_TLS.pdf](/slides/05_TLS.pdf)
25-
Transport Layer Security (TLS, PKI, Implementations, Crypto, HTTPS, attacks, incidents, HSTS, CT, DNS over TLS/HTTPS)
42+
`web tracking`, `fingerprinting`, `dns privacy`
2643

27-
#### [06_Tor.pdf](/slides/06_Tor.pdf)
28-
Tor (onion routing, functionality, onion services, attacks, usage)
2944

30-
#### [07_WebPrivacy.pdf](/slides/07_WebPrivacy.pdf)
31-
Web Privacy (web tracking, fingerprinting, anti tracking)
45+
{{< slide file_name="08_VPNs.pdf" >}}
3246

47+
`tls-based`, `wireguard`, `alternatives`

layouts/_default/baseof.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="{{ .Site.Language.Lang }}">
3-
3+
{{ partial "matomo.html" . }}
44
<head>
55
<meta charset="utf-8">
66
<meta http-equiv="x-ua-compatible" content="ie=edge">
@@ -66,8 +66,6 @@
6666
<script type="text/javascript" src="{{ ($scripts | minify | fingerprint).RelPermalink }}"></script>
6767
{{ end }}
6868

69-
{{ partial "matomo.html" . }}
70-
7169
</body>
7270

7371
</html>

layouts/partials/matomo.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
{{- if hugo.IsServer -}}
2-
<!-- Dont add Matomo to localhost -->
3-
{{ else }}
4-
{{ $mid := (getenv "HUGO_MATOMO_ANALYTICS_ID") }}
5-
{{ if $mid }}
1+
{{ if .Site.Params.matomo_analytics_id }}
62
<!-- Matomo -->
73
<script>
84
var _paq = window._paq = window._paq || [];
@@ -12,10 +8,9 @@
128
(function() {
139
var u="{{ .Site.Params.matomo_analytics_host }}";
1410
_paq.push(['setTrackerUrl', u+'matomo.php']);
15-
_paq.push(['setSiteId', '{{ $mid }}']);
11+
_paq.push(['setSiteId', '{{ .Site.Params.matomo_analytics_id }}']);
1612
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
1713
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
1814
})();
1915
</script>
20-
{{ end}}
21-
{{ end }}
16+
{{ end }}

layouts/shortcodes/slide.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ $filepath := (printf "static/slides/%s" (.Get `file_name`)) }}
2+
{{ $file := os.Stat $filepath }}
3+
{{ $file_size_in_mb := (printf "%.2f" (div $file.Size 1000000.0)) }}
4+
5+
<h2><a href="/slides/{{.Get `file_name` }}">{{ path.BaseName $filepath }}</a><span style="font-size: 1rem;"> PDF ({{ $file_size_in_mb}} MB)</span></h2>

0 commit comments

Comments
 (0)