wobblyhead hg > wobbly_ssg
view example/tpl/page.html @ 0:71dd8d58a8e5 default tip
cleaned up re-init from net_wobblyhead_www project tooling
| author | ark |
|---|---|
| date | 2026-10-22 14:59 +0200 |
| parents | |
| children |
line wrap: on
line source
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{title}} - Example site</title> {% if metaDescription|isnotempty %}<meta name="description" content="{{metaDescription}}"> {% endif %}<link rel="canonical" href="{{pageUrl}}"> <meta property="og:type" content="website"> <meta property="og:site_name" content="Example site"> <meta property="og:title" content="{{title}}"> {% if metaDescription|isnotempty %}<meta property="og:description" content="{{metaDescription}}"> {% endif %}<meta property="og:url" content="{{pageUrl}}"> {% if ogImage|isnotempty %}<meta property="og:image" content="{{ogImage}}"> <meta property="og:image:width" content="{{ogImageWidth}}"> <meta property="og:image:height" content="{{ogImageHeight}}"> <meta name="twitter:card" content="summary_large_image"> {% endif %}{% if ogImageAlt|isnotempty %}<meta property="og:image:alt" content="{{ogImageAlt}}"> {% endif %}{% if ogImage|isempty %}<meta name="twitter:card" content="summary"> {% endif %}<link rel="stylesheet" href="{{relRoot}}style.css"> </head> <body> <header class="site-head"> <p class="site-title"><a href="{{relRoot}}index.html">Example site</a></p> <ul class="site-nav"> <li><a href="{{relRoot}}notes/index.html">Notes</a></li> <li><a href="{{relRoot}}about.html">About</a></li> </ul> </header> <main> {% if tags|isnotempty %} <ul class="tags"> {% loop tags %}<li><a href="{{url}}">{{name}}</a></li> {% endloop %}</ul> {% endif %} {% if createdDate|isnotempty %} <p class="created"><time datetime="{{created_at}}">{{createdDate}}</time></p> {% endif %} <h1>{{title}}</h1> {% if subtitle|isnotempty %} <p class="subtitle">{{subtitle}}</p> {% endif %} {% if timeframe|isnotempty %} <p class="timeframe">{{timeframe}}</p> {% endif %} {{body|literal}} {% if repository|isnotempty %} <p class="page-link"><a href="{{repository}}">Source repository</a></p> {% endif %} {% if crossrefUrl|isnotempty %} <p class="page-link"><a href="{{crossrefUrl}}">See also</a></p> {% endif %} {{footnotes|literal}} {% if updatedDate|isnotempty %} <p class="updated">Last updated <time datetime="{{updated_at}}">{{updatedDate}}</time></p> {% endif %} </main> <footer class="site-foot"> <p><a href="{{relRoot}}index.html">Home</a></p> </footer> </body> </html>
