improve appearance
This commit is contained in:
@ -1,9 +1,17 @@
|
||||
{{ define "main" }}
|
||||
<h1>404 Not Found</h1>
|
||||
<p>The page you requested cannot be found.</p>
|
||||
<p>
|
||||
<a href="{{ .Site.Home.RelPermalink }}">
|
||||
Return to the home page
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
<div id="page-header">
|
||||
<h1>Oh No!</h1>
|
||||
<span class="subtitle">This is not the page you are looking for.</span>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<p>This is really embarrassing, but the page you were looking for does not exist. It may have been moved or deleted.</p>
|
||||
<p>Please <a href="https://gitmoss.fyi/fmtools/content/issues/new" target="_blank">submit an issue</a> if you think this is a mistake, or you can go back to the <a href="{{ "/" | relLangURL }}">home page</a>.</p>
|
||||
</section>
|
||||
|
||||
<!-- {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<p class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p> -->
|
||||
|
||||
{{ end }}
|
||||
|
@ -1 +1,3 @@
|
||||
<p>Copyright {{ now.Year }}. All rights reserved.</p>
|
||||
<p><a href="/contribute">Contribute</a> | <a href="/about">About</a> | <a href="/license">License</a> | <a href="/privacy">Privacy</a> </p>
|
||||
<!-- <p>Open-source under <a href="">MIT License</a></p> -->
|
||||
<p>© Copyright {{ now.Year }}. An open-source project.</p>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<!-- <meta name="viewport" content="width=device-width"> -->
|
||||
<meta name="viewport" content ="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||
{{- partial "opengraph" . }}
|
||||
{{- partialCached "favicon" . }}
|
||||
|
@ -1,4 +1,8 @@
|
||||
{{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "expanded" "enableSourceMap" "true") -}}
|
||||
{{ $mainSassFile := "sass/main.sass" }}
|
||||
{{- $styles := resources.Get $mainSassFile | resources.ExecuteAsTemplate $mainSassFile . | css.Sass $options | resources.Fingerprint "sha512" }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}">
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}">
|
||||
|
||||
<link href="/css/fontawesome.css" rel="stylesheet" />
|
||||
<link href="/css/brands.css" rel="stylesheet" />
|
||||
<link href="/css/solid.css" rel="stylesheet" />
|
@ -1,12 +1,29 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div id="page-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Params.subtitle }}
|
||||
<span class="subtitle">{{ .Params.subtitle }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<section>
|
||||
{{ .Content }}
|
||||
</section>
|
||||
|
||||
{{ $pages := shuffle (where site.RegularPages "Section" "tools") | first 20 }}
|
||||
<section>
|
||||
<h2>Featured Tools</h2>
|
||||
{{ range $pages }}
|
||||
<article>
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p>{{ .Content | truncate 250 }}</p>
|
||||
<article class="tool-card">
|
||||
<h3>
|
||||
{{ .Title }}
|
||||
{{ if .Params.subtitle }}
|
||||
<span class="subtitle">{{ .Params.subtitle }}</span>
|
||||
{{ end }}
|
||||
</h3>
|
||||
<p>{{ .Content | truncate 250 }}</p>
|
||||
<a href="{{ .RelPermalink }}" style="position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;text-indent:-9999px;overflow:hidden;">{{ .Title }}</a>
|
||||
</article>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
@ -1,26 +1,32 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
<div id="page-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Params.subtitle }}
|
||||
<span class="subtitle">{{ .Params.subtitle }}</span>
|
||||
{{ end }}
|
||||
{{ with .Params.links }}
|
||||
<!-- <section id="quick-links"> -->
|
||||
<!-- <h2>Quick Links</h2> -->
|
||||
<div id="link-list">
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .url }}" target="_blank" rel="noopener">{{ if .icon }}<i class="{{ .icon }}"></i> {{ end }}{{ .title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<!-- </section> -->
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<section>
|
||||
<ul id="taxonomies">
|
||||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
|
||||
<li>{{ $taxonomyname | strings.FirstUpper }}
|
||||
<!-- <li><a href="{{ "/" | relLangURL}}{{ $taxonomyname | urlize }}">{{ $taxonomyname }}</a> -->
|
||||
<ul>
|
||||
{{ range $key, $value := $taxonomy }}
|
||||
<li><a href="{{ "/" | relLangURL}}{{ $taxonomyname | urlize }}{{ "/" | relLangURL}}{{ $key | urlize }}">{{ $key }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ .Content }}
|
||||
</section>
|
||||
|
||||
{{ if .Date }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<p class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
3
layouts/shortcodes/button.html
Normal file
3
layouts/shortcodes/button.html
Normal file
@ -0,0 +1,3 @@
|
||||
<a href="{{ .Get "href" }}" class="button">
|
||||
{{ .Inner | safeHTML }}
|
||||
</a>
|
@ -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>
|
||||
|
@ -1,26 +1,24 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div id="page-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<span class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></span>
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Params.subtitle }}
|
||||
<span class="subtitle">{{ .Params.subtitle }}</span>
|
||||
{{ end }}
|
||||
{{ with .Params.links }}
|
||||
<!-- <section id="quick-links"> -->
|
||||
<!-- <h2>Quick Links</h2> -->
|
||||
<div id="link-list">
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .url }}" target="_blank" rel="noopener">{{ if .icon }}<i class="{{ .icon }}"></i> {{ end }}{{ .title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<!-- </section> -->
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ with .Params.links }}
|
||||
<section id="quick-links">
|
||||
<h2>Quick Links</h2>
|
||||
<div id="link-list">
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .url }}" target="_blank" rel="noopener">{{ .title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section id="taxonomies">
|
||||
<h2>At a Glance</h2>
|
||||
@ -50,10 +48,12 @@
|
||||
</table>
|
||||
</section>
|
||||
|
||||
{{ if .Content }}
|
||||
<section>
|
||||
<h2>Description</h2>
|
||||
{{ .Content }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.publications}}
|
||||
<section id="publications">
|
||||
@ -76,9 +76,9 @@
|
||||
{{ if .pages }} ({{ .pages }}) {{ end }}
|
||||
{{ if .journal }} | Appears in <em>{{ .journal }}</em> {{ end }}
|
||||
{{ if .volume }} | Volume {{ .volume }} {{ end }}
|
||||
{{ if .publisher }} | Published by <em>{{ .publisher }}</em> {{ end }}
|
||||
{{ if .doi }} <br /><a href="https://doi.org/{{ . }}" target="_blank" rel="noopener">{{ .doi }}</a>
|
||||
{{ else if .url }} <br /><a href="{{ . }}" target="_blank" rel="noopener">{{ .url }}</a> {{ end }}
|
||||
{{ if .publisher }} | Published by {{ .publisher }} {{ end }}
|
||||
{{ if .doi }} | <a href="https://doi.org/{{ .doi }}" target="_blank" rel="noopener">{{ .doi }}</a>
|
||||
{{ else if .url }} | <a href="{{ . }}" target="_blank" rel="noopener">{{ .url }}</a> {{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@ -87,4 +87,11 @@
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Date }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<p class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ end }}
|
@ -2,56 +2,55 @@
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<section id="tools-list">
|
||||
<h2>Tools</h2>
|
||||
<table id="taxonomy-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tool</th>
|
||||
<!-- <th>License</th> -->
|
||||
<th>Applications</th>
|
||||
<th>Developers</th>
|
||||
<th>License</th>
|
||||
<th>Purposes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range .Pages }}
|
||||
<tr>
|
||||
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;"></tr>
|
||||
<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></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 = "; " }}
|
||||
{{ 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>
|
||||
{{ $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 = "; " }}
|
||||
{{ $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 "purposes") $key) }}
|
||||
{{ $sep }}
|
||||
{{ range $i, $val := $vals }}
|
||||
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
|
||||
{{ end }}
|
||||
{{ $sep = "; " }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</td>
|
||||
</td> -->
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user