dillonzq / LoveIt

❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://hugoloveit.com
MIT License
3.38k stars 1.07k forks source link

[BUG] Some problem... #766

Open steven-purcell opened 1 year ago

steven-purcell commented 1 year ago

Describe the bug 描述你遇到的错误

The Mastodon social link does not correctly route to the Mastodon user. It instead includes the origin URL followed by the social link. A clear and concise description of what the bug is. 一段简短的对于你遇到的错误的描述.

Expected behavior 期待的行为

The expected behavior is that clicking the Mastodon social link should route to the mastodon instance and user indicated. Instead, it will error because the Mastodon link is prefixed with the origin website domain. A clear and concise description of what you expected to happen. 一段简短的对于你期待的行为的描述.

Screenshots 屏幕截图

If applicable, add screenshots to help explain your problem. 如果可以的话, 提供屏幕截图对解决问题很有帮助.

Build Environment 构建环境

Please try to use Hugo extended version before opening the issue. 请在创建 issue 之前先尝试使用 Hugo extended 版本构建.

Preview Environment 预览环境

Additional Information 补充信息

Configuration files or front matter code... 配置文件或者前置参数的代码...

csaez commented 1 year ago

Hi there, In my case it doesn't error, but stops my website from being marked as verified.

Current link: https://mastodon.social/@user@instance Desired link: https://instance/@user

csaez commented 1 year ago

I take it back, I wasn't aware of the ability to pass additional options to socials. https://github.com/dillonzq/LoveIt/blob/e4e7348362c9da8182cbe2168bac78a2ec82e0a8/exampleSite/content/posts/theme-documentation-basics/index.en.md?plain=1#L865

All seems to work as expected on my side :+1: