You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
683 B
HTML

{%- assign page_paths = site.header_pages | default: default_paths -%}
<header>
<div class="menu">
<ul><li>
<? php
function randomtext() {
$lines = file("/var/www/pickmy/taglines.txt") ;
return $lines[array_rand($lines)] ;
}
randomtext();
?></li>
{%- for path in page_paths -%}
{%- assign my_page = site.pages | where: "path", path | first -%}
{%- if my_page.title == '/git' -%}
<li><a href="https://git.pickmy.org">/git</a></li>
{%- else -%}
<li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
{%- endif -%}
{%- endfor -%}
</ul>
</div>
</header>