Skip to content

Commit 3e2da95

Browse files
committed
chore: fix minor stuff, remove links to Twitter
1 parent 9e69f48 commit 3e2da95

10 files changed

Lines changed: 26 additions & 47 deletions

File tree

config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
baseURL: 'https://not-a-number.io/'
1+
baseURL: "https://not-a-number.io/"
22
languageCode: en-us
33
title: Not a Number
44
theme:
55
- hugo-notice
66
- hugo-loremipsum
77
- hugo-redirect
8-
paginate: 10
98
summaryLength: 50
10-
googleAnalytics: G-7PNPX0VZXC
119
disqusShortname: drupol
1210
enableGitInfo: true
1311
permalinks:
14-
posts: '/:year/:title'
15-
page: '/:slug/'
12+
posts: "/:year/:title"
13+
page: "/:slug/"
14+
15+
pagination:
16+
pagerSize: 10
1617

1718
menu:
1819
navbar:
@@ -36,10 +37,6 @@ menu:
3637
url: /cv
3738
weight: 50
3839

39-
40-
author:
41-
name: "Pol Dellaiera"
42-
4340
params:
4441
author: Pol Dellaiera
4542
authoremail: pol.dellaiera@protonmail.com
@@ -61,3 +58,6 @@ params:
6158

6259
ignoreErrors:
6360
- "error-remote-getjson"
61+
62+
params.google.analytics:
63+
id: "G-7PNPX0VZXC"

content/_index.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

content/posts/dev/2018-01-01-discovering-a-new-database-neo4j.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ It's a lot of data, [a lot of contributions](https://www.wikidata.org/wiki/Speci
3535
In order to test if I could use those data in a practical way, I built a small script that returns the list of stations that I would pass if I want to go from Station A to Station B.
3636
A [BFS algorithm](https://en.wikipedia.org/wiki/Breadth-first_search) is used to find the path in between the two stations.
3737

38-
{{< tweet user="drupol" id="947045643360628737" >}}
39-
4038
Then a reply of this tweet from [Christophe "ikwattro" Willemsen](https://twitter.com/ikwattro), a twitter friend of mine, [lit the spark](https://www.youtube.com/watch?v=LLpIMRowndg).
4139

42-
{{< tweet user="ikwattro" id="947049048602759169" >}}
40+
{{< x user="ikwattro" id="947049048602759169" >}}
4341

4442
To be honest, I was curious because of its tweets and dedication to [Neo4J](https://neo4j.com/) since I know him but I never had the opportunity or the need to use it... until now.
4543

content/posts/dev/2022-01-01-happy-new-year.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,8 @@ My other project [loophp/collection][16] is still being actively maintained,
8686
and I was quite surprised when I saw that the project was about to reach the
8787
five hundred stars milestone, just before New Year's Eve !
8888

89-
{{< tweet user="drupol" id="1476149761573113856" >}}
90-
9189
And we did it, just in time !
9290

93-
{{< tweet user="drupol" id="1476270775128756225" >}}
94-
9591
The version 6 is currently stable and there is already a couple of things
9692
going on for the next major release, the version 7.
9793
Besides the usual new features, optimizations and bugfixes, the most important
@@ -234,15 +230,15 @@ default rule for now on.
234230

235231
Despite that, we made quite a bunch of nice things, especially this one:
236232

237-
{{< tweet user="EU_DIGIT" id="1459147953461940226" >}}
233+
{{< x user="EU_DIGIT" id="1459147953461940226" >}}
238234

239235
This session has been given at work and published on Github in open-source at
240236
[ecphp/session--composition-and-inheritance][66]. Anyone can now contribute to
241237
the content of the presentation.
242238

243239
There will be more and more initiative like this one in the future thanks to
244240

245-
{{< tweet user="EU_DIGIT" id="1468550654792814593" >}}
241+
{{< x user="EU_DIGIT" id="1468550654792814593" >}}
246242

247243
The future at European Commission is bright and I'm looking forward to it!
248244

layouts/partials/analytics.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{- with site.Params.google.analytics.id }} {{- $script := resources.GetRemote
2+
"https://cdn.jsdelivr.net/npm/@minimal-analytics/ga4/dist/index.js" }}
3+
<script>
4+
window.minimalAnalytics = {
5+
trackingId: "{{ . }}",
6+
autoTrack: true, // <-- init tracking
7+
};
8+
</script>
9+
<script src="{{ $script.RelPermalink }}" async></script>
10+
{{- end }}

layouts/partials/footer.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
<footer>
2-
{{ if .Site.IsServer }}
3-
<div class="container">
4-
<table class="table table-sm">
5-
<caption>Hugo Variables for current page</caption>
6-
<tr><th>Name</th><td>{{ .Name }}</td></tr>
7-
<tr><th>Kind</th><td>{{ .Kind }}</td></tr>
8-
<tr><th>Type</th><td>{{ .Type }}</td></tr>
9-
<tr><th>List Page</th><td>.Pages</td></tr>
10-
<tr><th>IsPage</th><td>{{ .IsPage }}</td></tr>
11-
<tr><th>IsHome</th><td>{{ .IsPage }}</td></tr>
12-
<tr><th>Next</th><td>{{ .Next }}</td></tr>
13-
<tr><th>Prev</th><td>{{ .Prev }}</td></tr>
14-
<tr><th>Section</th><td>{{ .CurrentSection }}</td></tr>
15-
</table>
16-
</div>
17-
{{ end }}
18-
</footer>

layouts/partials/head.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
5050
{{ end -}}
5151

52-
{{- if .Site.GoogleAnalytics }}
53-
{{ template "_internal/google_analytics.html" . }}
54-
{{- end}}
52+
{{- partialCached "analytics.html" . -}}
5553

5654
{{ partial "head-custom.html" . }}
5755
</head>

layouts/shortcodes/gist.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script>

layouts/shortcodes/hr.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<hr/>

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish = "public"
33
command = "hugo -b $URL --gc --minify --themesDir themes/"
44

55
[build.environment]
6-
HUGO_VERSION = "0.128.0"
6+
HUGO_VERSION = "0.145.0"
77

88
[context.deploy-preview]
99
command = "hugo -b ${DEPLOY_PRIME_URL} -F"

0 commit comments

Comments
 (0)