Skip to content

Commit e022f41

Browse files
committed
Switch TinyLetter to Substack
1 parent f8e230b commit e022f41

11 files changed

Lines changed: 106 additions & 11 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
continue
4141
fi
4242
echo "Checking $file..."
43-
if ! grep -qE '^[+0-9a-z_\.-]+\.(bash|bib|gitignore|html|ico|js|json|liquid|md|png|py|rb|scss|sh|svg|txt|webmanifest|xml|yaml|yml)$' <<< "$filename"; then
43+
if ! grep -qE '^[+0-9a-z_\.-]+\.(bash|bib|code-workspace|gitignore|html|ico|js|json|liquid|md|png|py|rb|scss|sh|svg|txt|webmanifest|xml|yaml|yml)$' <<< "$filename"; then
4444
invalid_files+=("$file")
4545
fi
4646
if [[ "${file: -3}" == ".md" ]]; then

‎.github/workflows/links.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: lycheeverse/lychee-action@v1.7.0
3737
with:
3838
lycheeVersion: '0.12.0'
39-
args: --user-agent "${{ env.USER_AGENT }}" --base=https://buddhistuniversity.net --exclude-link-local --timeout=30 --retry-wait-time=3 --max-redirects=8 --exclude=researchgate.net --exclude=illeakyw.sirv.com --exclude=googleapis.com --exclude=google.com --exclude=accesstoinsight.org --exclude=suttacentral.net --exclude=dhammawheel.com --exclude=doi.org --exclude=github.com --exclude=openlibrary.org --exclude=google-analytics.com --exclude=worldcat.org --exclude=tinyletter.com --exclude=schema.org --exclude=gstatic.com --exclude-mail --verbose --no-progress --cache --exclude-path=prod/content 'prod/**/*.html' 'main/_content/*/*.txt' prod/site.webmanifest prod/browserconfig.xml
39+
args: --user-agent "${{ env.USER_AGENT }}" --base=https://buddhistuniversity.net --exclude-link-local --timeout=30 --retry-wait-time=3 --max-redirects=8 --exclude=researchgate.net --exclude=illeakyw.sirv.com --exclude=googleapis.com --exclude=google.com --exclude=accesstoinsight.org --exclude=suttacentral.net --exclude=dhammawheel.com --exclude=doi.org --exclude=github.com --exclude=openlibrary.org --exclude=google-analytics.com --exclude=worldcat.org --exclude=schema.org --exclude=gstatic.com --exclude-mail --verbose --no-progress --cache --exclude-path=prod/content 'prod/**/*.html' 'main/_content/*/*.txt' prod/site.webmanifest prod/browserconfig.xml
4040
- name: Create GitHub Issue
4141
uses: peter-evans/create-issue-from-file@v4
4242
with:

‎_config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ url: "https://buddhistuniversity.net" # the base hostname & protocol for your si
2424
GA4: G-B3PH0LF6QQ
2525
github_repo: buddhist-uni/buddhist-uni.github.io
2626
github_branch: main
27-
tinyletter_username: buddhist-uni
27+
substack_username: buddhistuniversity
2828
twitter_username_HIDDEN: buddhistuni
2929
mastodon_link: https://digipres.club/@obu
3030
header_pages: [about.md, courses.md, library.md, blog.md, search.html]

‎_includes/social.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<ul class="social-media-list">{% comment %}classname used by buggytrack.js{% endcomment %}
22
{%- if site.tinyletter_username -%}<li><a href="https://tinyletter.com/{{ site.tinyletter_username | cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/tinyletter-icon.svg#theicon' | relative_url }}"></use></svg> <span class="username" style="font-style: italic; font-family: Georgia, Times, serif;">TinyLetter</span></a></li>{%- endif -%}
3+
{%- if site.substack_username -%}<li><a href="https://{{ site.substack_username }}.substack.com"><i class="fas fa-bookmark"></i> <span class="username">Substack</span></a></li>{%- endif -%}
34
{%- if site.github_repo -%}<li><a href="https://github.com/{{ site.github_repo }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">GitHub</span></a></li>{%- endif -%}
45
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">Twitter</span></a></li>{%- endif -%}
56
{%- if site.mastodon_link -%}<li><a rel="me" href="{{ site.mastodon_link }}"><i class="fab fa-mastodon"></i> <span class="username">Mastodon</span></a></li>{%- endif -%}

‎_layouts/post.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
1010
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
1111
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
1212
{{ page.date | date: date_format }}</time>.
13-
For the latest, <a href="https://tinyletter.com/buddhist-uni">subscribe here</a>.
13+
For the latest, <a href="https://buddhistuniversity.substack.com">subscribe here</a>.
1414
</p>
1515
</header>
1616

