Skip to content

Commit

Permalink
Add meta tags for author and copyright.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Mar 22, 2021
1 parent ddc5129 commit c73e2fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion common/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes" />
<?php if ($description = option('description')): ?>
<?php if ($author = option('author')): ?>
<meta name="author" content="<?php echo $author; ?>" />
<?php endif; ?>
<?php if ($copyright = option('copyright')): ?>
<meta name="copyright" content="<?php echo $copyright; ?>" />
<?php endif; ?>
<?php if ($description = option('description')): ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php endif; ?>

Expand Down

0 comments on commit c73e2fb

Please sign in to comment.