mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-12 03:00:28 +00:00
4da27f6a4b
* Initial Commit * Fix Twitter description * Improve image preview name Thanks @simonbaird * Add control panel UI for social media cards
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
title: $:/core/ui/ControlPanel/SocialCard
|
|
tags: $:/tags/ControlPanel/Advanced
|
|
caption: {{$:/language/ControlPanel/SocialCard/Caption}}
|
|
|
|
\define lingo-base() $:/language/ControlPanel/
|
|
|
|
<<lingo SocialCard/Hint>>
|
|
|
|
|<$link to="$:/SiteTitle"><<lingo Basics/Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
|
|
|<$link to="$:/SiteSubtitle"><<lingo Basics/Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
|
|
|<$link to="$:/SiteDomain"><<lingo SocialCard/Domain/Prompt>></$link> |<$edit-text tiddler="$:/SiteDomain" default="" tag="input"/> |
|
|
|<$link to="$:/SiteUrl"><<lingo SocialCard/Url/Prompt>></$link> |<$edit-text tiddler="$:/SiteUrl" default="" tag="input"/> |
|
|
|<$link to="$:/SitePreviewUrl"><<lingo SocialCard/PreviewUrl/Prompt>></$link> |<$edit-text tiddler="$:/SitePreviewUrl" default="" tag="input"/> |
|
|
|
|
<%if [[$:/SitePreviewUrl]get[text]else[]!is[blank]] %>
|
|
<div>
|
|
<div>
|
|
<<lingo SocialCard/PreviewUrl/Preview>>
|
|
</div>
|
|
<img src={{$:/SitePreviewUrl}}/>
|
|
</div>
|
|
<%endif%> |