Currently the default homepage settings found in the admin panel and user preferences apply to both desktop and mobile. This is a very simple theme component that will allow you to specify a different default homepage for the small viewport version of your Discourse forum.
It is important to note that this will force anyone using a small viewport to navigate to the homepage you choose with this theme component. Your users will not be able to override the default homepage for the small viewport context via their user preferences at this point.
Theme Settings
There is one setting that will allow you to set the alternative homepage to one of the following:
latest (default)
new
top
categories
hot
Potential future work ideas
Allow users to override the default set via this component.
Thank you for this useful component.
Could you please help? While showing “Latest” by default on mobile, there is no option to choose “Categories” in top drop-down menu above topic list.
Thanks for creating this! How about future compatibility as the main Discourse app continues to evolve and is updated? Or is the theme component pretty future-friendly in that regard?
브라우저의 개발자 콘솔에서 이 멋진 테마 컴포넌트에 대한 비추천(deprecation) 알림을 받았습니다:
[THEME 50 ‘Force Mobile Homepage’] 비추천 알림: 사이트 초기화 중에 site.mobileView 또는 site.desktopView에 접근하면 브라우저 창 크기가 조정될 때 오류와 일관성 문제가 발생할 수 있습니다. 이러한 확인 로직을 페이지 렌더링 중에 실행되는 컴포넌트, 트랜스포머 또는 API 콜백으로 이동해 주세요. [Discourse 3.5.0.beta9-dev부터 비추천] [deprecation id: discourse.static-viewport-initialization] [info: Designing for Different Devices (Touch & Hover)]