<p><strong>{{ title }}</strong></p>

<p>Word Count: {{ word_count }}</p>
{% if meta.primary_keyword %}
{#<?php if(isset($meta['primary_keyword']) && $meta['primary_keyword']): ?>#}
<table class="table">
	<thead>
		<tr>
			<th class="p1cm-keyword-column">Primary Keywords</th>
			<th class="p1cm-count-column">Density</th>
			<th class="p1cm-rank-column">Rank</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>{{ meta.primary_keyword }}</td>
			<td>{% if meta.primary_density %}{{ meta.primary_density }}%{% endif %}</td>
                        <td>{% if meta.primary_rank %}{{ meta.primary_rank }}{% else %}--{% endif %}</td>
		</tr>
	</tbody>
</table>
{% endif %}
{#<?php endif; ?>#}
{% if meta.secondary_keyword1 or meta.secondary_keyword2 or meta.secondary_keyword3 or meta.secondary_keyword4 %}
{#<?php if((isset($meta['secondary_keyword1']) && $meta['secondary_keyword1'])
      || (isset($meta['secondary_keyword2']) && $meta['secondary_keyword2'])
      || (isset($meta['secondary_keyword3']) && $meta['secondary_keyword3'])
      || (isset($meta['secondary_Keyword4']) && $meta['secondary_keyword4'])): ?>#}
<table class="table">
	<thead>
		<tr>
			<th class="p1cm-keyword-column">Secondary Keywords</th>
			<th class="p1cm-count-column">Density</th>
			<th class="p1cm-rank-column">Rank</th>
		</tr>
	</thead>
	<tbody>
            {% if meta.secondary_keyword1 %}
		<tr>
			<td>{{ meta.secondary_keyword1 }}</td>
			<td>{% if meta.secondary_density1 %}{{ meta.secondary_density1 }}%{% endif %}</td>
			<td>{% if meta.secondary_rank1 %}{{ meta.secondary_rank1 }}{% else %}--{% endif %}</td>
		</tr>
            {% endif %}
            {% if meta.secondary_keyword2 %}
		<tr>
			<td>{{ meta.secondary_keyword2 }}</td>
			<td>{% if meta.secondary_density2 %}{{ meta.secondary_density2 }}%{% endif %}</td>
			<td>{% if meta.secondary_rank2 %}{{ meta.secondary_rank2 }}{% else %}--{% endif %}</td>
		</tr>
            {% endif %}
            {% if meta.secondary_keyword3 %}
		<tr>
			<td>{{ meta.secondary_keyword3 }}</td>
			<td>{% if meta.secondary_density3 %}{{ meta.secondary_density3 }}%{% endif %}</td>
			<td>{% if meta.secondary_rank3 %}{{ meta.secondary_rank3 }}{% else %}--{% endif %}</td>
		</tr>
            {% endif %}
            {% if meta.secondary_keyword4 %}
		<tr>
			<td>{{ meta.secondary_keyword4 }}</td>
			<td>{% if meta.secondary_density4 %}{{ meta.secondary_density4 }}%{% endif %}</td>
			<td>{% if meta.secondary_rank4 %}{{ meta.secondary_rank4 }}{% else %}--{% endif %}</td>
		</tr>
            {% endif %}
	</tbody>
</table>
{% endif %}
<table class="table">
	<tr>
		<th class="p1cm-heading-column">Authorship Data</th>
		<td class="p1cm-content-column" id="p1cm-has-author">{% if has_author %}Yes{% else %}No{% endif %}</td>
		<th class="p1cm-heading-column">Publisher Data</th>
		<td class="p1cm-content-column" id="p1cm-has-publisher">{% if has_publisher %}Yes{% else %}No{% endif %}</td>
	</tr>
	<tr>
		<th>Internal Links</th>
		<td id="p1cm-internal-links">{{ internal_links }}</td>
		<th>External Links</th>
		<td id="p1cm-external-links">{{ external_links }}</td>
	</tr>
	<tr>
		<th>Image</th>
		<td id="p1cm-has-image">{% if has_image %}Yes{% else %}No{% endif %}</td>
		<th>Video</th>
		<td id="p1cm-has-video">{% if has_video %}Yes{% else %}No{% endif %}</td>
	</tr>
</table>
