Minima 主题

:discourse2: 摘要 Minima - 本主题的目标是精简用户界面,专注于文本内容。
:eyeglasses: 预览 在 Discourse 主题创建器中预览
:hammer_and_wrench: 仓库链接 https://github.com/discourse/minima
:open_book: 初次接触 Discourse 主题? Discourse 主题使用入门指南

安装此主题

功能

我已逐一检查并增大了字体,移除了几乎所有冗余内容(以及我平时不常用的功能)。例如,我知道“推荐话题”就是推荐话题,因此我移除了其标题。我在主题列表中批量选择的功能可能只用过两次,所以也移除了。主题列表中的浏览量?移除了。汉堡菜单中的分类?移除了。

您应该明白我的意思了,这就是该主题。

若追求极致的简洁,我建议在分类页面使用“仅分类”布局。


:discourse2: 由我们托管? 主题可在我们的标准版、商务版和企业版计划中使用。

39 个赞

Glorious serifs! I love it.

The desktop :hamburger: menu listing all the other themes seems odd to me, though.

5 个赞

I’m LOVING this theme, especially the topic list, amazing work :heart:


A couple of tiny issues in PM’s, a missing icon:

and I feel like the small size of the assigned text makes it hard to read, because the text has been made larger for just about everything else (Header, Suggested messages etc.)

Screenshot%20from%202019-02-08%2013-14-13

11 个赞

I love it, although losing the theme switcher from the nav on mobile did cause a brief moment of panic!

4 个赞

One of my users is reporting the Minima theme (which I love very much) does not show the “Dismiss” button when there are unread messages. He verified that Dismiss wasn’t just disappearing because there were no unreads - he said he switched to Minima and back from another theme while showing unreads and the button did not show up.

Is there a setting I might be missing on this, or anything else I should check? Thanks!

I managed to finally reproduce it:

Screenshots

Default board theme

Minima

5 个赞

I’ve added the dismiss button back, you’ll just need to update the theme.

10 个赞

Thanks so much! I will check it out!

1 个赞

Where can I find the Minima Dark theme?

1 个赞

Mínima Dark is a copy of Minima but using the color scheme from Material Dark.

7 个赞

你好,想请问一下,当启用选项在用户体验中优先显示全名还是用户名时,是否可以在主题列表中显示全名而不是用户名?

2 个赞

如果我们能按照我添加的白线将分类列表分开,那就太好了

2 个赞

我正在按照创建主题的指南(https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)进行操作,其中提到要修改模板(例如在列表中移除头像),需要修改 Discourse 核心中的 .hbr 文件。

您是否也这样操作来移除头像?我对这个主题的工作原理和使用方法有些困惑。

例如,在 Minima 主题中,我该如何更改每个用户的个人资料页面的外观和风格?

如果问题离题,还请见谅。

3 个赞

这取决于您想更改什么。如果您想移除或重新设计内容,很可能只需添加一些额外的 CSS 即可实现。如果您希望添加信息或大幅更改布局,则需要编辑模板文件。

在 Minima 主题中,我确实编辑了主题列表的模板,以重新定位或移除某些头像。您可以在此查看:https://github.com/discourse/minima/blob/master/desktop/header.html

如果您想使用 Minima 主题并添加额外的自定义功能,我建议安装 Minima,然后通过创建新的主题组件将您的自定义内容添加进去。这样,您仍然可以获取 Minima 的更新,而无需担心您的更改会被覆盖。

3 个赞

谢谢,@awesomerobot - 我会试试看。

我还有关于同一主题的后续问题。当 Discourse 更新且我需要更新软件时(假设我是自托管),这是否会导致模板被修改的主题出现问题?还是说它们之间没有依赖关系?

你过去遇到过类似的情况吗?

1 个赞

使用 minima 主题时,我无法归档直接消息(复选框已消失)。

3 个赞

我刚刚更新了主题,重新添加了该功能。感谢您的反馈!

5 个赞

我正在以 Minima 为基础构建我的主题,但有一件事让我百思不得其解:这段代码是从哪里来的?

<div class="byline">
    <a href="" data-user-card="joffreyjaffeux"><img alt="" width="20" height="20" src="https://sjc5.discourse-cdn.com/themecreator/user_avatar/theme-creator.discourse.org/joffreyjaffeux/40/2250_2.png" class="avatar" title="joffreyjaffeux" aria-label="joffreyjaffeux">joffreyjaffeux</a>
  </div>

当我切换到浅色主题时,它就消失了。Minima 没有任何可能操作 HTML 的 JavaScript。太令人困惑了!

2 个赞

我认为这是主题标题上方的头像

2 个赞

是的,我理解这一点。我是通过检查头像找到了我引用的代码。让我困惑的是这段代码的来源。它存在于 Minima 主题中,但在 Light 主题中却不存在(不仅仅是隐藏在 CSS 中)。是什么在生成这些 HTML?

1 个赞

哦,好的,我现在明白了。

它来自这个头文件:https://github.com/discourse/minima/blob/master/desktop/header.html

它重写了主题列表模板。

原始模板:https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/templates/list/topic-list-item.hbr

5 个赞