diff options
author | mms <git@sapka.me> | 2025-01-05 22:34:55 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2025-01-05 22:34:55 +0100 |
commit | bfd8209ad0d80b5027bea8a1a095dadc8bffdc61 (patch) | |
tree | 1d4ec6d63dd3b4a1f788ec340a0fba3cd48b3dea /new/splash/pages | |
parent | 628fcf941c322dd0ed24a643c58394392484740e (diff) |
Diffstat (limited to 'new/splash/pages')
-rw-r--r-- | new/splash/pages/.dir-locals.el | 7 | ||||
-rw-r--r-- | new/splash/pages/background.png | 1 | ||||
-rw-r--r-- | new/splash/pages/index.html.erb | 145 |
3 files changed, 148 insertions, 5 deletions
diff --git a/new/splash/pages/.dir-locals.el b/new/splash/pages/.dir-locals.el index 4e2be03..22b2f46 100644 --- a/new/splash/pages/.dir-locals.el +++ b/new/splash/pages/.dir-locals.el @@ -1 +1,6 @@ -((nil . ((add-hook 'after-save-hook ('message :a)))) + +((nil + . ((eval . + (add-hook 'after-save-hook (lambda () (message (shell-command-to-string (format "../bin/build.rb -f%s" (buffer-file-name)))))) + )))) + diff --git a/new/splash/pages/background.png b/new/splash/pages/background.png new file mode 100644 index 0000000..22d26b7 --- /dev/null +++ b/new/splash/pages/background.png @@ -0,0 +1 @@ +#<File:0x0000293dcce70da0>
\ No newline at end of file diff --git a/new/splash/pages/index.html.erb b/new/splash/pages/index.html.erb index d033c90..e5ee6f6 100644 --- a/new/splash/pages/index.html.erb +++ b/new/splash/pages/index.html.erb @@ -1,9 +1,146 @@ -<html> +<!DOCTYPE html> +<html lang="en"> <head> - <title>It works!</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta charset="utf-8"> + <title>Crys SITE</title> + <link rel="canonical" href="https://crys.site"> + <meta name="robots" content="index, follow"> + <meta property="og:title" content="Crys Site"> + <meta property="og:type" content="website"> + <meta property="og:url" content="https://crys.site"> + <meta property="og:description" content="Michal's personal website"> + + <meta name="fediverse:creator" content="@mms@bsd.cafe"> + <link rel="me" href="https://mastodon.bsd.cafe/@mms" title="@mms on bsd.cafe"> + + <style> + body { + text-align: center; + background-color: #c2c2c2; + background-image: url("<%= process_image(file: "background.png").relative_path %>"); + color: #000; + } + + a { + color: #000; + } + ol { + padding: 0; + } + + ol li{ + list-style-type: none; + } + + img.webutton { + border: 0; + text-decoration: none; + color: #c2c2c2; + margin: 10px; + } + + </style> + </head> <body> - <h1>Test</h1> - Last update: <%= Time.now %> + + <h1>Crys SITE</h1> + + <p> + Hi! + I'm Michal and this is my personal webpage. + </p> + + <p> + The World Wide Web used to be fun, scrappy, and ours; let's bring it back. + </p> + + <p> + <b>NOTE: I am not a real <%= not_real %>, and I can be wrong sometimes</b>. + + </p> + + + <hr> + <p> + Updated <%= Time.now.strftime("%B %d, %Y") %> + </p> + + <hr> + <h2>Contents</h2> + + <h3>Main sections</h3> + + + <nav> + <ol> + <li><a href="/blog">My personal blog</a> + <%= update_badge("blog")%> + <li><a href="/bsd">Guides on using FreeBSD on a PC</a> + <%= update_badge("bsd")%> + <li><a href="/emacs">Guides on using Emacs for not obvious tasks</a> + <%= update_badge("emacs")%> + <li><a href="/unix-history">A short Unix History</a> + <%= update_badge("unix-history")%> + <li><a href="/reviews">Reviews of narrative works</a> + <%= update_badge("reviews")%> + <li><a href="/star-trek">Star Trek fansite</a> + <%= update_badge("star-trek")%> + </ol> + + + <h3>Projects</h3> + + <ol> + <li><a href="/projects/chotto">Chotto</a> - a initial tagging system for Notmuch + <%= update_badge("chotto")%> + </ol> + + + <h3>Mirrors</h3> + <ol> + <li><a href="/mirror/userfriendly">User Friendly comic mirror</a> + </ol> + + <h3>Even more</h3> + + + <ol> + <li><a href="/more/bookmarks/">Bookmarks</a> to cool things on the web + <%= more_update_badge(name: :bookmarks)%> + <li><a href="/more/links/">Links</a> to other sites + <%= more_update_badge(name: :links)%> + <li><a href="/more/irc/">IRC Channel</a> of this site + <li><a href="/more/contact/">Contact</a> + <li><a href="/more/now/">Now</a> + <li><a href="/more/uses/">Uses</a> + </ol> + +</nav> + <hr> + + + <h2>Recent updates</h2> + + <nav> + <ol> + <% fetch_rss(name: :main).items.first(10).each do |item| %> + <li><a href="<%=item.link%>"><%= item.title %></a> (<%=item.date.strftime("%B %d, %Y")%>) + <% end %> + </ol> + </nav> + + + <hr> + <p> + This is self-hosted site. + You are connected live to my living room. + </p> + + <div> + <%= webbutton(file: "org.freebsd.gif", url: "https://www.freebsd.org/", alt: "Powered by FreeBSD") %> + <%= webbutton(file: "org.dillo.gif", url: "https://www.dillo.org/", alt: "Optimized for Dillo") %> + </div> </body> </html> |