Code Monkey home page Code Monkey logo

Comments (4)

g1eny0ung avatar g1eny0ung commented on June 26, 2024 1

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.

Sp-cy avatar Sp-cy commented on June 26, 2024 1

Thank you for your time and knowledge. I am grateful for your help.

from hugo-theme-dream.

g1eny0ung avatar g1eny0ung commented on June 26, 2024

A little confused about the second point. Can you describe it in more detail?

from hugo-theme-dream.

Sp-cy avatar Sp-cy commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.