jekyll-obsidian-site 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +44 -86
- data/website/_includes/website/action-icon.html +1 -0
- data/website/_includes/website/archive-card-footer.html +1 -1
- data/website/_includes/website/archive-export.html +1 -0
- data/website/_includes/website/archive-facets.html +15 -3
- data/website/_includes/website/archive-pagination.html +6 -2
- data/website/_includes/website/archive-timeline.html +3 -3
- data/website/_includes/website/back-to-top.html +3 -0
- data/website/_includes/website/contact-icon.html +12 -12
- data/website/_includes/website/dialogs.html +2 -2
- data/website/_includes/website/favorites-ui.html +1 -1
- data/website/_includes/website/footer.html +25 -0
- data/website/_includes/website/local-graph.html +1 -0
- data/website/_includes/website/note-header.html +4 -0
- data/website/_includes/website/note-source.html +1 -1
- data/website/_includes/website/system-page.html +3 -1
- data/website/_includes/website/tag-filter.html +1 -1
- data/website/_layouts/website-docs.html +2 -1
- data/website/_layouts/website-minimal.html +3 -2
- data/website/assets/archive-filters-R5WW6IKE.js +12 -0
- data/website/assets/archive-worker-G2I544NV.js +1 -0
- data/website/assets/chunks/{abnfDiagram-WEYOIA3C-Z5V7NHNW.js → abnfDiagram-WEYOIA3C-H6XY6TGQ.js} +1 -1
- data/website/assets/chunks/{architectureDiagram-ZHVYKT53-3Q3V5WBD.js → architectureDiagram-ZHVYKT53-4FFTTUL4.js} +1 -1
- data/website/assets/chunks/{blockDiagram-RJAE7QA3-OAF7LPDQ.js → blockDiagram-RJAE7QA3-AXWKL2AZ.js} +1 -1
- data/website/assets/chunks/{c4Diagram-XDPPPE54-EJWLHA47.js → c4Diagram-XDPPPE54-2GAHNEQW.js} +1 -1
- data/website/assets/chunks/{chunk-KY2Z6HIV.js → chunk-2NQ22GFO.js} +1 -1
- data/website/assets/chunks/{chunk-OEBMYWCF.js → chunk-4KPJTMZ4.js} +1 -1
- data/website/assets/chunks/{chunk-BYAY7DUZ.js → chunk-6ZQ7VHWN.js} +1 -1
- data/website/assets/chunks/{chunk-P2OPVFT2.js → chunk-7AU45BWK.js} +1 -1
- data/website/assets/chunks/{chunk-IFVMCECG.js → chunk-7KPU4VDE.js} +1 -1
- data/website/assets/chunks/{chunk-FBK4QOLY.js → chunk-A5S7PJ2Q.js} +1 -1
- data/website/assets/chunks/{chunk-YPZM5QAW.js → chunk-BNFQ6YYK.js} +1 -1
- data/website/assets/chunks/{chunk-MGH5TWGB.js → chunk-DR3UYLVK.js} +1 -1
- data/website/assets/chunks/{chunk-MMD2CHZ4.js → chunk-EB5GI6TX.js} +1 -1
- data/website/assets/chunks/chunk-GPIO2QPP.js +1 -0
- data/website/assets/chunks/{chunk-ELAEHAWT.js → chunk-I5CHBHZT.js} +1 -1
- data/website/assets/chunks/{chunk-IEWJFRV2.js → chunk-KFCEUT4I.js} +1 -1
- data/website/assets/chunks/chunk-KJTG2HC3.js +1 -0
- data/website/assets/chunks/{chunk-KOVRICJQ.js → chunk-LUJIS6FY.js} +1 -1
- data/website/assets/chunks/chunk-MKLMFEY4.js +1 -0
- data/website/assets/chunks/{chunk-ODUIGMTT.js → chunk-NSER5MRF.js} +1 -1
- data/website/assets/chunks/{chunk-PHW75MPZ.js → chunk-ODZW2LAZ.js} +1 -1
- data/website/assets/chunks/chunk-TZRTKK7O.js +1 -0
- data/website/assets/chunks/{chunk-XPCWLWWI.js → chunk-USR7LCIV.js} +1 -1
- data/website/assets/chunks/{chunk-QV32QYTD.js → chunk-V3AAEOUZ.js} +1 -1
- data/website/assets/chunks/{classDiagram-v2-4MYWR3UA-TBKN4UUY.js → classDiagram-v2-4MYWR3UA-ZY57RKXZ.js} +1 -1
- data/website/assets/chunks/{cose-bilkent-JH36ORCC-L6EPO3KG.js → cose-bilkent-JH36ORCC-WIVS7FPC.js} +1 -1
- data/website/assets/chunks/{cynefinDiagram-WF24UDRP-NQI7F564.js → cynefinDiagram-WF24UDRP-MLC22WFH.js} +1 -1
- data/website/assets/chunks/{dagre-NK4GIZVX-JD2M5C6I.js → dagre-NK4GIZVX-4LFK4F5D.js} +1 -1
- data/website/assets/chunks/{diagram-CBK3MWTC-D4ZSERBO.js → diagram-CBK3MWTC-2SSL2APM.js} +1 -1
- data/website/assets/chunks/{diagram-I5XIIV2D-HIOQ6A3G.js → diagram-I5XIIV2D-64DRXMM6.js} +1 -1
- data/website/assets/chunks/{diagram-ODIL2UCW-MSREDQ6B.js → diagram-ODIL2UCW-XK4IEKYC.js} +1 -1
- data/website/assets/chunks/{diagram-PFBEJUXE-JPKSKRIC.js → diagram-PFBEJUXE-KKVC77DE.js} +1 -1
- data/website/assets/chunks/{diagram-RJA3I4VV-IQ6632CB.js → diagram-RJA3I4VV-LNQEDK46.js} +1 -1
- data/website/assets/chunks/{diagram-TYUNFSNR-P5IKS3A3.js → diagram-TYUNFSNR-QVOLMEC4.js} +1 -1
- data/website/assets/chunks/{ebnfDiagram-V4P3TTPT-VCZMC4YS.js → ebnfDiagram-V4P3TTPT-CXZTWZZY.js} +1 -1
- data/website/assets/chunks/{elk-QONTBCTQ-7AW4R5PK.js → elk-QONTBCTQ-ASERRRNS.js} +1 -1
- data/website/assets/chunks/{erDiagram-KYQIGQAA-V4LOTM3S.js → erDiagram-KYQIGQAA-NEFXHTDF.js} +1 -1
- data/website/assets/chunks/flowDiagram-IUGLLWBU-GKBFQNDP.js +1 -0
- data/website/assets/chunks/{ganttDiagram-R7GPNTJY-AEVHODOA.js → ganttDiagram-R7GPNTJY-Y2KSJYS4.js} +1 -1
- data/website/assets/chunks/{gitGraphDiagram-PDYL7XHY-LKBXIKVR.js → gitGraphDiagram-PDYL7XHY-EX3ERW5D.js} +1 -1
- data/website/assets/chunks/infoDiagram-MVDRKAX5-AUCEX7FP.js +2 -0
- data/website/assets/chunks/{ishikawaDiagram-HPEHV2GE-JSVZLZDP.js → ishikawaDiagram-HPEHV2GE-CCJUQRNA.js} +1 -1
- data/website/assets/chunks/{journeyDiagram-BOSHW7O7-JVAKMGRK.js → journeyDiagram-BOSHW7O7-ZS3BH6WM.js} +1 -1
- data/website/assets/chunks/{kanban-definition-FNSA4HC5-7RQQNTOF.js → kanban-definition-FNSA4HC5-VFJSTQMF.js} +1 -1
- data/website/assets/chunks/{mindmap-definition-6OY57UG3-NRMVR6UI.js → mindmap-definition-6OY57UG3-KHVZR6MO.js} +1 -1
- data/website/assets/chunks/{pegDiagram-ECIUJNBX-BUG53OMT.js → pegDiagram-ECIUJNBX-4DCYWOTB.js} +1 -1
- data/website/assets/chunks/{pieDiagram-GNMPY74T-KK6VNPAE.js → pieDiagram-GNMPY74T-MSSPA6BG.js} +1 -1
- data/website/assets/chunks/{quadrantDiagram-D57K4MC3-6R7AY2OK.js → quadrantDiagram-D57K4MC3-AOYUYY4I.js} +1 -1
- data/website/assets/chunks/{railroadDiagram-Y72NRBL7-G6YI4UOP.js → railroadDiagram-Y72NRBL7-2F7VDY63.js} +1 -1
- data/website/assets/chunks/{requirementDiagram-EQYSW5RA-FGXZYHEV.js → requirementDiagram-EQYSW5RA-VWA3RAXW.js} +1 -1
- data/website/assets/chunks/{sankeyDiagram-SY24JHO5-7JCOYDKS.js → sankeyDiagram-SY24JHO5-2555YRTO.js} +1 -1
- data/website/assets/chunks/{sequenceDiagram-BLEHNHQU-R5TBDEQR.js → sequenceDiagram-BLEHNHQU-42EPBSFI.js} +1 -1
- data/website/assets/chunks/{stateDiagram-v2-A6IESKWZ-PS2LTOBE.js → stateDiagram-v2-A6IESKWZ-BUWAZBMT.js} +1 -1
- data/website/assets/chunks/{swimlanes-B3ENRKFQ-T4ANUYE5.js → swimlanes-B3ENRKFQ-YVQZM2ZV.js} +1 -1
- data/website/assets/chunks/swimlanesDiagram-AYQRV4AK-PIM5CPGV.js +8 -0
- data/website/assets/chunks/{timeline-definition-JXYKGLGB-NKTZVLAN.js → timeline-definition-JXYKGLGB-L4XK4IA2.js} +1 -1
- data/website/assets/chunks/{usecaseDiagram-WPOLBNNX-23KYIREC.js → usecaseDiagram-WPOLBNNX-JIQPEJGT.js} +1 -1
- data/website/assets/chunks/{vennDiagram-Q3Y3IDCW-7K3XRLKC.js → vennDiagram-Q3Y3IDCW-ZL36EB3C.js} +1 -1
- data/website/assets/chunks/{wardleyDiagram-IVAIDKWA-FBDWJFKS.js → wardleyDiagram-IVAIDKWA-6NNJBKAT.js} +1 -1
- data/website/assets/chunks/{xychartDiagram-4URNHDU4-OY3ZRRWP.js → xychartDiagram-4URNHDU4-ZBQDSFFT.js} +1 -1
- data/website/assets/docs-7YBVH7A3.css +1 -0
- data/website/assets/docs-PCBXSG6K.js +1 -0
- data/website/assets/docs-navigation-SQPXOH42.js +1 -0
- data/website/assets/favorite-controls-7CQOGEEJ.js +1 -0
- data/website/assets/graph-QFPKHVGP.js +1 -0
- data/website/assets/manifest.json +163 -151
- data/website/assets/{mermaid-DLWPGV5J.js → mermaid-47XTJG37.js} +2 -2
- data/website/assets/minimal-JBOFMENV.css +1 -0
- data/website/assets/minimal-YEVXPLLM.js +1 -0
- data/website/assets/{previews-MG7MTTYB.js → previews-MS2IAQAO.js} +1 -1
- data/website/assets/search-4HE3SQVR.js +1 -0
- data/website/lib/jekyll_obsidian/adapter.rb +16 -4
- data/website/lib/jekyll_obsidian/built_in_themes.rb +54 -20
- data/website/lib/jekyll_obsidian/content_policy.rb +30 -1
- data/website/lib/jekyll_obsidian/diagnostics.rb +14 -0
- data/website/lib/jekyll_obsidian/footer_links.rb +73 -0
- data/website/lib/jekyll_obsidian/front_matter.rb +36 -12
- data/website/lib/jekyll_obsidian/localized_compiler.rb +202 -64
- data/website/lib/jekyll_obsidian/markdown_options.rb +37 -0
- data/website/lib/jekyll_obsidian/ofm_scanner.rb +11 -6
- data/website/lib/jekyll_obsidian/output_text.rb +5 -0
- data/website/lib/jekyll_obsidian/paged_archive.rb +43 -6
- data/website/lib/jekyll_obsidian/published_markdown.rb +55 -2
- data/website/lib/jekyll_obsidian/reading_time.rb +54 -0
- data/website/lib/jekyll_obsidian/robots.rb +11 -0
- data/website/lib/jekyll_obsidian/site_compilation.rb +10 -99
- data/website/lib/jekyll_obsidian/tag_policy.rb +51 -0
- data/website/lib/jekyll_obsidian/value_objects.rb +5 -1
- data/website/lib/jekyll_obsidian/vault_compiler.rb +272 -157
- data/website/lib/jekyll_obsidian/version.rb +1 -1
- data/website/lib/jekyll_obsidian.rb +6 -0
- data/website/scripts/audit-site.rb +1 -1
- data/website/scripts/verify-site-urls.rb +2 -1
- metadata +81 -70
- data/website/assets/archive-worker-WS545WIE.js +0 -1
- data/website/assets/chunks/chunk-JXSDAMOW.js +0 -1
- data/website/assets/chunks/chunk-R3AIO6OV.js +0 -12
- data/website/assets/chunks/flowDiagram-IUGLLWBU-4HYSLWMD.js +0 -1
- data/website/assets/chunks/infoDiagram-MVDRKAX5-IIV27ROL.js +0 -2
- data/website/assets/chunks/swimlanesDiagram-AYQRV4AK-CMBJIT6P.js +0 -8
- data/website/assets/docs-4DKXPRKN.css +0 -1
- data/website/assets/docs-PANVBLCJ.js +0 -1
- data/website/assets/docs-navigation-BBZLZHQB.js +0 -1
- data/website/assets/graph-F3JLZWW5.js +0 -1
- data/website/assets/minimal-ERLB42UD.css +0 -1
- data/website/assets/minimal-YXGMMLS2.js +0 -1
- data/website/assets/search-7PCXY7J6.js +0 -1
- /data/website/assets/chunks/{chunk-7UAUSQAK.js → chunk-UNVUNKH6.js} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f9d91405141a83604332d9d3ae64c3e3538e3a1d8d94d0cb4e0301effa7445c
|
|
4
|
+
data.tar.gz: a14c690ad7ad6033d94ce1140c5908cf00b23b5071c3bf07cc1162cf21f42a6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77a426ca377292092e9d34af6a6b2afe22e42438a7e5f32371f71715cb67f7ffdd24d8a5a1b5c9980f5cd50d7a3cb4fe93415d9b325496894fbbd96a83889e3d
|
|
7
|
+
data.tar.gz: ec7dd1f4417e7f061ace9795839a6ebc6f8bd669f58c7779db2806c63bdb104d4eaf8bfdf14dc9ebc1959678450f1b1b6f470fc85430b6be996dbe1f5c9b1daf
|
data/README.md
CHANGED
|
@@ -2,39 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Turn a Markdown folder or Obsidian vault into a blog or documentation site. Keep writing in your editor and push to GitHub; Actions builds and publishes the site using the [jekyll-obsidian-site](https://rubygems.org/gems/jekyll-obsidian-site) Ruby gem.
|
|
6
6
|
|
|
7
7
|
Live preview: [sinputer.top/jekyll-obsidian](https://sinputer.top/jekyll-obsidian/)
|
|
8
8
|
|
|
9
|
-
Choose
|
|
9
|
+
Choose a built-in theme:
|
|
10
10
|
|
|
11
|
-
- `minimal`
|
|
12
|
-
- `docs
|
|
11
|
+
- `minimal` (default): an authored home page, recent posts, a blog, documentation, and project portfolios or custom sections.
|
|
12
|
+
- `docs`: a document tree with previous and next links.
|
|
13
13
|
|
|
14
|
-
Both themes
|
|
14
|
+
Both themes include search, wiki-link previews, page outlines, note relations, and interactive graphs. They support media embeds, translations, and GitHub Discussions comments, with canonical metadata, a sitemap, and Markdown downloads.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
Both themes use compact header icons with accessible names and hover hints. Supported local files and HTTPS media embed in notes, including native audio/video, PDFs, YouTube, Bilibili, Vimeo and X. See [Syntax](website/jekyll-obsidian-docs/docs/Syntax.md) for formats and examples. Paged archives show up to five nearby page links and accept a page number for direct navigation.
|
|
18
|
-
The default build and deployment theme is `minimal`. Both themes can publish locale overlays from `_translations/<locale>/` and attach GitHub Discussions comments to posts. When the corresponding mapping is present and omits `enabled`, localization defaults on only for `docs`, while comments default on only for `minimal`.
|
|
16
|
+
## Publish with GitHub Pages
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
The workflow installs the build tools, so you do not need Ruby or Node.js locally. [Public repositories can use GitHub Pages on GitHub Free](https://docs.github.com/en/pages/quickstart#who-can-use-this-feature).
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
Publication settings control the generated site, not access to committed files. Anyone who can read the repository can read unpublished notes too. Keep private material out of public repositories, and inspect linked Canvas and Bases files before publishing them as downloads.
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
**Already have a Gemfile?** Follow [Host Integration](website/jekyll-obsidian-docs/docs/Integration.md#use-bundler) first: the Action requires both `Gemfile` and `Gemfile.lock`, with the builder version matching the Action release.
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
[GitHub Pages is available for public repositories on GitHub Free](https://docs.github.com/en/pages/quickstart#who-can-use-this-feature), so a public `jekyll-obsidian` site needs no paid hosting.
|
|
29
|
-
|
|
30
|
-
The publication policy controls what enters the generated site. It does not make other committed files private. Anyone who can read the repository can read unpublished notes too, so do not commit secrets, personal records, or other private material.
|
|
31
|
-
|
|
32
|
-
Canvas and Bases files become downloads when a public note links to them. Inspect them before committing because they can contain excerpts or references to unpublished material.
|
|
33
|
-
|
|
34
|
-
## Add it to your repository
|
|
35
|
-
|
|
36
|
-
1. Create `.github/jekyll-obsidian.yml`, using [the example configuration](examples/jekyll-obsidian.yml):
|
|
24
|
+
1. Create `.github/jekyll-obsidian.yml` using [the example configuration](examples/jekyll-obsidian.yml):
|
|
37
25
|
|
|
26
|
+
<!-- example:site-config -->
|
|
38
27
|
```yaml
|
|
39
28
|
title: My Site
|
|
40
29
|
website:
|
|
@@ -43,97 +32,66 @@ website:
|
|
|
43
32
|
```
|
|
44
33
|
|
|
45
34
|
2. Copy [the Pages workflow](examples/pages.yml) to `.github/workflows/pages.yml`.
|
|
46
|
-
3.
|
|
35
|
+
3. Create `docs/index.md`:
|
|
47
36
|
|
|
48
|
-
|
|
37
|
+
<!-- example:public-note -->
|
|
38
|
+
```markdown
|
|
39
|
+
---
|
|
40
|
+
publish: true
|
|
41
|
+
title: Welcome
|
|
42
|
+
---
|
|
49
43
|
|
|
50
|
-
|
|
44
|
+
# Welcome
|
|
51
45
|
|
|
52
|
-
|
|
53
|
-
gem install jekyll-obsidian-site
|
|
54
|
-
jekyll-obsidian init --source docs
|
|
46
|
+
My first public note.
|
|
55
47
|
```
|
|
56
48
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
## Preview the deployed site
|
|
60
|
-
|
|
61
|
-
Wait for the **Build and deploy Pages** workflow on the default branch to succeed. GitHub reports the deployed URL in the workflow's `deploy` job and in **Settings → Pages**.
|
|
49
|
+
4. Select **Settings > Pages > Build and deployment > Source > GitHub Actions**, then commit and push to the default branch.
|
|
62
50
|
|
|
63
|
-
|
|
51
|
+
After **Build and deploy Pages** succeeds, find the URL in the `deploy` job or **Settings > Pages**. Project sites normally use `https://<owner>.github.io/<repository>/`; repositories named `<owner>.github.io` use the domain root. The workflow also reads custom-domain settings automatically. See [Deployment](website/jekyll-obsidian-docs/docs/Deployment.md).
|
|
64
52
|
|
|
65
|
-
|
|
66
|
-
- `https://<owner>.github.io/` when the repository itself is named `<owner>.github.io`.
|
|
53
|
+
## Configure and update
|
|
67
54
|
|
|
68
|
-
|
|
55
|
+
Edit `.github/jekyll-obsidian.yml`. Site identity fields (`title`, `description`, `lang`, `url`, `baseurl`) belong at the YAML root; content, theme, and feature settings belong under `website`. Set `website.source` to a repository-relative content directory and `website.theme` to `minimal` or `docs`. Changes take effect on the next build.
|
|
69
56
|
|
|
70
|
-
|
|
57
|
+
By default, only notes whose frontmatter has the YAML boolean `publish: true` enter the site. To publish folders recursively, list content-relative paths under `website.content.publish_by_default`; `.` selects the whole content tree. Use `publish: false` to exclude a note. Quoted strings such as `"true"` are not booleans. Obsidian's `.obsidian/` and `.trash/` directories are excluded.
|
|
71
58
|
|
|
72
|
-
|
|
59
|
+
A home page is optional: without one, the site can open a section or another public note. At least one public note is required. See [Customization](website/jekyll-obsidian-docs/docs/Customization.md#content-and-navigation) for index selection and navigation.
|
|
73
60
|
|
|
74
|
-
|
|
61
|
+
Switching themes preserves the URLs of notes that remain published. For multilingual sites, set `website.i18n.enabled: true` explicitly to keep translations enabled across theme changes. See [Localization](website/jekyll-obsidian-docs/docs/Localization.md).
|
|
75
62
|
|
|
76
|
-
|
|
63
|
+
See [theme defaults](website/jekyll-obsidian-docs/docs/Customization.md#site-themes) for feature, localization, and comment settings.
|
|
77
64
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
```yaml
|
|
81
|
-
---
|
|
82
|
-
publish: true
|
|
83
|
-
title: A public note
|
|
84
|
-
tags:
|
|
85
|
-
- example
|
|
86
|
-
---
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
The strings `"true"` and `"yes"` are not accepted. To publish a whole folder recursively, list its path under `website.content.publish_by_default`; use `.` to select the complete content tree. A note can opt out of either default with the YAML boolean `publish: false`. Obsidian's `.obsidian/` state and `.trash/` are excluded from the content snapshot.
|
|
90
|
-
|
|
91
|
-
`index.md` is optional at the content root and in every nested folder. When a folder has no physical `index.md`, a published sibling named exactly `README.md` becomes its index. A physical `index.md` keeps priority even when it is unpublished; in that case, `README.md` remains an ordinary note. A selected README keeps its source path and source actions but publishes at the folder route. Minimal places the selected public root index above the six most recent posts on Home; without one, Home can still show the post stream. A folder without a public selected index links to its first ordered public page. A content directory with no public notes still fails the build.
|
|
92
|
-
|
|
93
|
-
Trusted standalone HTML slides can also publish at explicit routes without a theme or Liquid pass. Map one `.html` file or a directory bundle containing `index.html`; a bundle publishes its regular files with their relative structure intact, except Markdown and compiler locale manifests such as `_locale.yml`:
|
|
94
|
-
|
|
95
|
-
```yaml
|
|
96
|
-
website:
|
|
97
|
-
html:
|
|
98
|
-
slides/product-tour: /slides/product-tour/
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
HTML mappings are an explicit publication boundary independent of Markdown defaults. Raw pages stay out of navigation, Search, Graph, feeds, and sitemap, and they execute as trusted same-origin code. Review the complete bundle before publishing. See [Customization](website/jekyll-obsidian-docs/docs/Customization.md#standalone-html-slides) and the [working slide source](website/jekyll-obsidian-docs/slides/jekyll-obsidian/index.html).
|
|
102
|
-
|
|
103
|
-
Update the Action version in your workflow to use a new release. For a local gem installation, run `gem update jekyll-obsidian-site`; for Bundler, run `bundle update jekyll-obsidian-site` and commit the lockfile. Your content and configuration remain in your repository.
|
|
65
|
+
To upgrade, change the Action release in the workflow. If you use Bundler, update the Gemfile constraint to the same version, run `bundle update jekyll-obsidian-site`, and commit both dependency files with the workflow. For a standalone local installation, run `gem update jekyll-obsidian-site`.
|
|
104
66
|
|
|
105
67
|
## Optional local preview
|
|
106
68
|
|
|
107
|
-
With Ruby 4.0.x on macOS, Linux, or WSL:
|
|
69
|
+
With Ruby 4.0.x on macOS, Linux, or WSL, run from your repository root:
|
|
108
70
|
|
|
109
71
|
```sh
|
|
110
72
|
gem install jekyll-obsidian-site
|
|
111
73
|
jekyll-obsidian dev
|
|
112
74
|
```
|
|
113
75
|
|
|
114
|
-
Open `http://127.0.0.1:58000/`. Content and configuration changes trigger a
|
|
115
|
-
|
|
116
|
-
Build for another host with `jekyll-obsidian build --url https://example.com --baseurl /project`. Output is written to `.jekyll-obsidian-cache/site/`. `jekyll-obsidian clean` removes this project's cache and output. The gem includes frontend assets, so local use does not require Node.js.
|
|
117
|
-
|
|
118
|
-
## Guides
|
|
76
|
+
Open `http://127.0.0.1:58000/`. Content and configuration changes trigger a rebuild; failures preserve the last successful site. Run `jekyll-obsidian dev --help` for host, port, base path, and theme options. The gem includes frontend assets, so Node.js is not required.
|
|
119
77
|
|
|
120
|
-
- [Host Integration](website/jekyll-obsidian-docs/docs/Integration.md)
|
|
121
|
-
- [Getting Started](website/jekyll-obsidian-docs/docs/Getting%20Started.md) covers GitHub Actions publishing, authoring, and optional local preview.
|
|
122
|
-
- [Syntax](website/jekyll-obsidian-docs/docs/Syntax.md) documents the supported Obsidian-flavored Markdown.
|
|
123
|
-
- [Customization](website/jekyll-obsidian-docs/docs/Customization.md) covers site identity, themes, navigation, and features.
|
|
124
|
-
- [Portfolio](website/jekyll-obsidian-docs/docs/Portfolio.md) covers project collections and public GitHub Markdown bodies.
|
|
125
|
-
- [Analytics](website/jekyll-obsidian-docs/docs/Analytics.md) covers optional Cloudflare and Google traffic measurement.
|
|
126
|
-
- [Comments](website/jekyll-obsidian-docs/docs/Comments.md) covers GitHub Discussions setup and privacy boundaries.
|
|
127
|
-
- [Localization](website/jekyll-obsidian-docs/docs/Localization.md) covers translations, fallback pages, and localized SEO.
|
|
128
|
-
- [Deployment](website/jekyll-obsidian-docs/docs/Deployment.md) covers GitHub Pages, URL paths, and custom domains.
|
|
78
|
+
To create the configuration and workflow locally, run `jekyll-obsidian init --source docs`. It adds a public welcome note only when the content directory is absent or empty, and reports conflicting files without overwriting them. For Bundler commands, see [Host Integration](website/jekyll-obsidian-docs/docs/Integration.md).
|
|
129
79
|
|
|
130
|
-
|
|
80
|
+
For another host, run `jekyll-obsidian build --url https://example.com --baseurl /project` and upload `.jekyll-obsidian-cache/site/`. `jekyll-obsidian clean` removes this project's cache and output.
|
|
131
81
|
|
|
132
|
-
|
|
82
|
+
## Guides and contributing
|
|
133
83
|
|
|
134
|
-
|
|
84
|
+
- [Host Integration](website/jekyll-obsidian-docs/docs/Integration.md): installation, Bundler, and upgrades.
|
|
85
|
+
- [Getting Started](website/jekyll-obsidian-docs/docs/Getting%20Started.md): publishing and authoring.
|
|
86
|
+
- [Syntax](website/jekyll-obsidian-docs/docs/Syntax.md): Obsidian-flavored Markdown and media embeds.
|
|
87
|
+
- [Customization](website/jekyll-obsidian-docs/docs/Customization.md): themes, navigation, archive tabs, recommendations, and trusted HTML slides.
|
|
88
|
+
- [Portfolio](website/jekyll-obsidian-docs/docs/Portfolio.md): project collections and public GitHub Markdown bodies.
|
|
89
|
+
- [Analytics](website/jekyll-obsidian-docs/docs/Analytics.md): optional Cloudflare or Google traffic measurement.
|
|
90
|
+
- [Comments](website/jekyll-obsidian-docs/docs/Comments.md): GitHub Discussions setup and privacy.
|
|
91
|
+
- [Localization](website/jekyll-obsidian-docs/docs/Localization.md): translations, fallback pages, and SEO.
|
|
92
|
+
- [Deployment](website/jekyll-obsidian-docs/docs/Deployment.md): hosting, URL paths, and custom domains.
|
|
135
93
|
|
|
136
|
-
|
|
94
|
+
For development setup and native Windows PowerShell commands, read the [Developer Guide](website/jekyll-obsidian-docs/docs/development/index.md). On macOS, Linux, or WSL, run `website/bin/test` from the repository root. It builds frontend assets and packages the gem before running the Ruby, TypeScript, frontend, and Node checks. If running Ruby tests separately from `website/`, first run `npm run build` and `bundle exec ruby scripts/package.rb --skip-assets`, then `bundle exec rake test`; the suite tests an actual installed gem.
|
|
137
95
|
|
|
138
96
|
## License
|
|
139
97
|
|
|
@@ -8,5 +8,6 @@
|
|
|
8
8
|
{% when 'reading' %}<path d="M12 5c-3-2-7-2-10-1v15c3-1 7-1 10 1 3-2 7-2 10-1V4c-3-1-7-1-10 1Zm0 0v15"/><path class="site-action__reading-check" d="m15 11 2 2 3-4"/>
|
|
9
9
|
{% when 'previous' %}<path d="m14 6-6 6 6 6"/>
|
|
10
10
|
{% when 'next' %}<path d="m10 6 6 6-6 6"/>
|
|
11
|
+
{% when 'back-to-top' %}<path d="m6 15 6-6 6 6"/>
|
|
11
12
|
{% endcase %}
|
|
12
13
|
</svg>
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
<ul class="blog-ledger__topics" aria-label="{{ ui.sources | default: 'Sources' | escape }} / {{ ui.topics | default: 'Topics' | escape }}">
|
|
3
3
|
{% for tag in include.post.archive_facets %}<li><a href="{{ blog_url | escape }}?{{ tag.facet | url_encode }}={{ tag.id | url_encode }}" data-archive-facet="{{ tag.facet | escape }}" data-archive-value="{{ tag.id | escape }}">{{ tag.name | escape }}</a></li>{% endfor %}
|
|
4
4
|
</ul>
|
|
5
|
-
{% if include.post.source_url %}<a class="archive-source-url" href="{{ include.post.source_url | escape }}" rel="noopener noreferrer">{{ include.post.source_url | escape }}</a>{% endif %}
|
|
5
|
+
{% if include.post.source_url %}<a class="archive-source-url" href="{{ include.post.source_url | escape }}" rel="noopener noreferrer">{{ include.post.source_title | default: include.post.source_url | escape }}</a>{% endif %}
|
|
6
6
|
{% if include.post.date_basis == 'observed' %}<small>{{ ui.first_observed | default: 'First observed' | escape }}</small>{% endif %}
|
|
7
7
|
</footer>
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
data-site="{{ site.title | escape }}"
|
|
10
10
|
data-download="{{ ui.export_download | default: 'Download Markdown' | escape }}"
|
|
11
11
|
data-all="{{ ui.all | default: 'All' | escape }}"
|
|
12
|
+
data-all-without-tabs="{{ ui.all_without_tab_sources | default: 'All (excluding tab sources)' | escape }}"
|
|
12
13
|
data-sources="{{ ui.sources | default: 'Sources' | escape }}"
|
|
13
14
|
data-topics="{{ ui.topics | default: 'Topics' | escape }}"
|
|
14
15
|
data-dates="{{ ui.export_dates | default: 'Date range' | escape }}"
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{% assign archive = page.website.theme_data.archive %}
|
|
2
2
|
{% for group in archive.facets %}
|
|
3
|
+
{% assign facet_name = group[0] %}
|
|
4
|
+
{% assign facet_prefix = archive.prefixes[facet_name] %}
|
|
5
|
+
{% assign facet_counts = archive.default_view.facets[facet_name] %}
|
|
3
6
|
{% if group[1].size == 0 %}{% continue %}{% endif %}
|
|
4
7
|
{% if page.website.theme_data.tab_id and group[0] == 'source' and group[1].size == 1 %}
|
|
5
8
|
{% assign only_source = group[1] | first %}
|
|
@@ -8,9 +11,18 @@
|
|
|
8
11
|
{% assign facet_label = group[0] %}
|
|
9
12
|
{% if group[0] == 'source' %}{% assign facet_label = ui.sources | default: 'Sources' %}{% elsif group[0] == 'topic' %}{% assign facet_label = ui.topics | default: 'Topics' %}{% endif %}
|
|
10
13
|
<nav class="tag-filter archive-facet" aria-label="{{ facet_label | escape }}">
|
|
11
|
-
<h2 class="archive-facet-label">{{ facet_label | escape }}</h2>
|
|
12
|
-
<ul class="tag-filter__list"><li><button class="tag-chip" type="button" data-archive-facet="{{ group[0] | escape }}" data-archive-value="" aria-pressed="true">{{ ui.all | default: 'All' | escape }} <span>{{ archive.total }}</span></button></li>
|
|
13
|
-
{% for option in group[1] %}
|
|
14
|
+
<div class="archive-facet-heading"><h2 class="archive-facet-label">{{ facet_label | escape }}</h2></div>
|
|
15
|
+
<ul class="tag-filter__list"><li><button class="tag-chip" type="button" data-archive-facet="{{ group[0] | escape }}" data-archive-value="" aria-pressed="true">{{ ui.all | default: 'All' | escape }} <span>{{ archive.default_view.total | default: archive.total }}</span></button></li>
|
|
16
|
+
{% for option in group[1] %}
|
|
17
|
+
{% comment %}Keep default visibility/counts aligned with src/frontend/archive-visibility.ts; hydration applies URL selections.{% endcomment %}
|
|
18
|
+
{% assign tag = facet_prefix | append: option.id %}
|
|
19
|
+
{% assign option_hidden = false %}
|
|
20
|
+
{% if archive.hidden_tags contains tag %}{% assign option_hidden = true %}{% endif %}
|
|
21
|
+
{% if group[0] == 'source' and archive.tab_sources contains option.id %}{% assign option_hidden = true %}{% endif %}
|
|
22
|
+
{% assign option_count = option.count %}
|
|
23
|
+
{% if archive.default_view %}{% assign option_count = facet_counts[option.id] | default: 0 %}{% endif %}
|
|
24
|
+
{% if option_count == 0 %}{% assign option_hidden = true %}{% endif %}
|
|
25
|
+
<li{% if option_hidden %} hidden{% endif %}><button class="tag-chip" type="button" data-archive-facet="{{ group[0] | escape }}" data-archive-value="{{ option.id | escape }}" aria-pressed="false">{{ option.name | escape }} <span>{{ option_count }}</span></button></li>{% endfor %}</ul>
|
|
14
26
|
</nav>
|
|
15
27
|
{% endfor %}
|
|
16
28
|
<p class="filter-empty" data-archive-empty hidden>{{ ui.no_matching_entries | default: 'No entries match these filters.' | escape }} <button type="button" data-archive-clear>{{ ui.clear_filters | default: 'Clear filters' | escape }}</button></p>
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
{% assign archive_total = page.website.theme_data.archive.default_view.total | default: page.website.theme_data.archive.total %}
|
|
1
2
|
<nav class="archive-pagination" aria-label="{{ ui.pagination | default: 'Pagination' | escape }}" data-archive-pagination data-page-label="{{ ui.page_label | escape }}" data-result-label="{{ ui.archive_results | escape }}" data-number-label="{{ ui.page_number | escape }}" data-jump-error="{{ ui.page_jump_error | escape }}">
|
|
2
3
|
<span data-archive-page-status aria-live="polite" aria-atomic="true"></span>
|
|
3
4
|
<div class="archive-pagination__navigation">
|
|
4
5
|
<button type="button" data-archive-page="prev" aria-label="{{ ui.previous | default: 'Previous' | escape }}" title="{{ ui.previous | default: 'Previous' | escape }}" disabled>{% include website/action-icon.html name='previous' class='archive-pagination__arrow' %}<span>{{ ui.previous | default: 'Previous' | escape }}</span></button>
|
|
5
6
|
<div class="archive-pagination__numbers" data-archive-page-numbers></div>
|
|
6
|
-
<button type="button" data-archive-page="next" aria-label="{{ ui.next | default: 'Next' | escape }}" title="{{ ui.next | default: 'Next' | escape }}"
|
|
7
|
+
<button type="button" data-archive-page="next" aria-label="{{ ui.next | default: 'Next' | escape }}" title="{{ ui.next | default: 'Next' | escape }}" disabled>{% include website/action-icon.html name='next' class='archive-pagination__arrow' %}<span>{{ ui.next | default: 'Next' | escape }}</span></button>
|
|
7
8
|
</div>
|
|
8
9
|
<form class="archive-pagination__jump" data-archive-page-jump hidden>
|
|
9
10
|
<label><span class="visually-hidden">{{ ui.page_input | default: 'Page number' | escape }}</span><input type="number" inputmode="numeric" min="1" step="1" required disabled></label>
|
|
10
11
|
<button type="submit">{{ ui.page_go | default: 'Go' | escape }}</button>
|
|
11
12
|
</form>
|
|
12
13
|
</nav>
|
|
13
|
-
<p role="status" aria-live="polite" data-archive-status data-loading="{{ ui.archive_loading | default: 'Loading selected entries…' | escape }}" data-unavailable="{{ ui.archive_unavailable | default: 'Selected entries could not be loaded. Retry or clear the filters.' | escape }}" data-refresh-error="{{ ui.archive_refresh_error | escape }}"></p>
|
|
14
|
+
<p role="status" aria-live="polite" data-archive-status data-module-unavailable="{{ ui.archive_module_unavailable | escape }}" data-loading="{{ ui.archive_loading | default: 'Loading selected entries…' | escape }}" data-unavailable="{{ ui.archive_unavailable | default: 'Selected entries could not be loaded. Retry or clear the filters.' | escape }}" data-refresh-error="{{ ui.archive_refresh_error | escape }}"></p>
|
|
14
15
|
<button type="button" data-archive-retry hidden>{{ ui.retry | default: 'Retry' | escape }}</button>
|
|
16
|
+
{% unless page.website.theme_data.favorites %}{% if archive_total > page.website.theme_data.archive.page_size %}
|
|
17
|
+
<noscript><p>{{ ui.archive_requires_js | default: 'The first page is shown. Enable JavaScript to browse all entries.' | escape }}</p></noscript>
|
|
18
|
+
{% endif %}{% endunless %}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
<nav class="archive-timeline" data-timeline-nav aria-labelledby="archive-timeline-title"{% if page.website.theme_data.favorites %} hidden{% endif %}>
|
|
6
6
|
<h2 class="relation-section__title" id="archive-timeline-title">{{ ui.chronology | default: 'Chronology' | escape }}</h2>
|
|
7
7
|
{% for group in include.timeline %}
|
|
8
|
-
<section class="archive-timeline__year{% if group.days %} archive-timeline__year--days{% endif %}">
|
|
8
|
+
<section class="archive-timeline__year{% if group.days %} archive-timeline__year--days{% endif %}"{% if group.count == 0 %} hidden{% endif %}>
|
|
9
9
|
<h3><a href="{{ filter_url | escape }}?year={{ group.year | url_encode }}" data-year-filter-option data-filter-year="{{ group.year | escape }}"><span>{{ group.year | escape }}</span><span class="archive-timeline__count">{{ group.count }}</span></a></h3>
|
|
10
10
|
<ul>
|
|
11
11
|
{% if group.days %}
|
|
12
|
-
{% for day in group.days %}<li><a href="{{ filter_url | escape }}?day={{ day.key | url_encode }}" data-day-filter-option data-filter-day="{{ day.key | escape }}"><span>{{ day.label | escape }}</span><span class="archive-timeline__count">{{ day.count }}</span></a></li>{% endfor %}
|
|
12
|
+
{% for day in group.days %}<li{% if day.count == 0 %} hidden{% endif %}><a href="{{ filter_url | escape }}?day={{ day.key | url_encode }}" data-day-filter-option data-filter-day="{{ day.key | escape }}"><span>{{ day.label | escape }}</span><span class="archive-timeline__count">{{ day.count }}</span></a></li>{% endfor %}
|
|
13
13
|
{% else %}
|
|
14
|
-
{% for month in group.months %}<li><a href="{{ filter_url | escape }}?month={{ month.key | url_encode }}" data-month-filter-option data-filter-month="{{ month.key | escape }}"><span>{{ month.label | escape }}</span><span class="archive-timeline__count">{{ month.count }}</span></a></li>{% endfor %}
|
|
14
|
+
{% for month in group.months %}<li{% if month.count == 0 %} hidden{% endif %}><a href="{{ filter_url | escape }}?month={{ month.key | url_encode }}" data-month-filter-option data-filter-month="{{ month.key | escape }}"><span>{{ month.label | escape }}</span><span class="archive-timeline__count">{{ month.count }}</span></a></li>{% endfor %}
|
|
15
15
|
{% endif %}
|
|
16
16
|
</ul>
|
|
17
17
|
</section>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{% case include.icon %}
|
|
2
|
-
{% when 'email' %}<svg class="
|
|
3
|
-
{% when 'phone' %}<svg class="
|
|
4
|
-
{% when 'github' %}{% include website/github-icon.html class='
|
|
5
|
-
{% when 'linkedin' %}<svg class="
|
|
6
|
-
{% when 'x' %}<svg class="
|
|
7
|
-
{% when 'mastodon' %}<svg class="
|
|
8
|
-
{% when 'bluesky' %}<svg class="
|
|
9
|
-
{% when 'instagram' %}<svg class="
|
|
10
|
-
{% when 'youtube' %}<svg class="
|
|
11
|
-
{% when 'telegram' %}<svg class="
|
|
12
|
-
{% when 'rss' %}<svg class="
|
|
13
|
-
{% when 'website' %}<svg class="
|
|
2
|
+
{% when 'email' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="3" y="5" width="18" height="14" rx="2"></rect><path d="m3 7 9 6 9-6"></path></svg>
|
|
3
|
+
{% when 'phone' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.4 2.1L8.1 10a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.6 1.9Z"></path></svg>
|
|
4
|
+
{% when 'github' %}{% include website/github-icon.html class='site-contact__icon site-contact__icon--brand' %}
|
|
5
|
+
{% when 'linkedin' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M8 10v7M8 7v.01M12 17v-7M12 13a4 4 0 0 1 8 0v4"></path></svg>
|
|
6
|
+
{% when 'x' %}<svg class="site-contact__icon site-contact__icon--brand" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M18.24 2.25h3.31l-7.23 8.26 8.51 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23 5.45-6.23Zm-1.16 17.52h1.84L7.08 4.13H5.12l11.96 15.64Z"></path></svg>
|
|
7
|
+
{% when 'mastodon' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 17V9a4 4 0 0 1 7-2.6A4 4 0 0 1 19 9v6c0 4-3 6-7 6-2.2 0-4-.5-5.2-1.5"></path><path d="M9 15V9.5a1.5 1.5 0 0 1 3 0V15M12 9.5a1.5 1.5 0 0 1 3 0V15"></path></svg>
|
|
8
|
+
{% when 'bluesky' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 11c-1.7-3-5.8-6-7.6-4.7-1.7 1.3-.7 5.7 2 7.3 1.2.7 2.7.7 4 .2-2.1.4-4.2 1.7-3.5 3.7.8 2.4 3.9 1.3 5.1-.9 1.2 2.2 4.3 3.3 5.1.9.7-2-1.4-3.3-3.5-3.7 1.3.5 2.8.5 4-.2 2.7-1.6 3.7-6 2-7.3C17.8 5 13.7 8 12 11Z"></path></svg>
|
|
9
|
+
{% when 'instagram' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="3" y="3" width="18" height="18" rx="5"></rect><circle cx="12" cy="12" r="4"></circle><path d="M17.5 6.5h.01"></path></svg>
|
|
10
|
+
{% when 'youtube' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M21 8.2a2.8 2.8 0 0 0-2-2C17.2 5.7 12 5.7 12 5.7s-5.2 0-7 .5a2.8 2.8 0 0 0-2 2A29 29 0 0 0 2.5 12 29 29 0 0 0 3 15.8a2.8 2.8 0 0 0 2 2c1.8.5 7 .5 7 .5s5.2 0 7-.5a2.8 2.8 0 0 0 2-2 29 29 0 0 0 .5-3.8 29 29 0 0 0-.5-3.8Z"></path><path d="m10 9 5 3-5 3Z"></path></svg>
|
|
11
|
+
{% when 'telegram' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m21 4-3 16-6-4-3 3-1-5-5-2Z"></path><path d="m8 14 9-7-6 9"></path></svg>
|
|
12
|
+
{% when 'rss' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><circle cx="5" cy="19" r="1"></circle><path d="M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16"></path></svg>
|
|
13
|
+
{% when 'website' %}<svg class="site-contact__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="9"></circle><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"></path></svg>
|
|
14
14
|
{% endcase %}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{% assign ui = page.website.i18n.messages %}
|
|
2
2
|
{% if page.website.theme_data.archive %}{% include website/archive-export.html %}{% endif %}
|
|
3
3
|
{% if page.website.features.search %}
|
|
4
|
-
<dialog class="website-dialog" data-dialog="search" aria-labelledby="search-dialog-title"{% if ui.search_loading %} data-search-loading="{{ ui.search_loading | escape }}"{% endif %}{% if ui.search_prompt %} data-search-prompt="{{ ui.search_prompt | escape }}"{% endif %}{% if ui.search_unavailable %} data-search-unavailable="{{ ui.search_unavailable | escape }}"{% endif %}{% if ui.search_no_results %} data-search-no-results="{{ ui.search_no_results | escape }}"{% endif %}{% if ui.search_result_one %} data-search-result-one="{{ ui.search_result_one | escape }}"{% endif %}{% if ui.search_result_many %} data-search-result-many="{{ ui.search_result_many | escape }}"{% endif %}>
|
|
4
|
+
<dialog class="website-dialog" data-dialog="search" aria-labelledby="search-dialog-title"{% if ui.search_loading %} data-search-loading="{{ ui.search_loading | escape }}"{% endif %}{% if ui.search_prompt %} data-search-prompt="{{ ui.search_prompt | escape }}"{% endif %}{% if ui.search_retry %} data-search-retry="{{ ui.search_retry | escape }}"{% endif %}{% if ui.search_unavailable %} data-search-unavailable="{{ ui.search_unavailable | escape }}"{% endif %}{% if ui.search_no_results %} data-search-no-results="{{ ui.search_no_results | escape }}"{% endif %}{% if ui.search_result_one %} data-search-result-one="{{ ui.search_result_one | escape }}"{% endif %}{% if ui.search_result_many %} data-search-result-many="{{ ui.search_result_many | escape }}"{% endif %}>
|
|
5
5
|
<div class="website-dialog__sheet">
|
|
6
6
|
<header class="website-dialog__header">
|
|
7
7
|
<h2 class="website-dialog__title" id="search-dialog-title">{{ ui.search_title | default: 'Search this site' | escape }}</h2>
|
|
8
8
|
<button class="website-dialog__close" type="button" data-dialog-close aria-label="{{ ui.close_search | default: 'Close search' | escape }}">×</button>
|
|
9
9
|
</header>
|
|
10
10
|
<div class="website-dialog__body">
|
|
11
|
-
<label class="search-box"><span aria-hidden="true">⌕</span><span class="visually-hidden">{{ ui.search_pages | default: 'Search pages' | escape }}</span><input type="search" inputmode="search" autocomplete="off" placeholder="{{ ui.search_placeholder | default: 'Title, tag, or phrase' | escape }}" data-search-input><kbd
|
|
11
|
+
<label class="search-box"><span aria-hidden="true">⌕</span><span class="visually-hidden">{{ ui.search_pages | default: 'Search pages' | escape }}</span><input type="search" inputmode="search" autocomplete="off" placeholder="{{ ui.search_placeholder | default: 'Title, tag, or phrase' | escape }}" data-search-input autofocus><kbd>Ctrl/⌘ K</kbd></label>
|
|
12
12
|
{% if page.website.navigation.size > 0 %}
|
|
13
13
|
<nav class="search-navigation" aria-label="{{ ui.primary_navigation | default: 'Primary navigation' | escape }}" data-search-navigation>
|
|
14
14
|
<ul class="search-navigation__list">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% if page.website.features.favorites %}
|
|
2
|
-
<div data-favorites-ui data-save="{{ ui.favorite_save | default: 'Save' | escape }}" data-remove="{{ ui.favorite_remove | default: 'Remove favorite' | escape }}" data-saved="{{ ui.favorite_saved | default: 'Saved' | escape }}" data-empty="{{ ui.favorites_empty | default: 'No favorites yet. Save an entry to find it here.' | escape }}" data-error="{{ ui.favorite_storage_error | escape }}" data-damaged="{{ ui.favorite_storage_damaged | escape }}" data-unreadable="{{ ui.favorite_storage_unreadable | escape }}" data-unsupported="{{ ui.favorite_storage_unsupported | escape }}" data-quota="{{ ui.favorite_storage_quota | escape }}" data-blocked="{{ ui.favorite_storage_blocked | escape }}" data-removed="{{ ui.favorite_removed_article | escape }}" data-refresh-error="{{ ui.favorites_refresh_error | escape }}" data-undated="{{ ui.undated | default: 'Undated' | escape }}" data-recovery-restored="{{ ui.favorite_recovery_restored | escape }}" data-recovery-cleared="{{ ui.favorite_recovery_cleared | escape }}" data-recovery-required="{{ ui.favorite_recovery_required | escape }}"></div>
|
|
2
|
+
<div data-favorites-ui data-module-unavailable="{{ ui.favorites_module_unavailable | escape }}" data-save="{{ ui.favorite_save | default: 'Save' | escape }}" data-remove="{{ ui.favorite_remove | default: 'Remove favorite' | escape }}" data-saved="{{ ui.favorite_saved | default: 'Saved' | escape }}" data-empty="{{ ui.favorites_empty | default: 'No favorites yet. Save an entry to find it here.' | escape }}" data-error="{{ ui.favorite_storage_error | escape }}" data-damaged="{{ ui.favorite_storage_damaged | escape }}" data-unreadable="{{ ui.favorite_storage_unreadable | escape }}" data-unsupported="{{ ui.favorite_storage_unsupported | escape }}" data-quota="{{ ui.favorite_storage_quota | escape }}" data-blocked="{{ ui.favorite_storage_blocked | escape }}" data-removed="{{ ui.favorite_removed_article | escape }}" data-refresh-error="{{ ui.favorites_refresh_error | escape }}" data-undated="{{ ui.undated | default: 'Undated' | escape }}" data-recovery-restored="{{ ui.favorite_recovery_restored | escape }}" data-recovery-cleared="{{ ui.favorite_recovery_cleared | escape }}" data-recovery-required="{{ ui.favorite_recovery_required | escape }}"></div>
|
|
3
3
|
<p class="favorite-status" role="status" aria-live="polite" data-favorite-status></p>
|
|
4
4
|
<details class="favorites-recovery" data-favorites-recovery hidden>
|
|
5
5
|
<summary>{{ ui.favorite_recovery_title | default: 'Recovery copies' | escape }}</summary>
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
<footer class="site-footer">
|
|
2
2
|
{% assign ui = page.website.i18n.messages %}
|
|
3
|
+
{% assign footer = page.website.footer %}
|
|
3
4
|
<div class="site-footer__inner">
|
|
5
|
+
{% if footer.contacts.size > 0 or footer.links.size > 0 %}
|
|
6
|
+
<div class="site-footer__main">
|
|
7
|
+
{% if footer.contacts.size > 0 %}
|
|
8
|
+
<nav class="site-footer__section" aria-labelledby="footer-contact-title">
|
|
9
|
+
<h2 id="footer-contact-title" class="site-footer__heading">{{ ui.contact | default: 'Contact' | escape }}</h2>
|
|
10
|
+
<ul class="site-footer__contacts">
|
|
11
|
+
{% for contact in footer.contacts %}
|
|
12
|
+
<li>{% if contact.icon %}<a class="site-contact site-contact--icon" href="{{ contact.url | escape }}" rel="me" aria-label="{{ contact.label | escape }}" title="{{ contact.label | escape }}">{% include website/contact-icon.html icon=contact.icon %}</a>{% else %}<a class="site-contact site-contact--text" href="{{ contact.url | escape }}" rel="me">{{ contact.label | escape }}</a>{% endif %}</li>
|
|
13
|
+
{% endfor %}
|
|
14
|
+
</ul>
|
|
15
|
+
</nav>
|
|
16
|
+
{% endif %}
|
|
17
|
+
{% if footer.links.size > 0 %}
|
|
18
|
+
<nav class="site-footer__section" aria-labelledby="footer-sites-title">
|
|
19
|
+
<h2 id="footer-sites-title" class="site-footer__heading">{{ ui.footer_sites | default: 'Sites' | escape }}</h2>
|
|
20
|
+
<ul class="site-footer__links">
|
|
21
|
+
{% for link in footer.links %}<li><a href="{{ link.url | escape }}">{{ link.label | escape }}</a></li>{% endfor %}
|
|
22
|
+
</ul>
|
|
23
|
+
</nav>
|
|
24
|
+
{% endif %}
|
|
25
|
+
</div>
|
|
26
|
+
{% endif %}
|
|
27
|
+
<div class="site-footer__credit">
|
|
4
28
|
<span>{{ ui.built_by | default: 'Built by' | escape }}</span>
|
|
5
29
|
<a class="site-footer__github" href="https://github.com/wowfun/jekyll-obsidian" aria-label="{{ ui.project_on_github | default: 'Jekyll Obsidian on GitHub' | escape }}">
|
|
6
30
|
{% include website/github-icon.html %}
|
|
@@ -10,5 +34,6 @@
|
|
|
10
34
|
<span>MIT License</span>
|
|
11
35
|
<span aria-hidden="true">·</span>
|
|
12
36
|
<time datetime="{{ site.time | date: "%Y" }}">{{ site.time | date: "%Y" }}</time>
|
|
37
|
+
</div>
|
|
13
38
|
</div>
|
|
14
39
|
</footer>
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<div class="graph-view graph-view--compact" data-graph-view data-graph-mode="compact" data-current-note-id="{{ local_graph.current_id | escape }}"{% if ui.graph_loading %} data-graph-loading="{{ ui.graph_loading | escape }}"{% endif %}{% if ui.graph_unavailable %} data-graph-unavailable="{{ ui.graph_unavailable | escape }}"{% endif %}{% if ui.graph_summary %} data-graph-summary="{{ ui.graph_summary | escape }}"{% endif %}{% if ui.graph_node_label %} data-graph-node-label="{{ ui.graph_node_label | escape }}"{% endif %}{% if ui.graph_title %} data-graph-title="{{ ui.graph_title | escape }}"{% endif %}{% if ui.graph_description %} data-graph-description="{{ ui.graph_description | escape }}"{% endif %}>
|
|
16
16
|
<p class="graph-status" data-graph-status aria-live="polite">{{ ui.graph_loading | default: 'Loading graph…' | escape }}</p>
|
|
17
17
|
</div>
|
|
18
|
+
<p class="local-graph__hint">{{ ui.graph_zoom_hint | default: 'Ctrl/⌘ + scroll to zoom' | escape }}</p>
|
|
18
19
|
<template data-local-graph-data>
|
|
19
20
|
{% for node in local_graph.nodes %}<i data-graph-node data-node-id="{{ node.id | escape }}" data-node-title="{{ node.title | escape }}" data-node-url="{{ node.url | escape }}" data-node-degree="{{ node.degree }}"></i>{% endfor %}
|
|
20
21
|
{% for edge in local_graph.edges %}<i data-graph-edge data-edge-source="{{ edge.source | escape }}" data-edge-target="{{ edge.target | escape }}" data-edge-kind="{{ edge.kind | escape }}" data-edge-count="{{ edge.count }}"></i>{% endfor %}
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
<span class="note-meta__topics" aria-label="{{ ui.topics | default: 'Topics' | escape }}" lang="{{ page.website.i18n.locale | default: site.lang | default: 'en' | escape }}" dir="{{ page.website.i18n.dir | default: 'ltr' | escape }}">{% for topic in page.website.topic_links %}<a class="tag-chip" href="{{ blog_url | escape }}?topic={{ topic.anchor | url_encode }}" lang="{{ page.website.i18n.content_lang | default: page.website.i18n.locale | default: site.lang | default: 'en' | escape }}" dir="{{ page.website.i18n.content_dir | default: page.website.i18n.dir | default: 'ltr' | escape }}">{{ topic.name | escape }}</a>{% endfor %}</span>
|
|
24
24
|
{% endif %}
|
|
25
25
|
{% if page.website.updated %}<time datetime="{{ page.website.updated | escape }}">{{ ui.updated | default: 'Updated' | escape }} {{ page.website.updated | date: "%Y-%m-%d" }}</time>{% endif %}
|
|
26
|
+
{% if page.website.features.reading_time and page.website.directory_index != true and page.website.reading_time_minutes > 2 %}
|
|
27
|
+
{% assign reading_time_label = ui.reading_time | default: 'About {minutes} min read' | replace: '{minutes}', page.website.reading_time_minutes %}
|
|
28
|
+
<span class="note-reading-time" lang="{{ page.website.i18n.reading_time_language.lang | default: 'en' | escape }}" dir="{{ page.website.i18n.reading_time_language.dir | default: 'ltr' | escape }}">{{ reading_time_label | escape }}</span>
|
|
29
|
+
{% endif %}
|
|
26
30
|
{% if page.website.features.tags and page.website.archive_item != true %}
|
|
27
31
|
{% unless page.website.theme == 'minimal' and page.website.content_type == 'post' %}
|
|
28
32
|
{% if page.website.theme == 'minimal' %}{% assign tags_url = page.website.routes.blog %}{% unless tags_url %}{% assign tags_url = '/blog/' | relative_url %}{% endunless %}{% else %}{% assign tags_url = page.website.routes.tags %}{% unless tags_url %}{% assign tags_url = '/tags/' | relative_url %}{% endunless %}{% endif %}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{% if page.website.source_url %}<p class="archive-source-url note-source-url"><a href="{{ page.website.source_url | escape }}" rel="noopener noreferrer">{{ page.website.source_url | escape }}</a></p>{% endif %}
|
|
1
|
+
{% if page.website.source_url %}<p class="archive-source-url note-source-url"><a href="{{ page.website.source_url | escape }}" rel="noopener noreferrer">{{ page.website.source_title | default: page.website.source_url | escape }}</a></p>{% endif %}
|
|
@@ -17,11 +17,13 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
</section>
|
|
19
19
|
{% endif %}
|
|
20
|
-
{% if page.website.theme_data.contacts.size > 0 %}<nav class="minimal-contacts" aria-label="{{ ui.contact | default: 'Contact' | escape }}">{% for contact in page.website.theme_data.contacts %}{% if contact.icon %}<a class="minimal-contact minimal-contact--icon" href="{{ contact.url | escape }}" rel="me" aria-label="{{ contact.label | escape }}" title="{{ contact.label | escape }}">{% include website/contact-icon.html icon=contact.icon %}</a>{% else %}<a class="minimal-contact minimal-contact--text" href="{{ contact.url | escape }}" rel="me">{{ contact.label | escape }}</a>{% endif %}{% endfor %}</nav>{% endif %}
|
|
21
20
|
{% when 'portfolio-index' %}
|
|
22
21
|
{% include website/portfolio-grid.html index=true %}
|
|
23
22
|
{% when 'blog-index' %}
|
|
24
23
|
{% if page.website.theme_data.archive %}
|
|
24
|
+
{% if page.website.theme_data.archive.hidden_tags.size > 0 or page.website.theme_data.archive.tab_sources.size > 0 %}
|
|
25
|
+
<template data-archive-visibility-ui data-hidden-tags="{{ page.website.theme_data.archive.hidden_tags | jsonify | escape }}" data-show-topics="{{ ui.show_hidden_topics | default: 'Show hidden topics' | escape }}" data-hide-topics="{{ ui.hide_hidden_topics | default: 'Hide hidden topics' | escape }}" data-show-tags="{{ ui.show_hidden_tags | default: 'Show hidden tags' | escape }}" data-hide-tags="{{ ui.hide_hidden_tags | default: 'Hide hidden tags' | escape }}" data-include-tabs="{{ ui.include_tab_sources | default: 'Include tab sources' | escape }}" data-hide-tabs="{{ ui.hide_tab_sources | default: 'Hide tab sources' | escape }}"></template>
|
|
26
|
+
{% endif %}
|
|
25
27
|
{% unless page.website.theme_data.tab_id and page.website.has_h1 %}<h1 class="{% if page.title == site.title or page.website.theme_data.favorites or page.website.theme_data.tab_id %}visually-hidden{% else %}archive-title{% endif %}">{{ page.title | escape }}</h1>{% endunless %}
|
|
26
28
|
{% if page.website.theme_data.favorites %}
|
|
27
29
|
<div data-favorites-facets></div>
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
{% for topic in include.summaries %}<li><a href="{{ filter_url | escape }}?topic={{ topic.anchor | url_encode }}" data-topic-filter-option data-topic-anchor="{{ topic.anchor | escape }}"><span class="context-tag__name">{{ topic.name | escape }}</span><span class="context-tag__count">{{ topic.count }}</span></a></li>{% endfor %}
|
|
9
9
|
</ul>
|
|
10
10
|
</nav>
|
|
11
|
-
<p class="filter-empty" data-filter-empty hidden>{{ ui.no_matching_entries | default: 'No entries match these filters.' | escape }}</p>
|
|
11
|
+
<p class="filter-empty" data-filter-empty role="status" data-module-unavailable="{{ ui.archive_module_unavailable | escape }}" hidden>{{ ui.no_matching_entries | default: 'No entries match these filters.' | escape }}</p>
|
|
12
12
|
{% endif %}
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
<body class="theme-docs">
|
|
5
5
|
{% assign ui = page.website.i18n.messages %}
|
|
6
6
|
<a class="skip-link" href="#main-content">{{ ui.skip_to_content | default: 'Skip to content' | escape }}</a>
|
|
7
|
+
{% include website/back-to-top.html %}
|
|
7
8
|
{% include website/header.html theme='docs' %}
|
|
8
9
|
<div class="docs-shell">
|
|
9
10
|
<aside class="docs-sidebar"><nav class="docs-tree" aria-label="{{ ui.documentation | default: 'Documentation' | escape }}" data-docs-navigation>{% include website/docs-tree.html nodes=page.website.theme_data.docs_tree %}</nav></aside>
|
|
10
|
-
<main class="docs-main" id="main-content" data-docs-main>
|
|
11
|
+
<main class="docs-main" id="main-content" tabindex="-1" data-docs-main>
|
|
11
12
|
<article class="docs-article{% if page.website.cssclasses %} {{ page.website.cssclasses | join: ' ' }}{% endif %}">{% if page.website.i18n.fallback %}<aside class="translation-fallback" role="status">{{ ui.translation_missing | default: 'This page is not translated yet. The default-language version is shown.' | escape }}</aside>{% endif %}{% unless page.website.has_h1 %}{% include website/page-actions.html %}{% endunless %}{% include website/note-header.html %}{% include website/note-source.html %}{% include website/note-properties.html %}{% if page.website.has_h1 %}{% include website/page-actions.html %}{% endif %}<div class="note-content" lang="{{ page.website.i18n.content_lang | default: page.website.i18n.locale | default: site.lang | default: 'en' | escape }}" dir="{{ page.website.i18n.content_dir | default: page.website.i18n.dir | default: 'ltr' | escape }}" data-copy-code-label="{{ ui.copy_code | default: 'Copy code' | escape }}" data-copy-diagram-label="{{ ui.copy_diagram_source | default: 'Copy diagram source' | escape }}" data-expand-diagram-label="{{ ui.expand_diagram | default: 'Expand diagram' | escape }}" data-close-diagram-label="{{ ui.close_diagram | default: 'Close diagram' | escape }}" data-image-label="{{ ui.image | default: 'Image' | escape }}" data-expand-image-label="{{ ui.expand_image | default: 'Expand image' | escape }}" data-close-image-label="{{ ui.close_image | default: 'Close image' | escape }}" data-copy-formula-label="{{ ui.copy_formula_source | default: 'Copy formula source' | escape }}" data-copy-code-success="{{ ui.copied | default: 'Copied' | escape }}" data-copy-code-error="{{ ui.copy_code_failed | default: 'Copy failed' | escape }}">{% if page.website.kind == 'note' %}{{ content }}{% else %}{% include website/system-page.html %}{% endif %}</div>{% if page.website.kind == 'note' and page.website.theme_data.tab_id %}{% include website/tab-collection.html %}{% endif %}{% include website/source-actions.html %}{% include website/related-articles.html %}{% include website/comments.html %}</article>
|
|
12
13
|
{% include website/docs-navigation.html %}
|
|
13
14
|
</main>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{% if page.website.kind == 'home' and page.website.id %}{% assign is_authored_home = true %}{% endif %}
|
|
10
10
|
{% assign has_home_modules = false %}
|
|
11
11
|
{% if is_authored_home %}
|
|
12
|
-
{% if page.website.theme_data.recent_posts.size > 0
|
|
12
|
+
{% if page.website.theme_data.recent_posts.size > 0 %}{% assign has_home_modules = true %}{% endif %}
|
|
13
13
|
{% endif %}
|
|
14
14
|
{% assign has_mobile_context = false %}
|
|
15
15
|
{% if page.website.kind == 'home' %}
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
{% endif %}
|
|
22
22
|
|
|
23
23
|
<a class="skip-link" href="#main-content">{{ ui.skip_to_content | default: 'Skip to content' | escape }}</a>
|
|
24
|
+
{% include website/back-to-top.html %}
|
|
24
25
|
{% include website/header.html theme='minimal' %}
|
|
25
26
|
{% include website/favorites-ui.html %}
|
|
26
27
|
|
|
27
|
-
<main class="minimal-shell{% if page.website.archive_item %} minimal-shell--archive-item{% endif %}{% unless page.website.kind == 'note' %} minimal-shell--system{% endunless %}{% if is_authored_home %} minimal-shell--authored-home{% endif %}{% if is_docs_page %} minimal-shell--docs{% endif %}{% if page.website.kind == 'blog-index' %} minimal-shell--blog{% endif %}" id="main-content"{% if page.website.kind == 'blog-index' %} data-ledger-current-year="{{ page.website.theme_data.ledger_current_year }}"{% endif %}{% if page.website.kind == 'blog-index' %} data-ledger-group-by="{{ page.website.theme_data.ledger_group_by | default: 'year' | escape }}"{% endif %}{% if page.website.theme_data.favorites %} data-favorites-page data-sources-label="{{ ui.sources | escape }}" data-topics-label="{{ ui.topics | escape }}" data-all-label="{{ ui.all | escape }}"{% endif %}{% if page.website.kind == 'blog-index' %} data-filter-page{% if page.website.theme_data.archive %} data-paged-archive data-archive-url="{{ page.website.theme_data.archive.url | escape }}" data-archive-current-url="{{ page.website.theme_data.archive.current_url | escape }}" data-observed-label="{{ ui.first_observed | default: 'First observed' | escape }}"{% endif %}{% endif %}>
|
|
28
|
+
<main class="minimal-shell{% if page.website.archive_item %} minimal-shell--archive-item{% endif %}{% unless page.website.kind == 'note' %} minimal-shell--system{% endunless %}{% if is_authored_home %} minimal-shell--authored-home{% endif %}{% if is_docs_page %} minimal-shell--docs{% endif %}{% if page.website.kind == 'blog-index' %} minimal-shell--blog{% endif %}" id="main-content" tabindex="-1"{% if page.website.kind == 'blog-index' %} data-ledger-current-year="{{ page.website.theme_data.ledger_current_year }}"{% endif %}{% if page.website.kind == 'blog-index' %} data-ledger-group-by="{{ page.website.theme_data.ledger_group_by | default: 'year' | escape }}"{% endif %}{% if page.website.theme_data.favorites %} data-favorites-page data-sources-label="{{ ui.sources | escape }}" data-topics-label="{{ ui.topics | escape }}" data-all-label="{{ ui.all | escape }}"{% endif %}{% if page.website.kind == 'blog-index' %} data-filter-page data-module-unavailable="{{ ui.archive_module_unavailable | escape }}"{% if page.website.theme_data.archive %} data-paged-archive data-archive-url="{{ page.website.theme_data.archive.url | escape }}" data-archive-current-url="{{ page.website.theme_data.archive.current_url | escape }}" data-observed-label="{{ ui.first_observed | default: 'First observed' | escape }}"{% endif %}{% endif %}>
|
|
28
29
|
{% if is_docs_page %}
|
|
29
30
|
<aside class="minimal-docs-sidebar">
|
|
30
31
|
<nav class="docs-tree" aria-label="{{ ui.documentation | default: 'Documentation' | escape }}" data-docs-navigation>
|