HTMLを綺麗に、色んなテスト関係関数の修正
This commit is contained in:
@@ -12,13 +12,15 @@
|
||||
{@ endforeach @}
|
||||
{@ endif @}
|
||||
{@ if (isset($meta)) @}
|
||||
{@ if (isset($meta->author)) @}
|
||||
<meta name="author" content="{{ $meta->author }}" />
|
||||
{@ endif @}
|
||||
{@ if (isset($meta->thumbnail)) @}
|
||||
<meta name="thumbnail" content="/static/{{ $meta->thumbnail }}" />
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
<meta name="description" content="{{ $description }}" />
|
||||
<meta name="keywords" content="{{ SITEINFO['tags'].',' }}{@ if (isset($meta)) @}{@ foreach ($meta->category as $cat) @}{{ $cat.',' }}{@ endforeach @}{@ endif @}" />
|
||||
<meta name="keywords" content="{{ SITEINFO['tags'].(isset($meta->category) ? ',' : '') }}{@ if (isset($meta) && isset($meta->category)) @}{@ foreach ($meta->category as $k => $cat) @}{{ $cat.($k === array_key_last($meta->category) ? '' : ',') }}{@ endforeach @}{@ endif @}" />
|
||||
|
||||
<meta property="og:title" content="{{ SITEINFO['title'] }}: {{ $pagetit }}" />
|
||||
<meta property="og:description" content="{{ $description }}" />
|
||||
@@ -46,7 +48,7 @@
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="logo">
|
||||
{{ SITEINFO['title'] }}
|
||||
{{ SITEINFO['title'] }}{{ "\n" }}
|
||||
</div>
|
||||
<nav>
|
||||
{@ foreach ($menu as $m) @}
|
||||
|
||||
Reference in New Issue
Block a user