Code Monkey home page Code Monkey logo

Comments (4)

megane9988 avatar megane9988 commented on June 16, 2024 1

@yasulab 以下とかぶってます!
#19

ただ、こちらのほうが丁寧なので、向こう側をクローズしまーす!

from dojocon2018.coderdojo.jp.

yasulab avatar yasulab commented on June 16, 2024 1

@megane9988 まだ試してないですが、多分こんな感じでいけるはず...? 🤔💭 cc/ @kawahara

<meta property="og:image" content="{{ デフォルト値1 | デフォルト値2 | デフォルト値3 }}"/>
  • デフォルト値1 = この値が null でなければ、この値が最も優先されて代入される
  • デフォルト値2 = デフォルト値1が null なら、この値が次に優先されて代入される
  • デフォルト値3 = デフォルト値1もデフォルト値2も null なら、この値が代入される
    • => この値を mainvisual.png とかにするイメージです 💭

cf. https://github.com/oss-gate/oss-gate.github.io/blob/master/_includes/head.html

ご参考になれば幸いです! 😸

from dojocon2018.coderdojo.jp.

megane9988 avatar megane9988 commented on June 16, 2024

@yasulab

参考サイトを見る限り

{{ デフォルト値1 | デフォルト値2 | デフォルト値3 }} この書き方は、第1の値をトリムしたり、何かを付与したりという処理をされてるっぽいような気がしました。

ので普通に条件分岐で実装しました。おかしかったら修正ください!ということで、このissueは開けときます。

from dojocon2018.coderdojo.jp.

yasulab avatar yasulab commented on June 16, 2024

お、確かにその認識の方があっているっぽいですね 🤔
https://forestry.io/blog/what-s-new-in-jekyll-3-4-0/

もしかしたらもっと良い書き方もあるかもしれませんが、本題の Issue の方は解決できているので一先ず Issue は閉じちゃいますね ;)
https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fdojocon2018.coderdojo.jp%2Fsession%2Ftakashi-hosoya.html

早速のご対応ありがとうございました! 😸

from dojocon2018.coderdojo.jp.

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.