Skip to content

NagiManga v0.14.2(本文にリンクのボタンを置けるようにしました)

Choose a tag to compare

@Lichiphen Lichiphen released this 05 Nov 13:54
· 24 commits to main since this release

NagiManga を v0.14.2 に更新しました。LOG の本文に、リンクのボタンを置けるようにした更新です。画像ポップアップの NagiSwipe は v1.3.2 のままです。

新しくなったこと

  • 本文にボタンを置けるようになりました: 投稿・固定ページの本文で、リンクの文字を [[ ]] で二重に囲むとボタンになります。普通の Markdown としても正しい書き方なので、GitHub などほかの場所に貼っても崩れません(角かっこ付きのリンクになります)。
    [[詳しく見る]](https://example.com/)
    [[ダウンロード]](https://example.com/app.zip "download green")
    [[応援する]](https://example.com/ "heart pink solid")
    
    • URL の後ろの " " の中に、色・アイコン・塗りの名前を空白で区切って、好きな順に書けます。どれも省けます。日本語の名前("ダウンロード 緑" など)でも書けます。
    • 色は blue green orange red purple pink gray の7色です。省くとテーマの色になり、明るいテーマと暗いテーマのどちらでも読みやすい色で表示します。
    • アイコンは download link arrow play book mail cart heart star home の10種類です。.zip .exe .pdf .epub などのファイルへのボタンには、書かなくてもダウンロードのアイコンが付きます(none で外せます)。
    • solid を付けると塗りのボタンになります。付けなければ、淡い色の控えめなボタンです。
    • 1行に並べたボタンは横に並び、スマホでは折り返します。文の途中にも置けます。
    • 投稿欄・固定ページの「装飾 › ボタン」からも入れられます。
    • 追加CSSでは .log-button・.log-button-icon・.log-button-green などで見た目を変えられます。

更新のしかた

  • v0.2.0 以降を使っている場合: 管理画面の「更新」から更新できます(ログインするとお知らせが出ます)。作品・設定・パスワードはそのままです。
  • 手動で更新する場合: nagimanga-v0.14.2.zip の中の nagimanga フォルダの中身を上書きアップロードしてください。data フォルダはアップロードしないでください(作品と設定が消えます)。
  • 更新の ZIP には署名(nagimanga-v0.14.2.zip.sig)が付いています。
  • CSS と JavaScript は中身から作る ?v= 付きで読み込むので、更新後に古いキャッシュが残ることはありません。
  • NagiSwipe(NagiSwipe-main.js・.css)は変わっていないため、jsDelivr の URL は貼り替えなくても大丈夫です。

ドキュメント: https://nagiswipe.pages.dev/


English

NagiManga is now v0.14.2. This update lets you put link buttons in LOG posts and pages. The NagiSwipe image popup stays at v1.3.2.

New

  • Buttons in the text: in posts and fixed pages, a link whose words are in double brackets [[ ]] is a button. It is valid ordinary Markdown, so pasted elsewhere (GitHub and so on) it stays a link, with brackets around its words.
    [[Read more]](https://example.com/)
    [[Download]](https://example.com/app.zip "download green")
    [[Support]](https://example.com/ "heart pink solid")
    
    • In the quotes after the URL, write a color, an icon and solid, apart by spaces and in any order. Each can be left out. The Japanese names work too.
    • Seven colors: blue, green, orange, red, purple, pink, gray. Without one, the button takes the theme's color, readable on light and dark themes alike.
    • Ten icons: download, link, arrow, play, book, mail, cart, heart, star, home. A button to a file such as .zip, .exe, .pdf or .epub gets the download icon without asking (none leaves it out).
    • solid makes a filled button; without it the button is pale and quiet.
    • Buttons on one line sit side by side and wrap on a phone. A button can also sit in a sentence.
    • "Format › Button" in the posting box and the fixed page editor puts one in.
    • Custom CSS can restyle them with .log-button, .log-button-icon, .log-button-green and so on.

Updating

  • From v0.2.0 or later: use Update in the admin panel (a notice appears after you log in). Works, settings and passwords stay as they are.
  • By hand: upload the contents of the nagimanga folder in nagimanga-v0.14.2.zip over your install. Do not upload the data folder (it would erase your works and settings).
  • The update ZIP comes with its signature (nagimanga-v0.14.2.zip.sig).
  • CSS and JavaScript are loaded with a content-based ?v=, so no stale cache is left after updating.
  • NagiSwipe (NagiSwipe-main.js / .css) has not changed, so the jsDelivr URLs need no update.

Documentation: https://nagiswipe.pages.dev/