Commit Graph

908 Commits

Author SHA1 Message Date
ErdemOzgen
2b608fcbc1 Refactor code to improve performance and readability 2024-01-08 16:21:53 +03:00
ErdemOzgen
45c2644348 Refactor code to improve performance and readability 2024-01-08 15:35:18 +03:00
ErdemOzgen
a9b6e8cc08 Add tests for Hello function in Go 2024-01-07 23:03:47 +03:00
ErdemOzgen
c80332db81 Update link to full section on concurrency 2024-01-07 14:19:29 +03:00
ErdemOzgen
c885443bbb Refactor code for iadd golang 2024-01-07 06:45:13 +03:00
ErdemOzgen
2ffd42029b Add blog link for data engineering and golang section 2024-01-07 02:04:15 +03:00
Erdem Özgen
bf1dd9c7cc
Merge branch 'jackyzha0:v4' into v4 2024-01-06 21:47:57 +03:00
Jacky Zhao
5ccc48a172 style: div -> li for explorer 2024-01-04 11:05:05 -08:00
Nate Silva
707124cbd6
fix: allow publish property to be a string (ExplicitPublish) (#667)
* fix: allow publish property to be a string (ExplicitPublish)

Previously, the ExplicitPublish filter would publish if the `publish`
property was truthy.

The filter expects the `publish` property to be a boolean:

```
---
publish: true
---
```

However, Obsidian only shows the above if you are viewing a page in
“Source” mode.

If you are not in Source view, and you choose Three Dots Menu (...),
“Add file property”, you will get a string, not a boolean. It seems
likely that many users will do this and get:

```
publish: "true"
```

Notice that `"true"` is a string, not the boolean value `true`. If the
user changes this to `"false"`, the page will still be published:

```
publish: "false"
```

That is because the string value `"false"` is truthy.

This PR does the following:

- Allows the `publish` property to be either a boolean or a string.
- If it’s a string, it’s considered `true` if the string is `"true"`
  (not case-sensitive; it will also work if it is `"True"`, `"TRUE"`,
  etc.)
- Guarantees that the returned value from `shouldPublish` is a `boolean`
  -- previously it could be any truthy value even though it was cast to
  `boolean`

* style: use double-quotes everywhere

* style: format according to project style guide
2024-01-02 15:19:19 -08:00
jeff
88194ac348
feat: allow embedding youtube videos with the obsidian markdown syntax (#665)
* Add option to allow embedding YouTube videos with Obsidian Markdown syntax

* Update Obsidian compatability doc page

* Switch to converting YT links as an html plugin
2024-01-02 10:49:14 -08:00
Olivér Falvai
65d75b8bdc
feat: support modification date reading from parent git repo (#661)
* feat: support modification date reading from parent git repo

* Print warning

* Fix formatting

* Update quartz/plugins/transformers/lastmod.ts

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

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-01-02 09:23:28 -08:00
Mats Fangohr
6e34844114
feat: embed webp images (#666) 2024-01-02 08:03:05 -08:00
ErdemOzgen
b6c177edb3 Add Django Cookicutter 2024-01-02 10:21:00 +03:00
ErdemOzgen
7378f53252 Add instructions for using Pyenv and Conda separately 2024-01-02 05:21:43 +03:00
ErdemOzgen
44d5f0ee2e Delete screenshot file add poetry and django 2024-01-02 05:08:18 +03:00
Erdem Özgen
cde7c3dc56
Merge branch 'jackyzha0:v4' into v4 2024-01-02 04:11:11 +03:00
Jacky Zhao
b33f13ccaf fix: dont show last page if folder 2024-01-01 14:20:34 -08:00
Jimmy He
002bbc37b1
fix: Continue setup even if a file to delete is not found (#663)
* Continue setup even if a file to delete is not found

For various reasons, `.gitkeep` may be deleted already.

(In my case, even though I followed the [Getting Started](https://quartz.jzhao.xyz) instructions exactly, my first run resulted in an `fatal: 'upstream' does not appear to be a git repository`)

If we try to delete `.gitkeep` again and don't ignore `ENOENT`, then the whole setup fails.

* Use fs.existsSync
2024-01-01 14:14:37 -08:00
Jacky Zhao
e603d7396b fix: parse emoji tags in body (closes #659) 2024-01-01 08:58:25 -08:00
Jacky Zhao
40cfccdc77 style: relative back on pre 2023-12-28 15:07:59 -08:00
Jacky Zhao
e758cbe1ee pkg: bump version to 4.1.4 2023-12-28 14:00:15 -08:00
Jacky Zhao
4b6c7aeffe feat: lazyLoading specifier in link transformer 2023-12-28 13:56:20 -08:00
Jacky Zhao
e277ed5c30 fix: use joinSegment instead of joining via slash in sitemap (closes #658) 2023-12-28 08:54:09 -08:00
Olivér Falvai
68f53352e7
feat: Self-hosted Plausible support (#656)
* Self-hosted Plausible support

* Remove leftover import
2023-12-28 08:49:35 -08:00
Jacky Zhao
359484c139 fix: more robust tags parsing 2023-12-28 08:48:14 -08:00
Jacky Zhao
dafc9f318e
feat: minify js scripts (closes #655) (#657) 2023-12-28 08:02:04 -08:00
Sidney
e1b6a0014c
docs: add explorer example for advanced sortFn (#564)
* Added doc example to explorer sortFn

* Prettier fixed formatting

* Let Prettier fix the formatting of the entire markdown file

* Updated example

* Added extra commentary and fixed example

* Update docs/features/explorer.md

* doc fixes

* docs: remove leftover TODO

* docs: move example to `advanced`

---------

Co-authored-by: Sidney <85735034+Epicrex@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
Co-authored-by: Ben Schlegel <ben5.schlegel@gmail.com>
2023-12-28 12:04:15 +01:00
Hydrophobefireman
233d4b2f2c
fix: fix invalid html output (#642)
* fix: fix invalid html output

* fix: HTML structure w/ nested <li>
2023-12-28 11:20:07 +01:00
Jacky Zhao
504b447162
fix: use slugs instead of title as basis for explorer (#652)
* use slugs instead of title as basis for explorer

* fix folder persist state, better default behaviour

* use relative path instead of full path as full path is affected by -d

* dont use title in breadcrumb if it's just index lol
2023-12-27 16:44:14 -08:00
ErdemOzgen
e1eb3004a8 Add pagination and authentication functionality 2023-12-26 15:17:13 +03:00
ErdemOzgen
c383e0bade Add explanation of reverse function in Django and unique_for_date parameter in models 2023-12-26 10:35:10 +03:00
ErdemOzgen
3ad6b0452e Add templates for Django views 2023-12-26 10:03:36 +03:00
ErdemOzgen
c666a88ff2 Add views, URLs, and main application code for blog post functionality 2023-12-26 09:55:51 +03:00
ErdemOzgen
25042a5dc7 Add user model and custom manager to Django.md 2023-12-26 09:49:19 +03:00
ErdemOzgen
a802be6d4a Add database index and activate application 2023-12-26 09:25:07 +03:00
ErdemOzgen
219df6174c Add Post model and Meta class to Django.md 2023-12-26 08:59:56 +03:00
ErdemOzgen
644694885e Fix bug in login functionality
Update error handling in API calls

Refactor code for better performance

Add new feature for user authentication

Update UI layout for better user experience
2023-12-26 08:52:01 +03:00
ErdemOzgen
d7b06e4e00 Add Django Meta Class documentation 2023-12-22 13:23:05 +03:00
ErdemOzgen
899c136ff2 Add Django migration and settings documentation 2023-12-22 11:37:08 +03:00
ErdemOzgen
dd0c8e39ca Refactor variable names for clarity 2023-12-22 11:09:52 +03:00
Jacky Zhao
63bf1e14b5 style: remove relative from base pre 2023-12-20 19:55:28 -08:00
migueltorrescosta
be76da9e95
docs: Add CollapsedWave to showcase.md (#643)
Thank you so much for a beautiful setup
2023-12-20 12:09:48 -08:00
Jacky Zhao
8fe37cc5e5 docs: update issue template 2023-12-20 10:05:00 -08:00
Jacky Zhao
2e9896c893 fix: deep clone before relativizing urls in transclude (closes #640) 2023-12-20 09:52:17 -08:00
ErdemOzgen
3b088f403c Update user authentication logic 2023-12-20 15:53:11 +03:00
ErdemOzgen
ade5de01c9 Remove AI&DATA, Article&Books, and Cloud directories 2023-12-20 09:46:46 +03:00
ErdemOzgen
c13df2efc7 Add Lockheed Martin tag to Software Factory article 2023-12-20 09:42:40 +03:00
Erdem Özgen
1d49bb1086
change urls 2023-12-20 09:36:20 +03:00
Erdem Özgen
1084d51f21
Merge branch 'jackyzha0:v4' into v4 2023-12-20 09:08:28 +03:00
ErdemOzgen
b4547facce Update AI&DATA and Devops&DevSecOps indexes 2023-12-20 08:49:45 +03:00