improve appearance
This commit is contained in:
		| @@ -1,34 +1,68 @@ | ||||
| {{ define "main" }} | ||||
|   <h1>{{ .Title }}</h1> | ||||
|   <h1>  | ||||
|     {{ $hash := md5 .Title }} | ||||
|     {{ $r := printf "0x%s" (substr $hash 0 2) | int }} | ||||
|     {{ $g := printf "0x%s" (substr $hash 2 2) | int }} | ||||
|     {{ $b := printf "0x%s" (substr $hash 4 2) | int }} | ||||
|     {{ $rgba := printf "rgba(%d,%d,%d,0.2)" $r $g $b }} | ||||
|     <span  | ||||
|     class="term-title" | ||||
|     style="background:rgba({{ $r }},{{ $g }},{{ $b }},0.4)"> | ||||
|     {{ .Title }} | ||||
|     </span> | ||||
|   </h1> | ||||
|   {{ .Content }} | ||||
|   <section id="tools-list"> | ||||
|     <h2>Tools</h2> | ||||
|   <table id="taxonomy-table"> | ||||
|     <thead> | ||||
|       <tr> | ||||
|         <th>Tool</th> | ||||
|         <th>Developers</th> | ||||
|         <th>License</th> | ||||
|         <th>Purposes</th> | ||||
|         <!-- <th>License</th> --> | ||||
|         <th>Description</th> | ||||
|         <!-- <th>Developers</th> --> | ||||
|       </tr> | ||||
|     </thead> | ||||
|     <tbody> | ||||
|       {{ range .Pages }} | ||||
|         <tr> | ||||
|           <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td> | ||||
|           <td> | ||||
|         <tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;"></tr> | ||||
|           <td class="tool"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td> | ||||
|           <td class="description">{{ .Content | truncate 200 }}</td> | ||||
|           <!-- <td> | ||||
|             {{ $sep := "" }} | ||||
|             {{ range $key, $vals := .Params }} | ||||
|               {{ if (in (slice "tags" "categories" "series") $key) }} | ||||
|                 {{ $sep }} | ||||
|                 <strong>{{ $key | title }}:</strong> | ||||
|                 {{ range $i, $val := $vals }} | ||||
|                   {{ if $i }}, {{ end }}{{ $val }} | ||||
|                 {{ end }} | ||||
|                 {{ $sep = "; " }} | ||||
|               {{ if (in (slice "applications") $key) }} | ||||
|           {{ $sep }} | ||||
|           {{ range $i, $val := $vals }} | ||||
|             {{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }} | ||||
|           {{ end }} | ||||
|           {{ $sep = "; " }} | ||||
|               {{ end }} | ||||
|             {{ end }} | ||||
|           </td> | ||||
|           </td> --> | ||||
|           <!-- <td> | ||||
|             {{ $sep := "" }} | ||||
|             {{ range $key, $vals := .Params }} | ||||
|               {{ if (in (slice "developers") $key) }} | ||||
|           {{ $sep }} | ||||
|           {{ range $i, $val := $vals }} | ||||
|             {{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }} | ||||
|           {{ end }} | ||||
|           {{ $sep = "; " }} | ||||
|               {{ end }} | ||||
|             {{ end }} | ||||
|           </td> --> | ||||
|           <!-- <td> | ||||
|             {{ $sep := "" }} | ||||
|             {{ range $key, $vals := .Params }} | ||||
|               {{ if (in (slice "licenses") $key) }} | ||||
|           {{ $sep }} | ||||
|           {{ range $i, $val := $vals }} | ||||
|             {{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }} | ||||
|           {{ end }} | ||||
|           {{ $sep = "; " }} | ||||
|               {{ end }} | ||||
|             {{ end }} | ||||
|           </td> --> | ||||
|         </tr> | ||||
|       {{ end }} | ||||
|     </tbody> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user