91 Commits

Author SHA1 Message Date
Maxime Vaillancourt
77733c1118
Merge pull request #66 from maximevaillancourt/embed-tweets
Allow embedding tweets
2021-06-16 23:50:43 -04:00
Maxime Vaillancourt
97232001be Allow embedding tweets 2021-06-16 23:42:19 -04:00
Maxime Vaillancourt
ad94b736b1
Merge pull request #64 from manunamz/patch-2
Update bidirectional_links_generator.rb
2021-06-16 23:34:09 -04:00
manunamz
8b2dba86ab
Merge branch 'master' into patch-2 2021-06-14 15:27:53 -04:00
Maxime Vaillancourt
f4d4be2b60
Merge pull request #63 from manunamz/patch-1
gsub -> gsub!
2021-06-13 17:48:42 -04:00
manunamz
bf7e92f9d3
Update bidirectional_links_generator.rb
Make 'invalid_wiki_link' regex less greedy.
2021-06-11 20:55:28 -04:00
manunamz
8514601d06
gsub -> gsub!
In case you were exerting a coding style opinion, feel free to ignore this pull request.

The following are equivalent, as far as I understand, so some chars can be deleted 🙂:

`current_note.content = current_note.content.gsub()` == `current_note.content.gsub!()`
2021-06-11 20:51:41 -04:00
Maxime Vaillancourt
c421400ae9 Revert "Stop replacing dashes in link generator"
This reverts commit 8544fd4f36d4d46290b3090c68fb39df87393e00.
2021-05-31 08:13:32 -04:00
Maxime Vaillancourt
8544fd4f36 Stop replacing dashes in link generator 2021-05-31 07:58:55 -04:00
Maxime Vaillancourt
690f3bbd2a
Merge pull request #60 from meewgumi/patch-1
pre codeblock horizontal scroll
2021-05-31 11:36:02 +00:00
meewgumi
55ef676d7d
pre codeblock horizontal scroll
This allows divs containing preformatted codeblocks to scroll horizontally. For an example of the non-scrolling current behavior, look at the shell script on [this note page](https://digital-garden-jekyll-template.netlify.app/your-first-note) with browser <1100px. The div containing a preformatted block is not resizing with the grid, which is preventing the backlinks box from being visible. This is also a problem on mobile devices, since horizontal scrolling of the body is not allowed.

This fix, `display: grid`, allows the div.highlight element to resize along with the grid container, fixing both the responsive backlink box issue and horizontal scrolling of the codeblock for browser widths <600px.
2021-05-30 05:10:24 +00:00
Maxime Vaillancourt
a426b66f5a
Merge pull request #59 from maximevaillancourt/dependabot/bundler/nokogiri-1.11.4
Bump nokogiri from 1.11.1 to 1.11.4
2021-05-21 21:05:09 +00:00
dependabot[bot]
8a109bf05e
Bump nokogiri from 1.11.1 to 1.11.4
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.1 to 1.11.4.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.1...v1.11.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-20 23:54:46 +00:00
Maxime Vaillancourt
fa209ea120
Merge pull request #57 from maximevaillancourt/dependabot/bundler/rexml-3.2.5
Bump rexml from 3.2.4 to 3.2.5
2021-05-01 00:46:33 +00:00
dependabot[bot]
a2d2899ad5
Bump rexml from 3.2.4 to 3.2.5
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.4...v3.2.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 20:38:43 +00:00
Maxime Vaillancourt
e6e2ea2932 Remove unnecessary call 2021-04-03 17:49:30 -04:00
Maxime Vaillancourt
bcfe2d2de5 Update kramdown 2021-03-29 19:05:30 -04:00
Maxime Vaillancourt
f75dff52f5
Merge pull request #55 from maximevaillancourt/remove-anchor-duplication
Remove duplication in bidirectional links generator
2021-03-15 00:40:11 +00:00
Maxime Vaillancourt
c1ba4ec61f Remove duplication in bidirectional links generator 2021-03-14 20:37:47 -04:00
Maxime Vaillancourt
264ba2bda1
Merge pull request #54 from maximevaillancourt/skip-non-pages
Skip non-pages for external links detection
2021-03-15 00:37:11 +00:00
Maxime Vaillancourt
9487676bd8 Skip non-pages for external links detection 2021-03-14 20:34:44 -04:00
Maxime Vaillancourt
fb1ec4a2dc
Merge pull request #53 from maggiedelano/fix-footnotes
Treat footnotes as internal links
2021-03-15 00:30:14 +00:00
Maggie Delano
561462d17f Add example of using footnote to your-first-note.md. 2021-03-14 11:57:59 -04:00
Maggie Delano
8e6ef533c6 Fix footnote and reversefootnote links from being treated as external links 2021-03-14 00:05:17 -05:00
Maxime Vaillancourt
6ab7bae8a1
Merge pull request #52 from maximevaillancourt/option-open-external-links-in-new-tab
Add option to open external links in new tab
2021-03-02 20:26:41 -05:00
Maxime Vaillancourt
606ed76189 Add option to open external links in new tab 2021-03-02 20:25:28 -05:00
Maxime Vaillancourt
ac70b2f668
Merge pull request #46 from Am3ra/patch-1
Update generator to include baseurl.
2021-02-08 17:28:52 -05:00
Alan M
9cf05a68e0
Apply suggestions from code review
Add spaces around `site.baseurl`, and add empty string to config

Co-authored-by: Maxime Vaillancourt <mv@maximevaillancourt.com>
2021-02-08 15:32:45 -06:00
am3ra
09ba4def4f fix baseurl to correct value 2021-02-05 01:31:34 -06:00
am3ra
b84c65fda8 add baseurl to more internal links in layouts 2021-02-05 01:23:41 -06:00
Alan M
d22fcbef35
Update generator to include baseurl.
One of the breaking errors that I fixed in my install of this great repo was that all links generated by the ruby script didn't take into account the baseurl specified in the config file.

This ruby file corrects the error, although in the paths it might add one '/' too many. This hasn't caused me any issues, but should be considered.
2021-01-31 01:38:24 -06:00
Maxime Vaillancourt
9232ce3ded Add config to toggle html extension in links 2021-01-26 08:32:07 -05:00
Maxime Vaillancourt
5d190b6a97 Add section about code syntax highlighting 2021-01-25 22:14:05 -05:00
Maxime Vaillancourt
73ba1d475a
Merge pull request #44 from stefanlesser/fix-modified
Skip unnecessary rewrites of notes in `empty_front_matter_note_injector.rb`
2021-01-16 14:39:08 -05:00
Stefan Lesser
9c6b55cfff Fixed issue with plugin that touched all original notes and updated their modified date unnecessarily. 2021-01-16 18:23:08 +00:00
Maxime Vaillancourt
af673fd9e7 Add support for Ruby 3.0.0 2020-12-30 13:44:53 -05:00
Maxime Vaillancourt
406a7accd4
Link to self on GitHub 2020-12-08 02:51:59 +00:00
Maxime Vaillancourt
7aea426c64 Fix whitespace in plugin 2020-12-07 21:40:56 -05:00
Maxime Vaillancourt
1abe938cd3
Merge pull request #38 from maximevaillancourt/optional-label
Add support for optional label in double-bracket links
2020-12-08 02:38:13 +00:00
Maxime Vaillancourt
664fd3d7fb Add support for optional label in double-bracket links 2020-12-07 21:36:18 -05:00
Maxime Vaillancourt
3442af57f0
Merge pull request #37 from maximevaillancourt/updated-at-git-submodule
Use correct updated_at timestamp for files in Git submodule
2020-12-08 01:54:13 +00:00
Maxime Vaillancourt
da22a80e6e Use correct updated_at timestamp for files in Git submodule 2020-12-07 20:52:55 -05:00
Maxime Vaillancourt
becf9f381c
Merge pull request #29 from maximevaillancourt/create-netlify-toml
Create netlify.toml
2020-11-24 18:12:24 -05:00
Maxime Vaillancourt
2f318d7d8a
Create netlify.toml 2020-11-24 23:11:10 +00:00
Maxime Vaillancourt
17aac4a834 Move image near the bottom 2020-11-22 13:57:13 -05:00
Maxime Vaillancourt
82995de746 Use note slug instead of raw filename in permalinks 2020-11-22 13:03:28 -05:00
Maxime Vaillancourt
b4c05c2465 Improve first note 2020-11-22 13:03:28 -05:00
Maxime Vaillancourt
f160448e55 Add note with whitespace in filename 2020-11-22 13:03:28 -05:00
Maxime Vaillancourt
cfff3b3737 Ensure all notes have front matter 2020-11-22 13:03:28 -05:00
Maxime Vaillancourt
1d4f39b502 Use original note link casing 2020-11-22 13:03:28 -05:00