Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update production with plausible analytics #386

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ params:
ISSN: 2694-2658
googleSiteVerification: pS2kpksxg6JeC90IvA8BHVsFuK_6b7J_vARVLqqu7ck
absoluteArticleLinks: false
plausible:
domain: startwords.cdh.princeton.edu
script: https://plausible.io/js/script.file-downloads.hash.outbound-links.js
notfound: true


defaultContentLang: en

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,18 @@ This process of rethinking our outreach transformed our use of online communicat
Launching our social media campaign early on helped attract attention to the event and prepare our audiences for the redesigned event. We also created new hashtags, such as our [#GreatDouglassDayBakeoff](https://twitter.com/search?q=%23GreatDouglassDayBakeoff&src=typed_query).

*******

{{< wrap class="interlude" >}}
*Editor's note: several of the tweets embedded below are no longer available on the platform now called X. The [PDF version](https://zenodo.org/record/5750693/files/startwords-2-creating-and-recreating-virtual-community.pdf) of this article contains the fullest record of the tweets.*
{{</ wrap >}}

{{< tweet user="Anna_E_Lacy" id="1360301729451962376" >}}
{{< tweet user="BrigField" id="1360976957337456641" >}}
{{< tweet user="DGershenowitz" id="1361014486589706249" >}}
{{< tweet user="hralperta" id="1361039589914382344" >}}

***“Power concedes nothing without a demand.” Happy #DouglassDay! @CCP_org @librarycongress “If there is no struggle, there is no freedom.” -FD pic.twitter.com/EM9CtUxDwq*** <br/>
**— Pierce Stanley (@piercestanley) February 14, 2021** <br/>*[tweet deleted]*
**— Pierce Stanley (@piercestanley) February 14, 2021** <br/>

{{< wrap class="tweet-group print-only-preview" >}}
<a href="https://twitter.com/Anna_E_Lacy/status/1360301729451962376"><img loading="lazy" src="images/tweetA1.png" alt="screenshot of tweet from Anna Lacy"></a>
Expand Down Expand Up @@ -120,10 +125,13 @@ Below is a tutorial video with instructions about how to transcribe and review d
{{</ wrap >}}

***#DouglassDay. I am transcribing Terrell's introduction to Phillis Wheatley as part of her fundraising effort to build a campsite for Black girls. Love to see familiar names coming across in her writing. pic.twitter.com/YX5tL2qmDP*** <br/>
**— Jewon Woo 우제원 (@ClevelandKimchi) February 12, 2021** <br/>*[tweet deleted]*
**— Jewon Woo 우제원 (@ClevelandKimchi) February 12, 2021** <br/>

{{< tweet user="BrigField" id="1360300654254825476" >}}
{{< tweet user="danroyles" id="1360287523004706821" >}}

***Helping transcribe the papers of Mary Church Terrell for the #DouglassDay Transcribe-A-Thon with other folks from @FIULibraries / @FIU_Digital_Lib***
**— Dan Royles🗽 (@danroyles) February 12, 2021**

{{< tweet user="DarkStars__" id="1361075881662443526" >}}
{{< tweet user="celina_osuna_" id="1360300366256955392" >}}

Expand Down
1 change: 1 addition & 0 deletions themes/startwords/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<script defer src="{{ $js.RelPermalink }}"></script>
{{- if hugo.IsProduction -}}
{{ partial "partials/google_analytics.html" . }}
{{ partial "partials/plausible_analytics.html" . }}
{{- end -}}
{{- if or (.HasShortcode "deepzoom") (isset .Page.Params "needs_deepzoom") }}{{/* include openseadragon when deepzoom shortcode is used or requested in page params */}}
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/build/openseadragon/openseadragon.min.js" integrity="sha256-NMxPj6Qf1CWCzNQfKoFU8Jx18ToY4OWgnUO1cJWTWuw=" crossorigin="anonymous"></script>
Expand Down
7 changes: 7 additions & 0 deletions themes/startwords/layouts/partials/plausible_analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- if isset site.Params "plausible" }}
{{/* plausible analytics */}}
<script defer data-domain="{{ site.Params.plausible.domain }}" src="{{ site.Params.plausible.script }} "></script>
{{- if isset site.Params.plausible "notfound" }}
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{{- end }}
{{- end }}
Loading