Duplicate note title to prevent in-place modification
Fixes https://github.com/maximevaillancourt/digital-garden-jekyll-template/issues/21
This commit is contained in:
		
							parent
							
								
									51ac8b2390
								
							
						
					
					
						commit
						8538d12445
					
				| @ -66,7 +66,11 @@ class BidirectionalLinksGenerator < Jekyll::Generator | |||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def note_id_from_note(note) |   def note_id_from_note(note) | ||||||
|     note.data['title'].gsub!(/\W+/, ' ') |     note.data['title'] | ||||||
|     note.data['title'].delete(' ').to_i(36).to_s |       .dup | ||||||
|  |       .gsub(/\W+/, ' ') | ||||||
|  |       .delete(' ') | ||||||
|  |       .to_i(36) | ||||||
|  |       .to_s | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Maxime Vaillancourt
						Maxime Vaillancourt