Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/egallager_main' into egallager_m…
Browse files Browse the repository at this point in the history
…ain_new
  • Loading branch information
cooljeanius committed May 18, 2024
2 parents 15761a5 + 375dc32 commit d9eff09
Show file tree
Hide file tree
Showing 37 changed files with 75,291 additions and 14 deletions.
Empty file added .gitattributes
Empty file.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ node_modules/
_site
.env
package-lock.json
*.swp
*.gz

# temporary, until I find a way to better organize them, to avoid
# temporary, until I find a way to better organize them, so that I wouldn't be
# committing so many all at once:
img/*.jpeg
img/*.jpg
video/*.mp4
database/tweet.db
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Take ownership of your Twitter data. First talked about at [Jamstack Conf 2019](
1. Copy `./data/tweets.js` from your [Twitter Archive](https://help.twitter.com/en/managing-your-account/how-to-download-your-twitter-archive) `zip` file into the `./database` directory of this project.
* Rename `window.YTD.tweet.part0` in `tweets.js` to `module.exports`
1. If you want to exclude Twitter Circles tweets (these are included in the archive, why 😭): copy `./data/twitter-circle-tweet.js` from your Twitter Archive `zip` file into the `./database` directory of this project.
* Rename `window.YTD.tweet.part0` in `twitter-circle-tweet.js` to `module.exports`
* Rename `window.YTD.tweets.part0` in `twitter-circle-tweet.js` to `module.exports`
1. Run `npm run import` or `npm run import-without-circles`

### Build the web site
Expand Down
18 changes: 13 additions & 5 deletions _data/metadata.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
require("dotenv").config();

let data = {
username: "eleven_ty", // No leading @ here
homeLabel: "11ty.dev",
homeUrl: "https://www.11ty.dev/",
username: "cooljeanius", // No leading @ here
homeLabel: "cooljeanius.github.io",
homeUrl: "https://cooljeanius.github.io/tweetback/",
baseURL:
process.env.ENV == "local"
? "http://localhost:8080"
: "https://cooljeanius.github.io/my_tweetback_archive",
language: "en-US",
};

data.avatar = `https://v1.indieweb-avatar.11ty.dev/${encodeURIComponent(data.homeUrl)}/`;
data.avatar = `${data.baseUrl}/img/avatar.jpeg`;

module.exports = data;

module.exports = data;
3 changes: 2 additions & 1 deletion _includes/layout.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = async function(data) {
<link rel="profile" href="https://microformats.org/profile/hatom">
<link rel="stylesheet" href="/assets/style.css">
<link rel="me" value="https://social.treehouse.systems/@egallager" />
<script src="/assets/script.js" type="module"></script>
<script src="/assets/is-land.js" type="module"></script>
Expand All @@ -70,4 +71,4 @@ module.exports = async function(data) {
</footer>
</body>
</html>`;
};
};
1 change: 1 addition & 0 deletions _pagefind/pagefind-entry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"0.10.7","languages":{"en":{"hash":"en_de72a34cc9","wasm":"en","page_count":75096}}}
1 change: 1 addition & 0 deletions _pagefind/pagefind-ui.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions _pagefind/pagefind-ui.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _pagefind/pagefind.js

Large diffs are not rendered by default.

Loading

0 comments on commit d9eff09

Please sign in to comment.