figbert.com-website

[ACTIVE] the website and home of figbert on the clearnet
git clone git://git.figbert.com/figbert.com-website.git
Log | Files | Refs | README | LICENSE

commit 8d171399caeca1848fcbb2fbdb6d7c69ac280344
parent 35a9809240c92baae3f335f0fe69b19de7d3de4f
Author: FIGBERT <figbert@figbert.com>
Date:   Tue, 14 Jun 2022 00:46:15 -0700

Initial port of un-deprecated theme

Diffstat:
Mconfig.toml | 12+-----------
Mcontent/_index.md | 18------------------
Mcontent/posts/_index.md | 2+-
Mcontent/projects/_index.md | 1+
Astatic/css/fonts.css | 33+++++++++++++++++++++++++++++++++
Astatic/css/global.css | 80+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Astatic/fonts/vistaserv/bold.woff | 0
Astatic/fonts/vistaserv/bolder.woff | 0
Astatic/fonts/vistaserv/italic.woff | 0
Astatic/fonts/vistaserv/regular.woff | 0
Astatic/fonts/vistaserv/superbold.woff | 0
Atemplates/anchor-link.html | 15+++++++++++++++
Atemplates/article.html | 11+++++++++++
Atemplates/index.html | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atemplates/list.html | 8++++++++
Atemplates/shortcodes/audio.html | 7+++++++
Atemplates/shortcodes/gif.html | 7+++++++
Atemplates/shortcodes/image.html | 7+++++++
Atemplates/shortcodes/video.html | 7+++++++
19 files changed, 244 insertions(+), 30 deletions(-)

