Skip to content

Commit e3e6654

Browse files
tjgrathwelldshafik
authored andcommitted
Tighten up TOC in 'learn to code' by not showing gifs and svgs in it
1 parent 3e99c59 commit e3e6654

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/contents.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def subpages_for filename
4444
content.scan /\[.*?\]\((.*?)\)/ do |link, _|
4545
next if (link =~ /^http/)
4646
next if (link =~ %r(^//)) # protocol-less absolute links e.g. //google.com
47-
next if (link =~ /(jpg|png)$/)
47+
next if (link =~ /\.\w{3}$/) # jpg/gif/svg/etc
4848
links.push(link) if !links.include? link
4949
end
5050

sites/en/learn-to-code/computers.md

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
* Input/Output
5151
* keyboard, mouse, touch screen, monitor
5252

53-
bonus: [Von Neumann Machine]()
54-
5553
# Computer Anatomy: Software
5654

5755
* Operating System

0 commit comments

Comments
 (0)