hongy19’s blog
Archie
I use simple hugo theme Archie, it is very simple theme and I like. But there are several issues you need to notice
- bulletin issue:
Html of my bulletin is very strange ( * and bulletin are not on same line ) since I has sub-bulletin. Markdown requirement is list item includes “block content”, need to use to include block.
We need to change it it inline in custom.css.
<p>authentication mechanism and password scheme</p>
</li>
[params]
customcss = ["css/custom.css"]
li > p {
display: inline;
}
- menu: Default Archie theme has no menu and you need to create menu for posts, category, tag and rss.
mode="auto" # color-mode → light,dark,toggle or auto
useCDN=false # don't use CDNs for fonts and icons, instead serve them locally.
subtitle = "hongy19's blog"
mathjax = true # enable MathJax support
katex = true # enable KaTeX support
[taxonomies]
category = "categories"
tags = "tags"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "All posts"
url = "/posts"
weight = 2
[[menu.main]]
name = "Category"
url = "/categories"
weight = 3
[[menu.main]]
name = "Tags"
url = "/tags"
weight = 4
[[menu.main]]
name = "RSS"
url = "/index.xml"
weight = 5```
- title link: In hugo.toml, I set baseUrl but title link is ‘https://www.hongy19.net’, not ‘https://www.hongy19.net/blog/'
baseURL = 'https://www.hongy19.net/blog/'
With help of ChatGPT, fix is simple, update “themes/archie/layouts/partials/head.html”
…hugo
- hugo new site blog
- cd blog
- git submodule add https://github.com/athul/archie.git themes/archie/
- echo “theme = ‘archie’” » hugo.toml
- hugo new content content/posts/my-first-post.md
- hugo server –buildDrafts
- hugo server -D
- ssh -L 1313:localhost:1313 user@vps
- open brower at laptop and access 127.0.0.1:1313
dovecot configuration
-
authentication mechanism and password scheme
- link
- authentication mechanism -> how password is transferred from cilent from server; passwd scheme: how password is stored in server.
-
plain and plaintext
- auth_mechanisms = plain
- disable_plaintext_auth = yes
- plain is one protocol of authentication mechanism, password is plaintext; “disable_plaintext_auth=yes” means ssl/tls is mandatory.
-
service
- service = 一个独立运行的 Dovecot 功能组件
- service imap-login # IMAP 登录
- service imap # IMAP 邮件操作
- service pop3-login # POP3 登录
- service pop3 # POP3 邮件收取
- service auth # 账号密码验证
- service lda # 本地邮件投递
- 只有被 Dovecot 启用的协议 / 功能,对应的 service 才会真正运行
- /etc/dovecot/dovecot.conf
- protocols = imap pop3 lmtp
- 写了 imap → 启动 imap-login + imap, 写了 pop3 → 启动 pop3-login + pop3,没写的协议 → 对应的 service 完全不运行
- service = 一个独立运行的 Dovecot 功能组件
-
namespace
…