홈페이지 블록

:information_source: Summary Build a custom homepage with configurable block components
:hammer_and_wrench: Repository Manuel Kostka / Discourse / Blocks / Homepage Blocks · GitLab
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

This component combines features from Right Sidebar Blocks and the custom homepage route. It initializes the route and allows you to organize content blocks on the homepage, offering flexibility in layout and content presentation.

Below are two example views: the first shows a homepage with basic blocks stacked on top of each other, while the second demonstrates the same layout with custom styles applied:

Editing blocks

You can customize blocks through the component settings. Each block is added by specifying its Ember component name:

After adding a block, you can adjust its properties using available parameters:

Available blocks

You can add any Ember component using its component name. Additionally, I have a collection of blocks available at Blocks · GitLab. These are primarily variations from Right Sidebar Blocks.

For detailed information on each block, like the component name, available parameters and template layout, refer to their README file.

24개의 좋아요

This is really cool, Manuel, good job! :+1:

4개의 좋아요

@manuel 이 기능으로 커스텀 페이지를 만들고 사이드바 내비게이션에 추가할 수도 있나요?

이것은 사용자 정의 홈페이지 라우트를 위한 레이아웃 솔루션입니다. 물론 다른 새 라우트에서도 유사한 것을 사용할 수 있습니다. 하지만 이러한 라우트를 생성하고 앱에 통합하는 것은 별개의 작업입니다.

1개의 좋아요
Error: Attempted to resolve a dynamic component with a string definition, `block-banner` in a strict mode template. In strict mode, using strings to resolve component definitions is prohibited. You can instead import the component definition and use it directly.

이런 오류가 발생해요

1개의 좋아요

@xin_wei 님, 보고해 주셔서 감사합니다. 다만 Discourse 버전 3.6.0.beta1-dev 환경에서 Manuel Kostka / Discourse / Blocks / Banner · GitLab 의 제 블록 컴포넌트를 사용해도 재현할 수 없습니다.