トピックリストの抜粋

:discourse2: 概要 トピックリスト抜粋では、ピン留めされていないトピックの抜粋を有効にできます(デフォルトでは、Discourse はピン留めされたトピックの抜粋のみを表示します)。
:eyeglasses: プレビュー Discourse Theme Creator でプレビュー
:hammer_and_wrench: リポジトリリンク https://github.com/discourse/discourse-topic-excerpts
:open_book: Discourse テーマは初めてですか? Discourse テーマの使い方に関する初心者向けガイド

このテーマコンポーネントをインストール

機能

「リスト」モードでは、Topic List Thumbnails と併用して素晴らしい動作をします!

:information_source: 抜粋自体は Discourse Core によって生成され、「ピン留め」されたトピックの抜粋と同じロジックを使用しています。抜粋の生成方法に関する問い合わせや提案がある場合は、新しい Support トピックを作成してください。


:bulb: ヒント:テーマに以下の CSS を追加することで、抜粋内で改行を維持できます。

.topic-list .topic-excerpt {
    white-space: pre-line;
}

投稿の内容によっては、結果が意図した通りに表示されない場合があります。

設定

名前 説明
show excerpts mobile
show excerpts desktop
enabled categories 特定のカテゴリーで抜粋を有効にします。カテゴリーとタグの両方を空白のままにすると、すべてのルートで抜粋が表示されます。
enabled tags 特定のタグで抜粋を有効にします。カテゴリーとタグの両方を空白のままにすると、すべてのルートで抜粋が表示されます。

:discourse2: 当方でホストされていますか? テーマコンポーネントは、Standard、Business、Enterprise プランで利用可能です。

「いいね!」 47
MD Topic List component
Best way to implement Excerpts in topic list?
Topic List Previews (legacy)
Topic preview text
MD Topic List Mobile component
Topic List Previews (TLP)
How to keep line breaks on excerpts?
Customizing your site with existing theme components
Expand new posts in topics in "Unread" and "New" to full summary
Topic Author
All links to categories broken?
Topic List Latest-Post Excerpt
Information about topic is not updated when using new & unread topics banner
Compact and AI Expanded
Displaying Views in Topic view (with no replies)
Topic List Latest-Post Excerpt
Google complaining about slow Interaction to Next Paint (INP) on Discourse sites
Using Discourse as a social media platform
Formatting breaks when Topic (List) Excerpts theme component used with RSS Polling plugin
Display first 5 lines of every post
Discourse AI Topic Summary :robot:
Topic List Thumbnails
Display post content in homepage
Display post content in homepage
New users can't sign up, 404 errors in console
Is there a way to display topic contents in category view?
Topic List Thumbnails
Discourse AI Topic Summary :robot:
How to disable topic excerpts in category page
Potential way to hide ignored users from topic list?
Discourse Topic List Author & Posters
Discourse Topic Excerpts & AI Gists Button
Display in the topics list in homepage also the body topic
Display replies and likes count in mobile view
Is there a plugin to make my forum a shop?
Why do excerpts include some HTML tags, but not others?
Latest activity list as for replies
How to add topic excerpt to all my topics
How to show part of the text under the topic head?
Static content on Category main page
Discourse Category Lockdown
How can I keep post views on lists
How to change the topic excerpt from the first post to the last post?
Discourse Docs

素晴らしい、ブログ風のトピック一覧(トピック一覧サムネイルコンポーネントと併せて)! :clap:

他のコンポーネントと同様に、カテゴリで制限することはできますか?

「いいね!」 7

はい、カテゴリ設定を追加しました:

「いいね!」 13

ありがとうございます、大変感謝しています。

また、トピックサムネイルコンポーネントとの何らかの互換性の問題があることを報告させてください。トピックリスト(サムネイルコンポーネントのトピックリストオプション+トピック抜粋コンポーネント)において、各トピックの画像が2回表示されています。

「いいね!」 2

おっしゃる通りです、申し訳ありません。現在修正済みです

「いいね!」 9

このコンポーネントが大好きです!ありがとうございます!トピック一覧に表示される抜粋の単語数や文字数を調整する方法はありますか?(気にしないでください。「topic excerpt maxlength」というサイト設定を見つけ、それを調整し、対象のトピック投稿の HTML を再構築しました。)

「いいね!」 4

カテゴリ設定は機能しますが、タグ設定は最新の Discourse で機能しません。

「いいね!」 2

@th21 タグの処理は修正されたはずです。遅くなり申し訳ありません!

「いいね!」 3

投稿が新しいトピックに分割されました:「/latest で一部のカテゴリのみ抜粋を表示できるようにする」 (Being able to display excerpts for some categories only on /latest)

投稿が新しいトピックに分割されました:トピックリストの行からコンテンツを異なる色で区別する

こんにちは、私のサイトでは「続きを読む」がグレーですが、あなたのサイトでは青色です。色を変更するにはどうすればよいですか?

「いいね!」 1

CSS を使用してカスタマイズできます。

たとえば、リンクの定義済みカラーを使用します。ただし、希望する color を指定することもできます。

.topic-excerpt-more {
    color: var(--tertiary);
}
「いいね!」 1

こんにちは。このコンポーネントは、Discourse ドキュメントプラグインのページでレンダリングされ、抜粋がドキュメントの URL ではなく Discourse ディスカッションの URL をクリックできるようになります。これを回避する方法はありますか?

最新の投稿を表示することは可能ですか。最初の投稿ではなく。

「いいね!」 2

これに対するプラグインとテーマコンポーネントがあります: Topic List Latest-Post Excerpt

「いいね!」 2

デスクトップのテーマコンポーネントに問題がありますか?

有効にすると、アバターが次のように表示されます。

本日、Discourseを更新しました。

編集:抜粋の行数/文字数を制限する方法はありますか?

「いいね!」 2

私も同じです

ログアウト時は問題ありませんが、discourse-right-sidebar-blocks が有効になっている他のルートでは、このようになります。

抜粋トグルボタンがモバイルに表示されません。デザインによるものですか、それとも時期尚早ですか?

これを気に入っています!プライベートメッセージに抜粋が表示されないようにブロックする方法はありますか?

このコンポーネントを試しましたが、個人メッセージに抜粋が表示されません。:thinking: