Commit Graph

744 Commits

Author SHA1 Message Date
Jacky Zhao
15252a88bd fix: comments on spa should work (closes #1296) (#1298)
* fix comments on spa

* fix giscus
2024-07-30 01:13:13 -07:00
Jacky Zhao
57d8b9588e feat: comments (giscus) 2024-07-20 23:05:45 -07:00
Jacky Zhao
9e85c451bf i18n: disambiguate en-us and en-gb 2024-07-20 20:24:17 -07:00
Emile Bangma
4623d0040d fix(translusion): block reference not being recognized. (#1274) 2024-07-14 03:06:52 -07:00
Jacky Zhao
d2e7a4f01e feat(layout): add afterBody 2024-07-09 19:09:31 -07:00
Jacky Zhao
f6c1619135 docs + chore: cleanup custom sort ordering for folder + tag listings, add docs 2024-07-09 17:55:19 -07:00
Cao Mingjun
4c7d7dc838 feat: Allow custom sorting of FolderPage and TagPage (#1250) 2024-07-09 17:42:33 -07:00
Alex Nordstrom
98780db3e1 feat: add alias/metadata to transclude tag (#1229) 2024-07-09 17:26:32 -07:00
Peter
eb844b6dbe feat(style): Add textHighlight theme setting (#1242)
* Add textHighlight theme setting

* update docs to include textHighlight

* Remove errant `S`
2024-07-09 17:21:00 -07:00
Jacky Zhao
62955b5994 chore: use regex flag instead of string in regexp ctor 2024-07-09 17:20:13 -07:00
Cao Mingjun
6fecfd8a8e Fix Non-English Anchor Popover Positioning Issue and Update Type Hint (#1252)
- [Major] Changed `hash` passed to `querySelector` to `decodeURIComponent(hash)` to fix the issue where non-English anchors were not correctly positioning the popover content to the corresponding title.
- [Minor] Updated the type hint from `HTMLLinkElement` to `HTMLAnchorElement` as the passed element is an `<a>` element, not a `<link>` element (reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement).
2024-07-08 13:34:43 -07:00
MassiveJuice
47c5f8c588 Fix: Table overflow-wrap: anywhere breaks words on mobile (#1259)
Closes #1258
2024-07-05 09:25:29 -07:00
Illia Pyshniak
cba4a77804 i18n: Update uk-UA.ts (#1245)
Update the Ukrainian translation of Quartz according to the latest Ukrainian translation of Obsidian.
2024-06-30 21:11:21 -07:00
L01D
f31808901a i18n: Improving Spanish & adding Catalan and British English (#1240)
* Create en-GB

* Rename en-GB to en-GB.ts

* Update es-ES.ts

* Update es-ES.ts

* Create ca-ES.ts

* Update es-ES.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update es-ES.ts
2024-06-30 21:03:45 -07:00
Seohyun Kim
5dec6a06a3 fix: "draft" true or false in frontmatter still removes from publishing #1244 (#1249)
* fix: draft bug #1244

* update: contents in folder before creating PR

* Update draft.ts
2024-06-30 20:59:08 -07:00
John Bowdre
c2ec8cc5f5 feat(analytics): Cabin analytics support (#1221)
* add cabin analytics

* fix formatting
2024-06-18 13:38:45 -07:00
Jacky Zhao
b52d296481 css: use fit-content (closes #1194) 2024-06-17 22:13:31 -07:00
Jacky Zhao
91782b5709 fix: properly compute relative path for explorer (closes #1055, #1066) 2024-06-17 21:43:32 -07:00
Jacky Zhao
3f952a930f fix: overflow fade for good (closes #1218) 2024-06-17 21:33:53 -07:00
Paul Trotter
75362c6ad2 Check link isExternal before adding target="_blank" (#1211)
Fixes #1186 openLinksInNewTab opens ALL links in new tabs. Fixed to reflect documented behavior here: https://quartz.jzhao.xyz/plugins/CrawlLinks
2024-06-16 22:33:28 -07:00
Emile Bangma
ad07a167f3 fix(wikilinks): pdf page linking (#1207) 2024-06-14 09:17:46 -07:00
Emile Bangma
78dec5af34 .callout-content support (#1188)
* .callout-content support

* Use BlockContent | FootnoteContent for callout body

* Update quartz/plugins/transformers/ofm.ts

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>

* Refactor

* Combine child selectors

* Fix multiple callout members

* Empty check

* Replace splice

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-06-13 16:02:00 -07:00
Callum Barker
71d3a76835 fix: fix explorer view gradient positioning on mobile (fixes #906) (#1206) 2024-06-13 12:47:22 -07:00
Leo Lazou
747707955a homepage coloured as visited in the Graph (#1128)
simplifies slug from FullSlug to SimpleSlug before storing it in the visited pages list in memory
this leads to "index" page and "folder/index", "tags/tag/index" being stored a "/", "folder/" and "tags/tag/" respectively in the list of visited pages.
this ensures that the homepage is rightfully coloured as a visited page in the "color" function of the graph
2024-06-12 09:39:49 -07:00
Leo Lazou
be028a7c23 idea: Tags appear as hollow circles on the graph (#1129)
* Tags appear as hollow circles on the graph

Added a few lines to make tags appear as hollow circles on the graph, as opposed to pages which are plain circles, for better visual separation.

* Applied Prettier code style
2024-05-30 10:42:22 -07:00
Dinu Blanovschi
ceb80aeeb2 feat(graph): obsidianLikeFocusOnHover (#1017)
* feat(graph): obsidianLikeFocusOnHover

* fix: prettier

* fix: remove option from config

* fix: for when opacityOld < 0.2

* fix: prettier
2024-05-29 12:53:23 -07:00
Alex Nordstrom
7d8ae9b3f0 fix: change callout metadata regex to include non-letter characters (#1174)
* fix: change callout metadata regex to include non-letter characters

* fix: make metadata regex non-greedy

This allows for users to have callouts such as
> [!NOTE|left foo-bar 123] a ]+ title with square brackets [s] a
> Contents
2024-05-29 12:48:39 -07:00
Alex Nordstrom
d10516d36a feat: add callout metadata parsing (#1172) 2024-05-28 15:23:28 -07:00
James Bennion-Pedley
4e6282c78b feat(i18n): homepage link for 404 pages (#1117)
* Add homepage link with internationalization

* Construct pathname from baseUrl config value

* More robust URL manipulation

* Add Farsi (#1133)

* Fix bad rebase
2024-05-22 16:44:54 -04:00
Yohann Bacha
0f61cbce37 feat: ability to hide tags in the recent notes component (#1147)
* feat: ability to hide tags in the recent notes component

* docs: recent notes custom parameters in a table

* docs: revert recent notes doc to bullet points

* fix: linter issues

* Update docs/features/recent notes.md

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-05-21 09:50:58 -07:00
Bartłomiej Garbiec
cf634901be i18n: add Polish translation (#1148)
* Create pl-PL.ts

* add pl-PL to index.ts

* import pl-PL in index.ts
2024-05-20 12:36:32 -07:00
Eledah
7f4c9c5538 feat(i18n): add Farsi (#1133)
* Add fa-IR translation via upload

* Add files via upload

* Ran npm run format
2024-05-13 09:12:06 -07:00
John Bowdre
224aac6655 feat(analytics): Tinylytics support (#1118)
* add tinylytics support

* fix formatting

* add trailing semicolon for consistency
2024-05-06 09:30:21 -07:00
Lucas-BRT
3e9319d50b fix: unnecessery 'm' letter removed in pt-BR (#1100) 2024-04-16 18:02:59 -07:00
kwyuan
34bdc76228 feat(analytics): PostHog support (#1072) 2024-04-08 18:43:09 -07:00
Emile Bangma
4d6c78597b fix(wikilinks): proper escaping of pipe character in wikilinks inside tables (#1040) 2024-03-31 09:44:50 -07:00
Hydrophobefireman
ea0e31ff44 fix: do not render <p> inside FolderContent article (#1044)
it can lead to nested <p>'s which is actually [invalid html](https://www.w3.org/TR/html401/struct/text.html#h-9.3.1:~:text=The%20P%20element%20represents%20a%20paragraph.%20It%20cannot%20contain%20block%2Dlevel%20elements%20(including%20P%20itself).)
2024-03-31 09:44:20 -07:00
Emile Bangma
96eecb3bf2 fix(assets): pdf page linking support. (#1025)
* github-slugger pdf workaround

* Skip sluggifying on pdf file extension

* Account for pdf files without anchor

* Address feedback
2024-03-24 16:23:25 -07:00
Jacky Zhao
e4fbd50c4f simpler katex fix 2024-03-24 15:50:38 -07:00
Emile Bangma
2217159a10 fix(style): LaTex/KaTeX overflow (#1027)
* LaTex/KaTeX overflow fix

* prettier

* Add !important modifier

* Added overflow-x override

* Refactor without !important

* Refactor scss notation

* Formatting scss
2024-03-24 15:43:36 -07:00
Jorge Marcelo Risco
c89c45b316 i18n: pt-BR translation (#1024)
* i18n: pt-br

* i18n: pt-br translation

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-03-24 09:40:01 -07:00
Kun-Szabó Kristóf
279f7abd58 i18n: add Hungarian translations (#1023)
* add Hungarian translations

* typo: _ instead of - in hu-HU

* run prettier

* revert prettier messing up tsconfig

* Update hu-HU.ts
2024-03-24 09:35:07 -07:00
Emile Bangma
acf11158ca fix(wikilinks): handle wikilinks inside tables seperately from other wikilinks (#1005)
* fix(wikilinks): handle wikilinks inside tables seperately from other wikilinks

* Prettier

* Cleaned up duplicate code

* Remove test logging

* Refactored and fixed for non-aliased wikilinks inside table

* Updated naming and comments

* Updated comment of wikilink regex

* Updated regex to match previous formatting

* Match table even if EOF is immediately after the table.

* Update quartz/plugins/transformers/ofm.ts

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>

* Change table escape replace to non-regex version

* Prettier

* Prettier

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-03-17 18:16:04 -07:00
Jacky Zhao
92bd65f382 fix: format 2024-03-17 18:15:42 -07:00
Jacky Zhao
e076623c5f feat: support rich descriptions in tag listing page (closes #908) 2024-03-17 18:00:04 -07:00
makondratev
eb0dad31cd feat(search): add search by title/content index and tag at the same time (#978)
* feat(search): add search by title/content index and tag at the same time

* fix(search): set search type to basic and remove tag from term for proper highlightning and scroll when searched by tag and title/content index

* fix(search): use indexOf to find space so it is easier to read

* fix(search): trim trailing whitespaces before splitting

* fix(search): set limit to 10000 for combined search mode (to make filter by tag more accurate)
2024-03-17 17:48:00 -07:00
Emile Bangma
2d85c4e2ad fix(wikilinks): only escape alias in wikilinks inside tables (#1000) 2024-03-16 09:23:08 -04:00
Aaron Pham
f4fd21a307 chore(ofm): remove unused (#999)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-03-15 18:17:42 -07:00
Mara-Li
0f18b96820 feat(i18n): Add French translation for reading time (#998)
Signed-off-by: Mara-Li <lili.simonetti@outlook.fr>
2024-03-15 18:28:31 -04:00
catcodeme
82a99aba99 fix: wikiLink in table (#993)
* fix: wikiLink in table

- update regexp to make '\' to group in alias
- handle alias using block_id

* style: format with prettier

* style: add comment for block_ref(without alias) in table

---------

Co-authored-by: hulinjiang <hulinjiang@58.com>
2024-03-14 23:25:01 -07:00