From 5df93a11a4447f31f275801c333bb2865a779377 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Fri, 2 Feb 2024 21:52:23 +0100 Subject: picture gallery --- html.rb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'html.rb') diff --git a/html.rb b/html.rb index 1018a31..8ad6c07 100755 --- a/html.rb +++ b/html.rb @@ -78,13 +78,27 @@ def music_html end html += "

Bandcamp: #{bc}" html += '' - # html += '


' end html += '

© pdp8 Creative Commons Attribution 4.0 International License' html += File.read(File.join(SNIPPETS, 'tail.html')) print_html 'music', html end +def picture_html + html = File.read(File.join(SNIPPETS, 'head.html')) + html += nav 'pictures' + html += '

' + html += '

© pdp8 Creative Commons Attribution 4.0 International License' + html += File.read(File.join(SNIPPETS, 'tail.html')) + print_html 'pictures', html +end + def video_html videos = Dir[File.join(MEDIA_DIR, 'videos', '*')].sort.reverse html = File.read(File.join(SNIPPETS, 'head.html')) @@ -146,10 +160,11 @@ def climbing_html end music_html +picture_html video_html climbing_html -%w[about code pictures contact].each do |basename| +%w[about code contact].each do |basename| file_html basename end -- cgit v1.2.3