Repository navigation
NagiManga v0.14.2(本文にリンクのボタンを置けるようにしました)
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 の後ろの
" "の中に、色・アイコン・塗りの名前を空白で区切って、好きな順に書けます。どれも省けます。日本語の名前("ダウンロード 緑"など)でも書けます。 - 色は
bluegreenorangeredpurplepinkgrayの7色です。省くとテーマの色になり、明るいテーマと暗いテーマのどちらでも読みやすい色で表示します。 - アイコンは
downloadlinkarrowplaybookmailcartheartstarhomeの10種類です。.zip.exe.pdf.epubなどのファイルへのボタンには、書かなくてもダウンロードのアイコンが付きます(noneで外せます)。 solidを付けると塗りのボタンになります。付けなければ、淡い色の控えめなボタンです。- 1行に並べたボタンは横に並び、スマホでは折り返します。文の途中にも置けます。
- 投稿欄・固定ページの「装飾 › ボタン」からも入れられます。
- 追加CSSでは
.log-button・.log-button-icon・.log-button-greenなどで見た目を変えられます。
- URL の後ろの
更新のしかた
- 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,.pdfor.epubgets the download icon without asking (noneleaves it out). solidmakes 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-greenand 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
nagimangafolder innagimanga-v0.14.2.zipover your install. Do not upload thedatafolder (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/