aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-06-08 13:59:19 +0200
committerArthurHoaro <arthur@hoa.ro>2019-07-06 12:21:52 +0200
commit6a4872520cbbc012b5a8358cd50c78844afe8d07 (patch)
treebf7ce75b0c93a95d8e7a805b1ebfbe8d90a9565a /tpl/default
parent5d8a958d5d139337546bb3f4091a6ef7592ea752 (diff)
downloadShaarli-6a4872520cbbc012b5a8358cd50c78844afe8d07.tar.gz
Shaarli-6a4872520cbbc012b5a8358cd50c78844afe8d07.tar.zst
Shaarli-6a4872520cbbc012b5a8358cd50c78844afe8d07.zip
Automatically retrieve description for new bookmarks
If the option is enabled, it will try to find a meta tag containing the page description and keywords, just like we do for the page title. It will either look for regular meta tag or OpenGraph ones. The option is disabled by default. Note that keywords meta tags is mostly not used. In `configure` template, the variable associated with this setting is `$retrieve_description`. Fixes #1302
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/configure.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/tpl/default/configure.html b/tpl/default/configure.html
index 7a87c05d..83033624 100644
--- a/tpl/default/configure.html
+++ b/tpl/default/configure.html
@@ -215,6 +215,22 @@
215 <div class="pure-g"> 215 <div class="pure-g">
216 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}"> 216 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
217 <div class="form-label"> 217 <div class="form-label">
218 <label for="retrieveDescription">
219 <span class="label-name">{'Automatically retrieve description for new bookmarks'|t}</span><br>
220 <span class="label-desc">{'Shaarli will try to retrieve the description from meta HTML headers'|t}</span>
221 </label>
222 </div>
223 </div>
224 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
225 <div class="form-input">
226 <input type="checkbox" name="retrieveDescription" id="retrieveDescription"
227 {if="$retrieve_description"}checked{/if}/>
228 </div>
229 </div>
230 </div>
231 <div class="pure-g">
232 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
233 <div class="form-label">
218 <label for="enableApi"> 234 <label for="enableApi">
219 <span class="label-name">{'Enable REST API'|t}</span><br> 235 <span class="label-name">{'Enable REST API'|t}</span><br>
220 <span class="label-desc">{'Allow third party software to use Shaarli such as mobile application'|t}</span> 236 <span class="label-desc">{'Allow third party software to use Shaarli such as mobile application'|t}</span>