HTMLを綺麗に
This commit is contained in:
@@ -7,15 +7,15 @@
|
||||
<title>{{ SITEINFO['title'] }}: {{ $pagetit }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/style.css" />
|
||||
{@ if (isset($custCss) && !empty($custCss) && !is_bool($custCss)) @}
|
||||
{@ foreach ($custCss as $css) @}
|
||||
{@ foreach ($custCss as $css) @}
|
||||
{{{ $css }}}
|
||||
{@ endforeach @}
|
||||
{@ endforeach @}
|
||||
{@ endif @}
|
||||
{@ if (isset($meta)) @}
|
||||
<meta name="author" content="{{ $meta->author }}" />
|
||||
{@ if (isset($meta->thumbnail)) @}
|
||||
{@ if (isset($meta->thumbnail)) @}
|
||||
<meta name="thumbnail" content="/static/{{ $meta->thumbnail }}" />
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
<meta name="description" content="{{ $description }}" />
|
||||
<meta name="keywords" content="{{ SITEINFO['tags'].',' }}{@ if (isset($meta)) @}{@ foreach ($meta->category as $cat) @}{{ $cat.',' }}{@ endforeach @}{@ endif @}" />
|
||||
@@ -24,23 +24,23 @@
|
||||
<meta property="og:description" content="{{ $description }}" />
|
||||
<meta property="og:type" content="{{ isset($meta) && isset($meta->thumbnail) ? 'article' : 'website' }}" />
|
||||
<meta property="og:url" content="{{ isset($_SERVER['REQUEST_URI']) ? 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : 'https://'.$_SERVER['HTTP_HOST'] }}" />
|
||||
{@ if (isset($meta) && isset($meta->thumbnail)) @}
|
||||
{@ if (isset($meta) && isset($meta->thumbnail)) @}
|
||||
<meta property="og:image" content="https://{{ $_SERVER['HTTP_HOST'] }}/static/article/{{ $meta->thumbnail }}" />
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
|
||||
{@ if (TWITTER_HANDLE != '') @}
|
||||
{@ if (TWITTER_HANDLE != '') @}
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:card" content="{{ TWITTER_HANDLE }}" />
|
||||
<meta name="twitter:title" content="{{ SITEINFO['title'] }}: {{ $pagetit }}" />
|
||||
<meta name="twitter:url" content="{{ isset($_SERVER['REQUEST_URI']) ? 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : 'https://'.$_SERVER['HTTP_HOST'] }}" />
|
||||
<meta name="twitter:description" content="{{ $description }}" />
|
||||
{@ if (isset($meta) && isset($meta->thumbnail)) @}
|
||||
{@ if (isset($meta) && isset($meta->thumbnail)) @}
|
||||
<meta name="twitter:image:src" content="https://{{ $_SERVER['HTTP_HOST'] }}/static/article/{{ $meta->thumbnail }}" />
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
{@ if (ATOM_ENABLED) @}
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
{@ if (ATOM_ENABLED) @}
|
||||
<link rel="alternate" type="application/atom+xml" title="{{ SITEINFO['title'] }} feed" href="/blog.atom" />
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -50,10 +50,10 @@
|
||||
</div>
|
||||
<nav>
|
||||
{@ foreach ($menu as $m) @}
|
||||
{@ if ($m['show']) @}
|
||||
{@ if ($m['show']) @}
|
||||
<a class="{{ $m['class'] }}{{ $curPage == $m['page'] ? ' active' : '' }}" href="{{ $m['href'] }}">{{ $m['text'] }}</a>
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
{@ endforeach @}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<main>
|
||||
Reference in New Issue
Block a user