When creating a #
webpage in #
Hubzilla, one has the option to fill the field
Title (Optional). When filling it, the content of this field is put into the
<head><title>...</title><head>
-tag of that webpage.
When not filling it, the same html tag will contain " - ". Side note/suggestion: It might be useful to indicate this behavour by naming the field "Title (Optional, if left empty: - )"Now concerning the feature request: It would be very helpful to be able to fill two more fields in exactly the same way, one for
Description (Optional) (which would put its content into
<head><meta name="description" content="..."><head>
of that webpage) and one for
Keywords (Optional, comma separated) (which would put its content into
<head><meta name="keywords" content="..."><head>
of that webpage). A such new feature would allow us to use
one single layout as a layout template
for multiple webpages.
My workaround for now uses several duplicates of the same layout, each copy only varying in the line
[block][var=wrap]none[/var]webpage1-meta[/block]
(by refering to another block
webpage2-meta
,
webpage3-meta
, etc. instead). Each webpage in this workaround case has to use its own layout.
The layouts of the workaround:
[template]zen[/template]
[region=htmlhead]
[block][var=wrap]none[/var]webpage1-meta[/block]
[block][var=wrap]none[/var]favicon[/block]
[comment]
Include the CSS blocks
[/comment]
[block][var=wrap]none[/var]bootstrap-css[/block]
[block][var=wrap]none[/var]style-css[/block]
[/region]
[region=content]
[block][var=wrap]none[/var]header[/block]
$content
[block][var=wrap]none[/var]footer[/block]
[comment]
Include the JavaScript
[/comment]
[js]jquery[/js]
[js]bootstrap[/js]
[block][var=wrap]none[/var]main-js[/block]
[/region]
The blocks
webpage1-meta
,
webpage2-meta
,
webpage3-meta
... of the workaround:
<meta name="description" content="This is the description of the webpage1/2/3... " />
<meta name="keywords" content="Keyword1,Keyword2,etc">
I'm not a software developer, but if the community is agreeing on the usefulness of this feature, I'm offering to support the development of it with a bounty of € 30.
!
Zotlabs|Hubzilla Development !
Hubzilla Support Forum