‎_posts/2020-03-13-welcome.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Every piece featured in [the bibliographies](/tags/) has been vetted for both ac
1212

1313
For a video tour of the website, [click here](https://youtu.be/TPmTxHuQ9AI?t=117s)!
1414

15-
As I slowly review and add more content, I highlight the best finds [here](/blog) as well as in the [email newsletter](https://tinyletter.com/buddhist-uni){:target="_blank" ga-event-value="0.5"}, so be sure to subscribe for the best free content [on Buddhism](/tags/buddhism) available online.
15+
As I slowly review and add more content, I highlight the best finds [here](/blog) as well as in the [email newsletter](https://buddhistuniversity.substack.com){:target="_blank" ga-event-value="0.5"}, so be sure to subscribe for the best free content [on Buddhism](/tags/buddhism) available online.
1616

1717
Here are a few of my favorite pieces you might want to check out first, if you haven't already:
1818

‎_sass/nimitta.scss‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,22 @@ figure figcaption {
191191
padding: 0;
192192
margin-right: 5px;
193193
}
194-
i.fab {
194+
i.fab, i.fas, i.far {
195+
width: 0.9em;
195196
font-size: 19px;
196197
margin-right: 4.5px;
197198
}
199+
i.fa-bookmark::after {
200+
content: "";
201+
height: 2px;
202+
border: 2.5px solid $banner-color;
203+
display: block;
204+
transform: translate(-3px, -16.7px);
205+
width: 1em;
206+
}
207+
i.fa-bookmark {
208+
transform: scaleX(1.2) translateX(2px);
209+
}
198210
}
199211

200212
.site-nav {

‎blog.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ big_height: 4012
1515
banner_info: <a href="https://commons.wikimedia.org/wiki/File:High_Tap.jpg">Rod Waddington</a>, <a href="https://creativecommons.org/licenses/by-sa/2.0">CC BY-SA 2.0</a>
1616
---
1717

18-
The University is still a work in progress. As it continues to expand, the University Newsletter will mark the arrival of new [courses](/courses) and the best new [content](/library). To hear about the latest, subscribe to one of our [atom (rss) feeds](/feed) or sign up for our [emails](https://tinyletter.com/buddhist-uni){:target="_blank" ga-event-value="0.4"}:
18+
The University is still a work in progress. As it continues to expand, the University Newsletter will mark the arrival of new [courses](/courses) and the best new [content](/library). To hear about the latest, subscribe to one of our [atom (rss) feeds](/feed) or sign up for our [emails](https://buddhistuniversity.substack.com){:target="_blank" ga-event-value="0.4"}:
1919

20-
<form style="margin-bottom:23px;border:1px solid #ccc;padding:3px;text-align:center;" action="https://tinyletter.com/buddhist-uni" method="post" target="popupwindow" onsubmit="window.open('https://tinyletter.com/buddhist-uni', 'popupwindow', 'scrollbars=yes,width=800,height=600');return true"><p><label for="tlemail">Enter your email address below to subscribe:</label></p><p><input type="text" style="min-width:50%" name="email" id="tlemail" /></p><input type="hidden" value="1" name="embed"/><input type="submit" value="Subscribe" /><p><a href="https://tinyletter.com/buddhist-uni" target="_blank">powered by TinyLetter</a></p></form>
20+
<iframe src="https://buddhistuniversity.substack.com/embed" width="100%" height="320" style="border:1px solid #EEE; background:white;" frameborder="0" scrolling="no"></iframe>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"files.associations": {
9+
"*.html": "liquid"
10+
}
11+
}
12+
}

‎scripts/gdrive.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
from strutils import (
88
titlecase,
99
git_root_folder,
10-
system_open,
1110
input_with_prefill,
12-
input_with_tab_complete
11+
input_with_tab_complete,
1312
)
1413
import json
1514
import re
@@ -119,7 +118,8 @@ def youtube():
119118
return build('youtube', 'v3', credentials=google_credentials())
120119

121120
def get_ytvideo_snippet(ytid):
122-
return youtube().videos().list(id=ytid,part="snippet").execute().get("items")[0].get("snippet")
121+
snippet = youtube().videos().list(id=ytid,part="snippet").execute().get("items")[0].get("snippet")
122+
return {k: snippet[k] for k in ['title', 'description', 'tags'] if k in snippet}
123123

124124
def get_subfolders(folderid):
125125
folderquery = f"'{folderid}' in parents and mimeType='application/vnd.google-apps.folder' and trashed=false"

0 commit comments

Comments
 (0)