commit 0472d46252eebf8258440517963dd5605d1314cc
parent 7afa3cc6c356f07311fe6dd1a486671eca606f25
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 25 May 2021 15:44:53 +0200
Add Wikipedia Current Events link
Diffstat:
4 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/img/school.svg b/img/education.svg
diff --git a/index.html b/index.html
@@ -29,15 +29,15 @@
<input type="text" class="text" value="" name="q" placeholder="Search..." autocomplete="off" tabindex="0">
</form>
-
<ul id='links'>
<li>
- <a tabindex="1"><img src="img/school.svg"></a>
+ <a tabindex="1"><img src="img/education.svg"></a>
<ul>
<li><a href="https://vunet.vu.nl">VUNet</a></li>
<li><a href="https://canvas.vu.nl">Canvas</a></li>
<li><a href="https://canvas.uva.nl">UvA Canvas</a></li>
<li><a href="https://datanose.nl">UvA Datanose</a></li>
+ <li><a href="https://en.wikipedia.org/wiki/Portal:Current_events">Wikipedia: Current Events</a></li>
</ul>
</li>
<li>
@@ -176,5 +176,6 @@
</ul>
</li>
</ul>
+
</body>
</html>
diff --git a/linkgen.rb b/linkgen.rb
@@ -1,9 +1,16 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
+
# Takes links YAML file on stdin, outputs HTML <ul> on stdout
require 'yaml'
begin
- categories = YAML.safe_load($stdin.read)
+ input = $stdin.read
+ if input.empty?
+ warn 'No input provided.'
+ exit 1
+ end
+ categories = YAML.safe_load(input)
rescue StandardError
warn "Couldn't parse input."
exit 1
diff --git a/links.yaml b/links.yaml
@@ -1,9 +1,10 @@
# I don't vouch for any links on this list
-School:
+Education:
- VUNet: https://vunet.vu.nl
- Canvas: https://canvas.vu.nl
- UvA Canvas: https://canvas.uva.nl
- UvA Datanose: https://datanose.nl
+ - "Wikipedia: Current Events": https://en.wikipedia.org/wiki/Portal:Current_events
Downloads:
- 1337X: https://1337x.to/home/
- RUTracker: http://rutracker.org/forum/index.php