Skip to content

Commit

Permalink
Merge pull request #18 from oriverk/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
oriverk authored Apr 21, 2024
2 parents fb131ca + 2928cb8 commit c4e8803
Show file tree
Hide file tree
Showing 114 changed files with 1,295 additions and 650 deletions.
22 changes: 22 additions & 0 deletions .contents/card-links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"https://oriverk.dev/blog/20240300-gfm-alerts/": {
"title": "GFM Alerts記法のスニペットを設定する | oriverk.dev",
"description": "",
"image": "https://oriverk.dev/api/og/blog/20240300-gfm-alerts.png"
},
"https://www.youtube.com/watch?v=ZXsQAXx_ao0": {
"title": "Shia LaBeouf \"Just Do It\" Motivational Speech (Original Video by LaBeouf, Rönkkö & Turner)",
"description": "Joshua Parker's segment from #INTRODUCTIONS (2015) by LaBeouf, Rönkkö & Turner http://labeoufronkkoturner.com Full 30-minute version: https://vimeo.com/12509...",
"image": "https://i.ytimg.com/vi/ZXsQAXx_ao0/maxresdefault.jpg"
},
"https://github.com/octocat/Hello-World/blob/master/README": {
"title": "Hello-World/README at master · octocat/Hello-World",
"description": "My first repository on GitHub! Contribute to octocat/Hello-World development by creating an account on GitHub.",
"image": "https://opengraph.githubassets.com/672a894454a1838d578f8e26229dbfd8158d4889b334944ee8987d9951e366aa/octocat/Hello-World"
},
"https://www.youtube.com/watch?v=dQw4w9WgXcQ": {
"title": "Rick Astley - Never Gonna Give You Up (Official Music Video)",
"description": "The official video for “Never Gonna Give You Up” by Rick Astley. The new album 'Are We There Yet?' is out now: Download here: https://RickAstley.lnk.to/AreWe...",
"image": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg"
}
}
28 changes: 28 additions & 0 deletions .contents/twitter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"https://twitter.com/thecampaignbook/status/594531814770745344": {
"url": "https://twitter.com/thecampaignbook/status/594531814770745344",
"author_name": "Shia LaBeouf",
"author_url": "https://twitter.com/thecampaignbook",
"html": "<blockquote class=\"twitter-tweet\" align=\"center\" data-lang=\"ja\" data-dnt=\"true\" data-theme=\"dark\"><p lang=\"en\" dir=\"ltr\">DO IT! JUST DO IT!!</p>&mdash; Shia LaBeouf (@thecampaignbook) <a href=\"https://twitter.com/thecampaignbook/status/594531814770745344?ref_src=twsrc%5Etfw\">2015年5月2日</a></blockquote>\n\n",
"width": 550,
"height": null,
"type": "rich",
"cache_age": "3153600000",
"provider_name": "Twitter",
"provider_url": "https://twitter.com",
"version": "1.0"
},
"https://twitter.com/not_you_die/status/1702572631772569625": {
"url": "https://twitter.com/not_you_die/status/1702572631772569625",
"author_name": "yudai",
"author_url": "https://twitter.com/not_you_die",
"html": "<blockquote class=\"twitter-tweet\" align=\"center\" data-lang=\"ja\" data-dnt=\"true\" data-theme=\"dark\"><p lang=\"en\" dir=\"ltr\">emoji kitchen <a href=\"https://t.co/taEPWIAfEC\">pic.twitter.com/taEPWIAfEC</a></p>&mdash; yudai (@not_you_die) <a href=\"https://twitter.com/not_you_die/status/1702572631772569625?ref_src=twsrc%5Etfw\">2023年9月15日</a></blockquote>\n\n",
"width": 550,
"height": null,
"type": "rich",
"cache_age": "3153600000",
"provider_name": "Twitter",
"provider_url": "https://twitter.com",
"version": "1.0"
}
}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ pnpm-debug.log*
# macOS-specific files
.DS_Store

.contents
.contents/posts.json
.contents/contributions.json
.contents/repository.json
.contents/feed.json
src/content/static/cv.md
1 change: 1 addition & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"line-length": false,
// for GFM Alerts > [!NOTE]
"no-blanks-blockquote": false,
"no-bare-urls": false,
"no-inline-html": {
"allowed_elements": [
"details",
Expand Down
13 changes: 8 additions & 5 deletions astro.config.mjs → astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ import svelte from "@astrojs/svelte";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
import expressiveCode from "astro-expressive-code";
import { defineConfig } from "astro/config";
import rehypeKatex from "rehype-katex";
// import rehypeKatex from "rehype-katex";
import remarkComment from "remark-comment";
import remarkGithubAlerts from "remark-github-alerts";
import remarkMath from "remark-math";
// import remarkMath from "remark-math";
import {
rehypeAnchor,
rehypeFigure,
remarkFencedCodeBlock,
} from "./src/utils/markdown";

// https://astro.build/config
export default defineConfig({
site: "https://oriverk.dev",
publicDir: "./public",
Expand All @@ -38,11 +37,15 @@ export default defineConfig({
markdown: {
remarkPlugins: [
remarkComment,
remarkMath,
// remarkMath,
remarkFencedCodeBlock,
remarkGithubAlerts,
],
rehypePlugins: [rehypeAnchor, rehypeFigure, rehypeKatex],
rehypePlugins: [
rehypeAnchor,
rehypeFigure,
// rehypeKatex
],
gfm: true,
},
});
Loading

0 comments on commit c4e8803

Please sign in to comment.