Comments (4)
Know about it, I have already added the mastodon icon.
You can config it as:
[params]
mastodon = ""
The first question, because the youtube animated preview is .webp
file and it won't be fully supported in modern browsers, so I still recommend u to use its static thumbnail.
For the third question, after I researched, I found that it's difficult to make a twitter widget card responsive because it will insert an iframe with a different origin. The js can't access the iframe contents due to the Same-origin policy.
The width of the card is limit in the range [250, 550]px. You can view more details in https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/guides/embedded-tweet-parameter-reference.
But I still optimized its display a bit (within my ability), at least it won't overflow now. And for performance considerations, you also need to set a parameter:
[params]
hasTwitterEmbed = true
After setting this, you can safely remove the async script(<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
) in the generated code.
from hugo-theme-dream.
Thank you for your time and knowledge. I am grateful for your help.
from hugo-theme-dream.
A little confused about the second point. Can you describe it in more detail?
from hugo-theme-dream.
Mastodon is a new social network, i can't find the logo in the brand's font file. It's moderately popular.
from hugo-theme-dream.
Related Issues (20)
- JS is loaded from CDN and has no SRI HOT 5
- Lack of Subresource Integrity HOT 1
- 无法将最后修改时间设置为git提交时间 HOT 4
- Is it possible to use 2 different avatars on Home and About/flip? HOT 4
- i18n should be contained in 1 folder HOT 3
- Plan to rewrite with Bulma HOT 4
- Clicking on tags brings up broken XML page HOT 9
- Featured posts HOT 4
- Series Taxonomy HOT 3
- Search doesn't work in production HOT 3
- Any way to integrate terminal like code UI for sharing snippets? HOT 1
- Active fork HOT 3
- Demo is 404 HOT 2
- Stale bot spam HOT 2
- HUGO更新到v0.124.1之后生成站点出现报错 HOT 3
- 你好使用了您的主题,非常好 ,不过现在遇到了一个问题 HOT 14
- 请问首页怎样才能选择显示多少篇文章 HOT 6
- Support TOC in v3 HOT 2
- 请问我打开了TOC 不知道为什么页面并不显示目录。 HOT 13
- markdown的代码块部分缺少了滚动条 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-dream.