Improve aria-label support, add more meta tags, more png -> webp
Before Width: | Height: | Size: 2.1 KiB |
BIN
assets/cc-by-nc-sa.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 295 B |
BIN
assets/newgrounds.webp
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/pixiv.png
Before Width: | Height: | Size: 255 B |
BIN
assets/pixiv.webp
Normal file
After Width: | Height: | Size: 994 B |
Before Width: | Height: | Size: 567 B |
BIN
assets/rss-button.webp
Normal file
After Width: | Height: | Size: 1.1 KiB |
|
@ -1,4 +1,4 @@
|
|||
{{ $icon := resources.Get "external-link.svg" }}
|
||||
|
||||
<a href="{{ .Destination | safeURL }}" {{ if strings.HasPrefix .Destination "http" }}
|
||||
target="_blank"{{ end }}>{{ .PlainText }}{{ if strings.HasPrefix .Destination "http" }}<object data="{{ $icon.Permalink }}" type="image/svg+xml"></object>{{ end -}}</a>
|
||||
target="_blank"{{ end }}>{{ .PlainText }}{{ if strings.HasPrefix .Destination "http" }}<img alt="External link" width="16" height="16" src="{{ $icon.Permalink }}"/>{{ end -}}</a>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{ .Content }}
|
||||
|
||||
{{ $art := (index site.Data ($.Param "json")) }}
|
||||
{{ $newgrounds_icon := resources.Get "newgrounds.png" }}
|
||||
{{ $newgrounds_icon := resources.Get "newgrounds.webp" }}
|
||||
|
||||
{{ range $art.categories }}
|
||||
<h3>{{ .name }}</h3>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ .Site.LanguageCode }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<header>{{- partial "header.html" . -}}</header>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
{{ .Content }}
|
||||
|
||||
{{ $art := (index site.Data ($.Param "json")) }}
|
||||
{{ $pixiv_icon := resources.Get "pixiv.png" }}
|
||||
{{ $newgrounds_icon := resources.Get "newgrounds.png" }}
|
||||
{{ $pixiv_icon := resources.Get "pixiv.webp" }}
|
||||
{{ $newgrounds_icon := resources.Get "newgrounds.webp" }}
|
||||
|
||||
{{ range $art.categories }}
|
||||
<h3>{{ .name }}</h3>
|
||||
|
@ -19,7 +19,7 @@
|
|||
{{ $full := resources.Get (printf "%s/%s" ($.Param "json") .filename) }}
|
||||
{{ if $full }}
|
||||
|
||||
<a href="{{ $full.Permalink }}">
|
||||
<a href="{{ $full.Permalink }}" aria-label="Click to view full-size image">
|
||||
{{ if $.Params.thumbnails }}
|
||||
{{ $title := .title }}
|
||||
{{ with resources.Get (printf "%s-thumbs/%s" ($.Param "json") .filename) }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Copyright (c) 2022. <a href="https://git.sr.ht/~redstrate/redstrate.com/tree/master/item/content/{{ .File.Path }}?view-source">View Source</a>
|
||||
|
||||
<div>
|
||||
{{ with resources.Get "cc-by-nc-sa.gif" }}
|
||||
{{ with resources.Get "cc-by-nc-sa.webp" }}
|
||||
<a href="/license">
|
||||
<img width="88" height="32" src="{{ .Permalink }}" alt="CC NC SA">
|
||||
</a>
|
||||
|
@ -9,7 +9,7 @@ Copyright (c) 2022. <a href="https://git.sr.ht/~redstrate/redstrate.com/tree/mas
|
|||
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ with resources.Get "rss-button.gif" }}
|
||||
{{ with resources.Get "rss-button.webp" }}
|
||||
<img width="88" height="32" src="{{ .Permalink }}" alt="RSS Feed">
|
||||
{{ end }}
|
||||
</a>
|
||||
|
|
|
@ -1,8 +1,33 @@
|
|||
<head>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#fffff" media="(prefers-color-scheme: light)">
|
||||
<meta name="theme-color" content="rgb(51 65 85)" media="(prefers-color-scheme: dark)">
|
||||
|
||||
{{ if .IsHome }}
|
||||
<meta name="description" content="{{ $.Site.Params.description }}">
|
||||
<title>{{.Site.Title}}</title>
|
||||
{{ else }}
|
||||
<title>{{.Site.Title}} / {{ .Title }}</title>
|
||||
<meta name="description" content="{{ .Summary }}">
|
||||
{{ end }}
|
||||
|
||||
{{ if and (hugo.IsProduction) (eq .Site.BaseURL "https://redstrate.com/") }}
|
||||
<script async defer data-website-id="2dd74b65-a1b8-41fb-b060-1a062490a823" src="https://salamis.ryne.moe/euripides.js" data-domains="redstrate.com" data-do-not-track="true"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .IsHome }}
|
||||
<link href="/blog/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }} / Blog">
|
||||
{{ else }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }} / {{ $.Title }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $style := resources.Get "css/site.css" }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $style = $style | minify | fingerprint | resources.PostProcess }}
|
||||
{{ end }}
|
||||
<link href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" rel="stylesheet" >
|
||||
</head>
|
||||
|
|