diff --git a/config.toml b/config.toml @@ -3,7 +3,7 @@ title = "FIGBERT" description = "figbert.com is the website and home of FIGBERT on the clearnet. It's my blog, portfolio, and wiki – my personal stash of information floating on the open web." default_language = "en" -generate_feed = true +generate_feed = false minify_html = true [markdown] @@ -13,13 +13,3 @@ minify_html = true external_links_no_follow = true external_links_no_referrer = true smart_punctuation = true - -[extra] - d3_nav = [ - { name = "HOME", path = "/" }, - { name = "POSTS", path = "/posts/" }, - { name = "PROJECTS", path = "/projects/" }, - ] - d3_icon = "/icon.png" - d3_twitter = "therealFIGBERT" - d3_author = "FIGBERT" diff --git a/content/_index.md b/content/_index.md @@ -2,8 +2,6 @@ insert_anchor_links = "left" +++ -## Hello World - I'm FIGBERT, an Israeli-American high school student with a passion for Computer Science and Engineering. I spend my time coding side-projects, doing schoolwork, and playing the occasional videogame. My current goal @@ -57,14 +55,6 @@ I have some friends. Some of them have blogs: Impala] - [art3mis] is the better at web design than all of us :/ -This site is a proud member of [Hotline Webring]! Check out [the -previous][hw-prev] or [the next][hw-next] sites in the ring. - -This site is a proud member of the [geekring]! Check out [the previous -site][gr-prev], [the next site][gr-next], or a [random -ring-member][gr-rand]. - - [on this site]: @/posts/_index.md [Atom feed]: /atom.xml [Privacy Redirect for Safari]: @/projects/privacy-redirect-for-safari/index.md @@ -100,11 +90,3 @@ ring-member][gr-rand]. [Jacob Neplokh]: https://jacobneplokh.com [Tame Impala]: https://en.wikipedia.org/wiki/Tame_Impala [art3mis]: https://art3mis.pm - -[Hotline Webring]: https://hotlinewebring.club/ -[hw-prev]: https://hotlinewebring.club/FIGBERT/previous -[hw-next]: https://hotlinewebring.club/FIGBERT/next -[geekring]: https://geekring.net/ -[gr-prev]: http://geekring.net/site/79/previous -[gr-next]: http://geekring.net/site/79/next -[gr-rand]: http://geekring.net/site/79/random diff --git a/content/posts/_index.md b/content/posts/_index.md @@ -1,9 +1,9 @@ +++ title = "Posts" -description = "" sort_by = "date" template = "list.html" page_template = "article.html" insert_anchor_links = "left" +generate_feed = true +++ diff --git a/content/projects/_index.md b/content/projects/_index.md @@ -4,4 +4,5 @@ sort_by = "weight" template = "list.html" page_template = "article.html" insert_anchor_links = "left" +generate_feed = true +++ diff --git a/static/css/fonts.css b/static/css/fonts.css @@ -0,0 +1,33 @@ +@font-face { + font-family: "vistaserv"; + src: url("/fonts/vistaserv/regular.woff") format("woff"); + font-display: swap; +} + +@font-face { + font-family: "vistaserv"; + src: url("/fonts/vistaserv/bold.woff") format("woff"); + font-weight: bold; + font-display: swap; +} + +@font-face { + font-family: "vistaserv"; + src: url("/fonts/vistaserv/italic.woff") format("woff"); + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "vistaserv"; + src: url("/fonts/vistaserv/bolder.woff") format("woff"); + font-weight: 800; + font-display: swap; +} + +@font-face { + font-family: "vistaserv"; + src: url("/fonts/vistaserv/superbold.woff") format("woff"); + font-weight: 900; + font-display: swap; +} diff --git a/static/css/global.css b/static/css/global.css @@ -0,0 +1,80 @@ +:root { + --background-color: #212121; + --text-color: #f5f5f5; + --secondary-color: #5c5c5c; + --link-color: #8e60a7; + + font-family: vistaserv, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; + background-color: var(--background-color); + color: var(--text-color); +} + +body { + display: flex; + margin: 2rem 0 2rem 0; +} + +header { + width: 18vw; + text-align: right; + margin: 0 3rem 0 2rem; +} + +main { + width: 60vw; +} + +nav { + margin: 2rem 0 2rem 0; + font-size: 1.125rem; +} + +#subtitle { + font-size: 1.25rem; + font-weight: initial; +} + +nav > ul { + list-style: none; +} + +nav > ul > li > a { + text-decoration: none; +} + +.rss { + color: var(--secondary-color); + font-size: 0.75rem; +} + +#webrings { + font-size: 0.75rem; +} + +hr { + border-width: 0; + border-top: 0.1rem dashed; +} + +p { + margin-top: 0; +} + +a { + color: var(--text-color); +} + +a:hover, a:focus { + color: var(--link-color); +} + +h1, h2, h3, h4, h5, h6 { + margin: 0; + position: relative; +} + +h1 > a, h2 > a, h3 > a, +h4 > a, h5 > a, h6 > a { + text-decoration: none; + color: inherit; +} diff --git a/static/fonts/vistaserv/bold.woff b/static/fonts/vistaserv/bold.woff Binary files differ. diff --git a/static/fonts/vistaserv/bolder.woff b/static/fonts/vistaserv/bolder.woff Binary files differ. diff --git a/static/fonts/vistaserv/italic.woff b/static/fonts/vistaserv/italic.woff Binary files differ. diff --git a/static/fonts/vistaserv/regular.woff b/static/fonts/vistaserv/regular.woff Binary files differ. diff --git a/static/fonts/vistaserv/superbold.woff b/static/fonts/vistaserv/superbold.woff Binary files differ. diff --git a/templates/anchor-link.html b/templates/anchor-link.html @@ -0,0 +1,15 @@ +<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}"> + {% if level == 1 %} + # + {% elif level == 2 %} + ## + {% elif level == 3 %} + ### + {% elif level == 4 %} + #### + {% elif level == 5 %} + ##### + {% elif level == 6 %} + ###### + {% endif %} +</a> diff --git a/templates/article.html b/templates/article.html @@ -0,0 +1,11 @@ +{% extends "index.html" %} +{% block content %} + <article> + <h1><a href="{{ current_url }}">{{ page.title }}</a></h1> + <small> + <time datetime="{{ page.date }}">{{ page.date | date(format="%B %d, %Y") }}</time> + by <a href="{{ config.base_url }}">{{ config.title }}</a> + </small> + {{ page.content | safe }} + </article> +{% endblock content %} diff --git a/templates/index.html b/templates/index.html @@ -0,0 +1,66 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + <title>{% if page.title %}{{ page.title }} :: {% endif %}{{ config.title }}</title> + + <link rel="stylesheet" href="{{ get_url(path="css/fonts.css") }}"> + <link rel="stylesheet" href="{{ get_url(path="css/global.css") }}"> + <link type="application/atom+xml" rel="alternate" href="{{ get_url(path="posts/atom.xml") }} title="Posts :: {{ config.title }}"> + <link type="application/atom+xml" rel="alternate" href="{{ get_url(path="projects/atom.xml") }} title="Projects :: {{ config.title }}"> + + <meta name="description" content="{% if page.description %}{{ page.description | safe }}{% else %}{{ config.description }}{% endif %}"> + <meta property="og:title" content="{% if page.title %}{{ page.title | safe }} :: {% endif %}{{ config.title }}"> + <meta property="og:description" content="{% if page.description %}{{ page.description | safe }}{% else %}{{ config.description }}{% endif %}"> + <meta property="og:type" content="website"> + + {% if current_url %} + <meta property="og:url" content="{{ current_url }}"> + <link rel="canonical" href="{{ current_url }}"> + {% endif %} + + <meta name="twitter:card" content="summary"> + <meta name="twitter:creator" content="@therealFIGBERT"> + + <link rel="icon" href="{{ get_url(path="icon.png") }}"> + <meta name="theme-color" content="#212121"> + </head> + <body> + <header> + <section> + <h1><a href="{{ config.base_url }}">{{ config.title }}</a></h1> + <h2 id="subtitle">Full Stack Developer</h2> + </section> + <nav> + <ul> + <li><a href="{{ config.base_url }}">Home</a></li> + <li> + <a href="{{ get_url(path="posts/atom.xml") }}" class="rss">RSS</a> + <a href="{{ get_url(path="@/posts/_index.md") }}">Posts</a> + </li> + <li> + <a href="{{ get_url(path="projects/atom.xml") }}" class="rss">RSS</a> + <a href="{{ get_url(path="@/projects/_index.md") }}">Projects</a> + </li> + </ul> + </nav> + <section id="webrings"> + <hr> + <b>Proud member of <a href="https://hotlinewebring.club/" target="_blank" rel="noopener">Hotline Webring</a>!</b><br> + <a href="https://hotlinewebring.club/FIGBERT/previous" target="_blank" rel="noopener">Previous site</a> -- + <a href="https://hotlinewebring.club/FIGBERT/next" target="_blank" rel="noopener">Next site</a> + + <hr> + <b>This site is a proud member of the <a href="https://geekring.net/" target="_blank" rel="noopener">geekring</a>! Check some other geeky websites here!</b><br> + <a href="http://geekring.net/site/79/previous" target="_blank" rel="noopener">Previous site</a> -- + <a href="http://geekring.net/site/79/random" target="_blank" rel="noopener">Random site</a> -- + <a href="http://geekring.net/site/79/next" target="_blank" rel="noopener">Next site</a> + </section> + </header> + <main> + {% block content %}{{ section.content | safe }}{% endblock content %} + </main> + </body> +</html> diff --git a/templates/list.html b/templates/list.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} +{% block content %} + <ul class="date-list"> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title | safe }}</a> {{ page.date | date(format="%B %d, %Y") }}</li> + {% endfor %} + </ul> +{% endblock content %} diff --git a/templates/shortcodes/audio.html b/templates/shortcodes/audio.html @@ -0,0 +1,7 @@ +<audio controls> + {% for source in sources -%} + {% set type = source | split(pat=".") | last -%} + <source src="{{ config.base_url | safe }}{{ page.path | safe }}{{ source | safe }}" type="{{ 'audio/' ~ type }}"> + {% endfor -%} + Your browser doesn't support the audio tag and/or the audio formats in use here – sorry! +</audio> diff --git a/templates/shortcodes/gif.html b/templates/shortcodes/gif.html @@ -0,0 +1,7 @@ +<video autoplay loop muted playsinline> + {% for source in sources -%} + {% set type = source | split(pat=".") | last -%} + <source src="{{ config.base_url | safe }}{{ page.path | safe }}{{ source | safe }}" type="{{ 'video/' ~ type }}"> + {% endfor -%} + Your browser doesn't support the video tag, which I use in place of .gifs, and/or the video formats in use here – sorry! +</video> diff --git a/templates/shortcodes/image.html b/templates/shortcodes/image.html @@ -0,0 +1,7 @@ +<picture> + {% for source in sources -%} + {% set type = source | split(pat=".") | last -%} + <source srcset="{{ config.base_url | safe}}{{ page.path | safe }}{{ source | safe }}" type="{{ 'img/' ~ type }}"> + {% endfor -%} + <img src="{{ fallback_path }}" alt="{{ fallback_alt }}"/> +</picture> diff --git a/templates/shortcodes/video.html b/templates/shortcodes/video.html @@ -0,0 +1,7 @@ +<video controls> + {% for source in sources -%} + {% set type = source | split(pat=".") | last -%} + <source src="{{ config.base_url | safe }}{{ page.path | safe }}{{ source | safe }}" type="{{ 'video/' ~ type }}"> + {% endfor -%} + Your browser doesn't support the video tag and/or the video formats in use here – sorry! +</video>