新月の開発

4f23a61e anonymous 2025-08-12 09:12
>>eacc05af
2. Chromeのキャッシュの問題または破損したデータ:
Chromeは読み込み時間を短縮するためにファビコンをキャッシュします。 このキャッシュが破損したり古くなったりすると、誤ったファビコンやデフォルトのファビコンが表示されたり、予期しない色の変化が発生したりすることがあります。
Chrome のキャッシュと Cookie を消去したり、Chrome のアプリケーション データを消去すると、このような問題を解決できる場合があります。

chromeで問題が報告されていたけど、他のブラウザでも同じような挙動をしそうな気がします。
cf874e65 anonymous 2025-08-13 21:07
>>4f23a61e
ブラウザ側でしたか。
私はFirefoxですが、Chromeでも同じとは。
fa9b4139 anonymous 2025-10-14 09:29
admin.cgi/status で、自分自身のノード の表記が dnsnameではなくて IPアドレスで表示されるのって
ここの部分を修正するだけで良いのでしょうか?

$ diff -u0 lib/saku/shingetsu/admin_cgi.py{.orig,}
--- lib/saku/shingetsu/admin_cgi.py.orig        2025-04-24 09:21:47.804968518 +0900
+++ lib/saku/shingetsu/admin_cgi.py     2025-10-08 14:01:50.013807124 +0900
@@ -282 +282 @@
-        myself4, myself6 = nodelist.myself(True)
+        myself4, myself6 = nodelist.myself(False)

24869930 anonymous 2025-11-07 13:57
"Inconsolata" <-- 固定幅英数
"M PLUS 2" <-- 日本語フォント
"M PLUS Rounded 1c" <-- 日本語少し丸いフォント(タイトル用)

上記のGoogleのWebフォントを使うよう、headerとcssを書き換えるパッチを作ってみました。
見やすいfontなどあれば共有してもらえると嬉しいです。

diff --git a/template/header.txt b/template/header.txt
index bcd0bc9..313a597 100644
--- a/template/header.txt
+++ b/template/header.txt
@@ -11,6 +11,9 @@
 {% if deny_robot %}
   <meta name="robots" content="NOINDEX" />
 {% endif %}
+  <link rel="preconnect" href="https://fonts.googleapis.com">
+  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+  <link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=M+PLUS+2:wght@100..900&family=M+PLUS+Rounded+1c&display=swap" rel="stylesheet">
   <meta name="referrer" content="no-referrer-when-downgrade" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="author" href="https://www.shingetsu.info/" />
diff --git a/www/00default.css b/www/00default.css
index b762340..78ce09d 100644
--- a/www/00default.css
+++ b/www/00default.css
@@ -3,10 +3,14 @@
  */
 body {
     background-color: #fff;
+    font-family: "Inconsolata", "M PLUS 2", sans-serif;
+    font-weight: normal;
+    font-style: normal;
 }
 h1, h1 a {
     color: #00e;
     text-decoration: none;
+    font-family: "M PLUS Rounded 1c", sans-serif;
 }
 dt {
     background-color: #ccf;
@@ -96,5 +100,6 @@ form#tagform {
 }
 dd {
     font-size: 16px;
-    font-family: "MS PGothic", Mona, IPAMonaPGothic, sans-serif;
+    font-family: "Inconsolata", "M PLUS 2", sans-serif;
 }
+

Top of this page. |

limit: 1536KB

(新月の開発/4/0.0MB)

Powered by shinGETsu.