|
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | +<html> |
| 3 | + |
| 4 | +### fairpm Planet HTML template |
| 5 | +### (was) Fancy Planet HTML template. |
| 6 | +### |
| 7 | +### When combined with the stylesheet and images in the output/ directory |
| 8 | +### of the Planet source, this gives you a much prettier result than the |
| 9 | +### default examples template and demonstrates how to use the config file |
| 10 | +### to support things like faces |
| 11 | +### |
| 12 | +### For documentation on the more boring template elements, see |
| 13 | +### examples/config.ini and examples/index.html.tmpl in the Planet source. |
| 14 | + |
| 15 | +<head> |
| 16 | +<title><TMPL_VAR name></title> |
| 17 | +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 18 | +<meta name="generator" content="<TMPL_VAR generator ESCAPE="HTML">"> |
| 19 | +<link rel="stylesheet" href="planet.css" type="text/css"> |
| 20 | +<TMPL_IF feedtype> |
| 21 | +<link rel="alternate" href="<TMPL_VAR feed ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">" type="application/<TMPL_VAR feedtype>+xml"> |
| 22 | +</TMPL_IF> |
| 23 | +</head> |
| 24 | + |
| 25 | +<body> |
| 26 | + |
| 27 | +<div id="page" class="site"> |
| 28 | +<header class="site-header"> |
| 29 | +<div class="site-branding"> |
| 30 | + <div class="site-title"> |
| 31 | + <a href="https://fair.pm/" rel="home" aria-current="page"> |
| 32 | + <svg width="32px" height="32px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1,.cls-2{fill:none;stroke:#fff;stroke-linecap:round;stroke-width:1.5px;}.cls-1{stroke-linejoin:bevel;}.cls-2{stroke-linejoin:round;}</style></defs><g id="ic-folder-download"><line class="cls-1" x1="17" y1="11.93" x2="17" y2="22.07"></line><path class="cls-1" d="M14,19.31l2.58,2.57a.62.62,0,0,0,.89,0L20,19.35"></path><path class="cls-2" d="M8,20.3H4a2,2,0,0,1-2-2V7.3H20a2,2,0,0,1,2,2"></path><path class="cls-2" d="M2,11.1v-6a1,1,0,0,1,.91-1h8.86a.89.89,0,0,1,.64.29L14,7.3"></path></g></svg> FAIR </a> |
| 33 | + </div> |
| 34 | + <p class="site-description"> |
| 35 | + Federated and Independent Repositories </p> |
| 36 | +</div> |
| 37 | +<nav id="nav" class="nav-primary nav-menu" aria-label="Main"> |
| 38 | + <div id="menu-items-wrapper" class="menu-items-wrapper" style="top: 0px; height: auto;"> |
| 39 | + <ul id="main-menu" class="menu-items" itemscope="" itemtype="http://www.schema.org/SiteNavigationElement"><li id="menu-item-32" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home current-menu-item page_item page-item-11 current_page_item active menu-item-32"><a itemprop="url" href="https://fair.pm/" class="nav-link" aria-current="page"><span itemprop="name">fair.pm</span></a></li></ul> |
| 40 | + </div> |
| 41 | +</nav> |
| 42 | +</header> |
| 43 | + |
| 44 | +<h1><TMPL_VAR name></h1> |
| 45 | +<TMPL_VAR admin> |
| 46 | + |
| 47 | +<TMPL_LOOP Items> |
| 48 | +<TMPL_IF new_date> |
| 49 | +<TMPL_UNLESS __FIRST__> |
| 50 | +### End <div class="channelgroup"> |
| 51 | +</div> |
| 52 | +### End <div class="daygroup"> |
| 53 | +</div> |
| 54 | +</TMPL_UNLESS> |
| 55 | +<div class="daygroup"> |
| 56 | +<h2><TMPL_VAR new_date></h2> |
| 57 | +</TMPL_IF> |
| 58 | + |
| 59 | +<TMPL_IF new_channel> |
| 60 | +<TMPL_UNLESS new_date> |
| 61 | +### End <div class="channelgroup"> |
| 62 | +</div> |
| 63 | +</TMPL_UNLESS> |
| 64 | +<div class="channelgroup"> |
| 65 | + |
| 66 | +### Planet provides template variables for *all* configuration options for |
| 67 | +### the channel (and defaults), even if it doesn't know about them. We |
| 68 | +### exploit this here to add hackergotchi faces to our channels. Planet |
| 69 | +### doesn't know about the "face", "facewidth" and "faceheight" configuration |
| 70 | +### variables, but makes them available to us anyway. |
| 71 | + |
| 72 | +<h3><a href="<TMPL_VAR channel_link ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">"><TMPL_VAR channel_name></a></h3> |
| 73 | +<TMPL_IF channel_face> |
| 74 | +<img class="face" src="images/<TMPL_VAR channel_face ESCAPE="HTML">" width="<TMPL_VAR channel_facewidth ESCAPE="HTML">" height="<TMPL_VAR channel_faceheight ESCAPE="HTML">" alt=""> |
| 75 | +</TMPL_IF> |
| 76 | +</TMPL_IF> |
| 77 | + |
| 78 | + |
| 79 | +<div class="entrygroup" id="<TMPL_VAR id>"<TMPL_IF channel_language> lang="<TMPL_VAR channel_language>"</TMPL_IF>> |
| 80 | +<TMPL_IF title> |
| 81 | +<h4<TMPL_IF title_language> lang="<TMPL_VAR title_language>"</TMPL_IF>><a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_VAR title></a></h4> |
| 82 | +</TMPL_IF> |
| 83 | +<div class="entry"><a class="overlay" href="<TEMPL_VAR link ESCAPE="HTML">"></a> |
| 84 | +<div class="content"<TMPL_IF content_language> lang="<TMPL_VAR content_language>"</TMPL_IF>> |
| 85 | +<TMPL_VAR content> |
| 86 | +<a class="button" href="<TEMPL_VAR link ESCAPE="HTML">">Read Post at <TEMPL_VAR channel_name></a> |
| 87 | +</div> |
| 88 | + |
| 89 | +### Planet also makes available all of the information from the feed |
| 90 | +### that it can. Use the 'planet-cache' tool on the cache file for |
| 91 | +### a particular feed to find out what additional keys it supports. |
| 92 | +### Comment extra fields are 'author' and 'category' which we |
| 93 | +### demonstrate below. |
| 94 | + |
| 95 | +<p class="date"> |
| 96 | +<a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_IF author>by <TMPL_VAR author ESCAPE="HTML"> at </TMPL_IF><TMPL_VAR date><TMPL_IF category> under <TMPL_VAR category></TMPL_IF></a> |
| 97 | +</p> |
| 98 | +</div> |
| 99 | +</div> |
| 100 | + |
| 101 | +<TMPL_IF __LAST__> |
| 102 | +### End <div class="channelgroup"> |
| 103 | +</div> |
| 104 | +### End <div class="daygroup"> |
| 105 | +</div> |
| 106 | +</TMPL_IF> |
| 107 | +</TMPL_LOOP> |
| 108 | + |
| 109 | + |
| 110 | +<div class="sidebar"> |
| 111 | + |
| 112 | +<h2>Subscriptions</h2> |
| 113 | +<ul> |
| 114 | +<TMPL_LOOP Channels> |
| 115 | +<li> |
| 116 | +[<a href="<TMPL_VAR url ESCAPE="HTML">" title="subscribe">RSS</a>] <a <TMPL_IF link>href="<TMPL_VAR link ESCAPE="HTML">" </TMPL_IF><TMPL_IF message>class="message" title="<TMPL_VAR message ESCAPE="HTML">"</TMPL_IF><TMPL_UNLESS message>title="<TMPL_VAR title_plain ESCAPE="HTML">"</TMPL_UNLESS>><TMPL_VAR name></a> |
| 117 | +</li> |
| 118 | +</TMPL_LOOP> |
| 119 | +</ul> |
| 120 | + |
| 121 | +<p> |
| 122 | +<span> |
| 123 | +<strong>Last updated:</strong><br> |
| 124 | +<TMPL_VAR date><br> |
| 125 | +<em>All times are UTC.</em><br> |
| 126 | +<br> |
| 127 | +Powered by:<br> |
| 128 | +<a href="http://www.planetplanet.org/"><img src="images/planet.png" width="80" height="15" alt="Planet" border="0"></a> |
| 129 | +</span> |
| 130 | +</p> |
| 131 | + |
| 132 | +</div> |
| 133 | +</div><!-- #page .site --> |
| 134 | +</body> |
| 135 | + |
| 136 | +</html> |
0 commit comments