Skip to content

Commit

Permalink
refactor: memos page
Browse files Browse the repository at this point in the history
  • Loading branch information
Wsine committed Aug 22, 2024
1 parent 9c81d49 commit 3274793
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
2 changes: 2 additions & 0 deletions content/memos.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
layout: "memos"
---

这里使用 [memo-feeds](https://github.com/Wsine/memo-feeds) 项目构造了一条时间线来作为我的临时情绪表达,表达欲还是很重要的,希望不要被大家批斗得太厉害。
36 changes: 20 additions & 16 deletions layouts/page/memos.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
{{ define "main" }}
<link href="https://cdn.jsdelivr.net/gh/eallion/mastodon-embed-feed-timeline/dist/mastodon-timeline.min.css" rel="stylesheet" />

{{ .Content }}

<div id="mt-container" class="mt-container">
<div class="mt-body" role="feed">
<div class="mt-loading-spinner"></div>
</div>
</div>
<!-- <link href="https://cdn.jsdelivr.net/gh/eallion/mastodon-embed-feed-timeline/dist/mastodon-timeline.min.css" rel="stylesheet" /> -->
<!-- <div id="mt-container" class="mt-container"> -->
<!-- <div class="mt-body" role="feed"> -->
<!-- <div class="mt-loading-spinner"></div> -->
<!-- </div> -->
<!-- </div> -->
<!---->
<!-- <script src="https://cdn.jsdelivr.net/gh/eallion/mastodon-embed-feed-timeline/dist/mastodon-timeline.min.js"></script> -->
<!-- <script> -->
<!-- // You can initialize the script here -->
<!-- const myTimeline = new MastodonTimeline({ -->
<!-- instanceUrl: "https://o3o.ca", -->
<!-- timelineType: "profile", -->
<!-- userId: "110845", -->
<!-- profileName: "@wsine", -->
<!-- }); -->
<!-- </script> -->

<script src="https://cdn.jsdelivr.net/gh/Wsine/memo-feeds@main/dist/static/memo-feeds.js"></script>
<memo-feeds memo-url="https://memo-feeds.wsine.workers.dev"></memo-feeds>

<script src="https://cdn.jsdelivr.net/gh/eallion/mastodon-embed-feed-timeline/dist/mastodon-timeline.min.js"></script>
<script>
// You can initialize the script here
const myTimeline = new MastodonTimeline({
instanceUrl: "https://o3o.ca",
timelineType: "profile",
userId: "110845",
profileName: "@wsine",
});
</script>
{{ end }}

0 comments on commit 3274793

Please sign in to comment.