added
This commit is contained in:
commit
38ae828d82
85 files changed
+11990
No files matched your search
@@ -0,0 +1,246 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
||||
{{ with .Description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ with .Summary }}<meta name="description" content="{{ . | plainify }}">{{ end }}
|
||||
<link rel="icon" type="image/png" href="{{ "assets/images/logo_earth.png" | relURL }}">
|
||||
<link rel="apple-touch-icon" href="{{ "assets/images/logo_earth.png" | relURL }}">
|
||||
{{ partial "semantic-discovery.html" . }}
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4LGW2BYJDQ"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-4LGW2BYJDQ');
|
||||
</script>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--ink: #15231f;
|
||||
--muted: #4c5a55;
|
||||
--line: #d8dedb;
|
||||
--bg: #fbfcfb;
|
||||
--accent: #0f766e;
|
||||
--accent-dark: #134e4a;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.site-container {
|
||||
width: min(90%, 1280px);
|
||||
margin: 0 auto;
|
||||
padding: 20px 0 40px;
|
||||
}
|
||||
|
||||
header {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.logo-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
display: block;
|
||||
width: min(220px, 52vw);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: var(--accent-dark);
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 18px;
|
||||
padding-top: 12px;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: 1px solid #000;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
line-height: 1.2;
|
||||
margin: 2rem 0 0.75rem;
|
||||
}
|
||||
|
||||
h1:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
p, ul, ol {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow-x: auto;
|
||||
background: #eee;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
code {
|
||||
background: #eee;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.contact-form {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
max-width: 640px;
|
||||
margin: 1rem 0 2rem;
|
||||
}
|
||||
|
||||
.contact-form label {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.contact-form input,
|
||||
.contact-form textarea {
|
||||
width: 100%;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
padding: 10px 12px;
|
||||
font: inherit;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.contact-form button {
|
||||
width: fit-content;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
padding: 10px 16px;
|
||||
background: var(--accent-dark);
|
||||
color: #fff;
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.contact-form .form-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.contact-form .form-status {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.page-list {
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.page-list-item {
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.page-list-item h2 {
|
||||
margin-top: 0;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.page-meta {
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 48px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid var(--line);
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body id="top">
|
||||
<div class="site-container">
|
||||
<header>
|
||||
<div class="logo-row">
|
||||
<div class="logo">
|
||||
<a href="https://indx.earth/">
|
||||
<img src="{{ "assets/images/indx-earth-logo.png" | relURL }}" alt="iNDX Earth Logo">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<nav aria-label="Main navigation">
|
||||
<a href="/#top">Home</a>
|
||||
<a href="/#about-us">About Us</a>
|
||||
<a href="/#contact-us">Contact Us</a>
|
||||
<a href="/#contact-us">Email Subscribe</a>
|
||||
<a href="https://community.indx.earth">CO+ Login</a>
|
||||
<a href="/#sitemap">CO+ Platform Summaries</a>
|
||||
<a href="/#sitemap">Sitemap</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
<footer>
|
||||
Copyright iNDX. All Worldwide Rights Reserved.
|
||||
</footer>
|
||||
</div>
|
||||
<script defer src="{{ "assets/js/contact-form.js" | relURL }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
{{- .RawContent -}}
|
||||
@@ -0,0 +1,18 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ if .Pages }}
|
||||
<div class="page-list">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<article class="page-list-item">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
{{ with .Date }}<p class="page-meta">{{ .Format "January 2, 2006" }}</p>{{ end }}
|
||||
{{ with .Summary }}<p>{{ . | plainify }}</p>{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<p>No pages found.</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,160 @@
|
||||
{{- $site := .Site -}}
|
||||
{{- $siteURL := strings.TrimSuffix "/" $site.BaseURL -}}
|
||||
{{- $publisherID := printf "%s/#organization" $siteURL -}}
|
||||
{{- $authorID := printf "%s/#eddie-soehnel" $siteURL -}}
|
||||
{{- $licenseURL := "https://creativecommons.org/licenses/by/4.0/" -}}
|
||||
{{- $usageInfoURL := "https://indx.earth/wiki/license/" -}}
|
||||
{{- $artifactBase := "" -}}
|
||||
{{- $pageType := "" -}}
|
||||
{{- $canonicalURL := .Permalink -}}
|
||||
{{- $pageID := printf "%s#webpage" $canonicalURL -}}
|
||||
|
||||
{{- if .IsHome -}}
|
||||
{{- $artifactBase = "/data/open/pages/home" -}}
|
||||
{{- $pageType = "WebPage" -}}
|
||||
{{- else if and .File (eq .Kind "page") (strings.HasPrefix .File.Path "community-summaries/") -}}
|
||||
{{- $slug := .Params.slug | default .File.BaseFileName -}}
|
||||
{{- $dir := strings.TrimSuffix "/" .File.Dir -}}
|
||||
{{- $artifactBase = printf "/data/open/pages/%s/%s" $dir $slug -}}
|
||||
{{- $pageType = "Article" -}}
|
||||
{{- $pageID = printf "%s#article" $canonicalURL -}}
|
||||
{{- else if and .File (eq .Kind "page") (ne .File.BaseFileName "healthz") -}}
|
||||
{{- $pageType = "WebPage" -}}
|
||||
{{- else if eq .Kind "section" -}}
|
||||
{{- $pageType = "CollectionPage" -}}
|
||||
{{- $pageID = printf "%s#collection" $canonicalURL -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if $artifactBase -}}
|
||||
{{- $chunksURL := printf "%s/chunks.json" $artifactBase | absURL -}}
|
||||
{{- $qaURL := printf "%s/qa.json" $artifactBase | absURL -}}
|
||||
<link rel="alternate" type="application/json" title="Semantic chunks for this page" href="{{ $chunksURL }}">
|
||||
<link rel="alternate" type="application/json" title="Semantic QA for this page" href="{{ $qaURL }}">
|
||||
{{- end -}}
|
||||
|
||||
{{- if $pageType -}}
|
||||
{{- $description := .Description | default .Summary | plainify -}}
|
||||
{{- $graph := slice -}}
|
||||
{{- $graph = $graph | append (dict
|
||||
"@type" "WebSite"
|
||||
"@id" (printf "%s/#website" $siteURL)
|
||||
"name" $site.Title
|
||||
"url" (printf "%s/" $siteURL)
|
||||
"publisher" (dict "@id" $publisherID)
|
||||
) -}}
|
||||
{{- $graph = $graph | append (dict
|
||||
"@type" "Organization"
|
||||
"@id" $publisherID
|
||||
"name" "iNDX"
|
||||
"url" (printf "%s/" $siteURL)
|
||||
) -}}
|
||||
{{- $graph = $graph | append (dict
|
||||
"@type" "Person"
|
||||
"@id" $authorID
|
||||
"name" (.Params.author | default "Eddie Soehnel")
|
||||
) -}}
|
||||
|
||||
{{- if eq $pageType "CollectionPage" -}}
|
||||
{{- $items := slice -}}
|
||||
{{- range .Pages.ByDate.Reverse -}}
|
||||
{{- $item := dict
|
||||
"@type" "Article"
|
||||
"url" .Permalink
|
||||
"headline" .Title
|
||||
-}}
|
||||
{{- with .Date -}}
|
||||
{{- $item = merge $item (dict "datePublished" (.Format "2006-01-02")) -}}
|
||||
{{- end -}}
|
||||
{{- $items = $items | append $item -}}
|
||||
{{- end -}}
|
||||
{{- $pageNode := dict
|
||||
"@type" "CollectionPage"
|
||||
"@id" $pageID
|
||||
"url" $canonicalURL
|
||||
"name" .Title
|
||||
"description" $description
|
||||
"isPartOf" (dict "@id" (printf "%s/#website" $siteURL))
|
||||
"inLanguage" $site.LanguageCode
|
||||
"license" $licenseURL
|
||||
"usageInfo" $usageInfoURL
|
||||
"hasPart" $items
|
||||
-}}
|
||||
{{- $graph = $graph | append $pageNode -}}
|
||||
{{- else -}}
|
||||
{{- $pageNode := dict
|
||||
"@type" $pageType
|
||||
"@id" $pageID
|
||||
"url" $canonicalURL
|
||||
"name" .Title
|
||||
"headline" .Title
|
||||
"description" $description
|
||||
"isPartOf" (dict "@id" (printf "%s/#website" $siteURL))
|
||||
"author" (dict "@id" $authorID)
|
||||
"publisher" (dict "@id" $publisherID)
|
||||
"inLanguage" $site.LanguageCode
|
||||
"license" $licenseURL
|
||||
"usageInfo" $usageInfoURL
|
||||
-}}
|
||||
{{- with .Date -}}
|
||||
{{- $pageNode = merge $pageNode (dict
|
||||
"datePublished" (.Format "2006-01-02")
|
||||
"dateModified" (.Format "2006-01-02")
|
||||
) -}}
|
||||
{{- else -}}
|
||||
{{- with .Params.created_at -}}
|
||||
{{- $pageNode = merge $pageNode (dict
|
||||
"datePublished" .
|
||||
"dateModified" .
|
||||
) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- with .Params.tags -}}
|
||||
{{- $pageNode = merge $pageNode (dict "keywords" .) -}}
|
||||
{{- end -}}
|
||||
{{- if $artifactBase -}}
|
||||
{{- $chunksID := printf "%s%s/chunks.json#dataset" $siteURL $artifactBase -}}
|
||||
{{- $qaID := printf "%s%s/qa.json#dataset" $siteURL $artifactBase -}}
|
||||
{{- $pageNode = merge $pageNode (dict "subjectOf" (slice (dict "@id" $chunksID) (dict "@id" $qaID))) -}}
|
||||
{{- $chunksNode := dict
|
||||
"@type" "Dataset"
|
||||
"@id" $chunksID
|
||||
"name" (printf "Semantic chunks for %s" .Title)
|
||||
"description" "Machine-readable semantic chunk artifact for this page."
|
||||
"creator" (dict "@id" $authorID)
|
||||
"isBasedOn" (dict "@id" $pageID)
|
||||
"encodingFormat" "application/json"
|
||||
"license" $licenseURL
|
||||
"usageInfo" $usageInfoURL
|
||||
"distribution" (dict
|
||||
"@type" "DataDownload"
|
||||
"encodingFormat" "application/json"
|
||||
"contentUrl" (printf "%s%s/chunks.json" $siteURL $artifactBase)
|
||||
)
|
||||
-}}
|
||||
{{- $qaNode := dict
|
||||
"@type" "Dataset"
|
||||
"@id" $qaID
|
||||
"name" (printf "Semantic QA for %s" .Title)
|
||||
"description" "Machine-readable question-answer artifact for this page."
|
||||
"creator" (dict "@id" $authorID)
|
||||
"isBasedOn" (dict "@id" $pageID)
|
||||
"encodingFormat" "application/json"
|
||||
"license" $licenseURL
|
||||
"usageInfo" $usageInfoURL
|
||||
"distribution" (dict
|
||||
"@type" "DataDownload"
|
||||
"encodingFormat" "application/json"
|
||||
"contentUrl" (printf "%s%s/qa.json" $siteURL $artifactBase)
|
||||
)
|
||||
-}}
|
||||
{{- $graph = $graph | append $pageNode -}}
|
||||
{{- $graph = $graph | append $chunksNode -}}
|
||||
{{- $graph = $graph | append $qaNode -}}
|
||||
{{- else -}}
|
||||
{{- $graph = $graph | append $pageNode -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $jsonLD := dict "@context" "https://schema.org" "@graph" $graph -}}
|
||||
<script type="application/ld+json">{{ $jsonLD | jsonify | safeJS }}</script>
|
||||
{{- end -}}
|
||||
Reference in new issue
Block a user