set minimal template for aae association

This commit is contained in:
Urko 2023-06-15 13:32:55 +02:00
parent c60c85bf3f
commit f5f1587da0
16 changed files with 322 additions and 0 deletions

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ dateFormat "2006-01-02T15:04:05Z07:00" .Date }}
draft: true
images: []
---

14
layouts/404.html Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
{{ partial "header.html" . }}
<div class="main">
<div>
<h1>404 page not found.</h1>
<p><a href="{{ .Site.BaseURL }}">Go Home</a></p>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>

View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
{{ block "main" . }}{{ end }}
</body>
</html>

View File

@ -0,0 +1,39 @@
{{ define "main"}}
<h1>{{ .Title }}</h1>
{{ partial "header.html" . }}
<!-- search box -->
<div id="searchBox">
<input type="text" id="searchBoxInput" placeholder="Search..." />
<img id="searchBoxIcon" src="{{ .Site.BaseURL }}/img/search.png" />
</div>
<!-- search results -->
<div id="searchResults"></div>
<!-- tags -->
<div id="tags">
<ul>
{{ range .Site.Taxonomies.tags.ByCount }}
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }} ({{ .Count }})</a></li>
{{ end }}
</ul>
</div>
<!-- contents -->
<div id="contentsList">
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
{{ if (ne $index 0) }}
<hr class="separator">
{{ end }}
<p class="date">{{ .Key }}</p>
{{ range .Pages }}
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
{{ end }}
{{ end }}
</div>
{{ partial "footer.html" . }}
{{ $jquery := resources.Get "js/jquery-3.5.1.min.js" }}
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
{{ $lunr := resources.Get "js/lunr.js" }}
{{ $search := resources.Get "js/search.js" }}
{{ $js := slice $jquery $mark $lunr $search | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint }}
<script src="{{ $js.Permalink }}"></script>
{{ end }}

View File

@ -0,0 +1,10 @@
[{{ range $index, $page := .Pages }}{{ if ne $index 0 }},{{ end }}
{
"ref": "{{ $page.Permalink }}",
"title": {{ $page.Title | jsonify }},
"section": "{{ $page.Section }}",
"tags": {{ $page.Params.tags | jsonify }},
"date" : {{ $page.Date.Format "2006.01.02" | jsonify }},
"body": {{ $page.Plain | jsonify }}
}
{{ end }}]

View File

@ -0,0 +1,27 @@
{{ define "main"}}
<h1>{{ .Title }}</h1>
{{ partial "header.html" . }}
{{ if not .Date.IsZero }}
<!-- date -->
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
{{ end }}
<!-- tags -->
{{ if .Param "tags" }}
<div id="tags">
<ul>
{{ range .Param "tags" }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
<!-- content -->
<div id="contentBody">
{{ .Content }}
</div>
{{ partial "footer.html" . }}
{{ end }}

View File

@ -0,0 +1,13 @@
{{ define "main"}}
<h1>{{ .Title }}</h1>
{{ partial "header.html" . }}
<!-- tags -->
<div id="tags">
<ul>
{{ range .Site.Taxonomies.tags.ByCount }}
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }} ({{ .Count }})</a></li>
{{ end }}
</ul>
</div>
{{ partial "footer.html" . }}
{{ end }}

32
layouts/index.html Normal file
View File

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
<div id="profileContainer">
<div id="profile">
<header>
<!-- avator -->
<div class="avatar">
<img class="avatarMask" src="/img/{{ .Site.Params.avatar }}" alt="{{ .Site.Params.avatarDescription }}">
<img src="/img/avatar-border.svg" class="avatar-border" alt="">
</div>
<!-- author -->
<h1 class="author">{{ .Site.Params.Author }}</h1>
</header>
<!-- description -->
<p>
{{ .Site.Params.description | safeHTML }}
</p>
<!-- navigation -->
<nav>
<ul>
{{ range .Site.Menus.main }}
<li><a href="{{ .URL }}" aria-label="{{ .Identifier }}">{{ .Pre }}<br>{{ .Name }}</a></li>
{{ end }}
</ul>
</nav>
</div>
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,8 @@
<footer>
<p>
&copy; {{ .Site.Params.publicationYear }} {{ .Site.Params.Author }} {{ .Site.Params.taxID }}.
</p>
</footer>
{{- range .Site.Params.custom_js -}}
<script src="{{ . }}"></script>
{{ end }}

View File

@ -0,0 +1,57 @@
<head>
<title>
{{ if eq .Title .Site.Title }}
{{ .Site.Title }}
{{ else }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="{{ .Site.Params.Author }}" />
<link rel="shortcut icon" type="image/x-icon" href="/img/{{ .Site.Params.favicon }}">
<!-- css -->
{{ $style := resources.Get "css/style.css" }}
{{ $markdown := resources.Get "css/markdown.css" }}
{{ $syntaxHighlight := resources.Get "css/syntax-highlight.css" }}
{{ $css := slice $style $markdown $syntaxHighlight | resources.Concat "style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
{{ $styleDark := resources.Get "css/style-dark.css" }}
{{ $markdownDark := resources.Get "css/markdown-dark.css" }}
{{ $cssDark := slice $styleDark $markdownDark | resources.Concat "style-dark.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $cssDark.Permalink }}" media="(prefers-color-scheme: dark)" integrity="{{ $cssDark.Data.Integrity }}">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css">
<!-- custom css -->
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . }}">
{{ end }}
{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}}
{{/*- template "_internal/opengraph.html" . -*/}}
{{/*- template "_internal/google_news.html" . -*/}}
{{/*- template "_internal/schema.html" . -*/}}
{{/*- partial "twitter_cards.html" . -*/}}
<!-- Polyfill for old browsers -->
{{ `<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->` | safeHTML }}
{{ `<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->` | safeHTML }}
<!-- Analytics -->
{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
<!-- MathJax -->
{{ if or .Params.math .Site.Params.math }}
{{ partial "mathjax_support.html" . }}
{{ end }}
</head>

View File

@ -0,0 +1,9 @@
<header>
<!-- avator -->
<div class="avatar">
<img class="avatarMask" src="{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}" alt="{{ .Site.Params.avatarDescription }}">
<a href="{{ .Site.BaseURL }}"><img class="avatar-border" src="{{ .Site.BaseURL }}/img/avatar-border.svg" alt=""></a>
</div>
<!-- author -->
<h2><a class="author" href="{{ .Site.BaseURL }}">{{ .Site.Params.Author }}</a></h2>
</header>

View File

@ -0,0 +1,16 @@
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$'], ['\[','\]']],
processEscapes: true,
processEnvironments: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre','code'],
TeX: {
equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js", "AMSsymbols.js"]
}
}
})
</script>

View File

@ -0,0 +1,31 @@
<!-- https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/twitter_cards.html -->
{{- with $.Params.images -}}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
{{ else -}}
{{- $images := $.Resources.ByType "image" -}}
{{- $featured := $images.GetMatch "*feature*" -}}
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
{{- with $featured -}}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ $featured.Permalink }}"/>
{{- else -}}
{{- with $.Site.Params.images -}}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
{{ else -}}
<meta name="twitter:card" content="summary"/>
<meta name="twitter:image" content="{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}"/>
{{- end -}}
{{- end -}}
{{- end }}
<meta name="twitter:title" content="{{ .Title }}"/>
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
{{ with .Site.Social.twitter -}}
<meta name="twitter:site" content="@{{ . }}"/>
{{ end -}}
{{ range .Site.Authors }}
{{ with .twitter -}}
<meta name="twitter:creator" content="@{{ . }}"/>
{{ end -}}
{{ end -}}

View File

@ -0,0 +1,22 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<defs>
<style>
.cls-1, .cls-3 {
fill: none;
}
.cls-1 {
stroke: #d3d3d3;
stroke-width: 3px;
}
.cls-2 {
stroke: none;
}
</style>
</defs>
<g id="楕円形_1" data-name="楕円形 1" class="cls-1">
<circle class="cls-2" cx="50" cy="50" r="50"/>
<circle class="cls-3" cx="50" cy="50" r="48.5"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 459 B

31
static/img/logo.svg Normal file
View File

@ -0,0 +1,31 @@
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 800 800" style="enable-background:new 0 0 800 800;" xml:space="preserve">
<g>
<g>
<path d="M743.52,470.4c-0.07,0.42-0.19,0.84-0.19,1.25c-0.01,5-0.01,10-0.01,15c0,0.43,0,0.87,0,1.39c-58.59,0-117.08,0-175.64,0
c0-54,0-107.97,0-162.03c19.48,0,38.97,0,58.57,0c0,37.12,0,74.22,0,111.52c39.16,0,78.22,0,117.27,0
C743.52,448.48,743.52,459.44,743.52,470.4z"/>
<path d="M60.48,487.68c0.46-0.73,0.96-1.43,1.36-2.18c29.36-55.08,58.71-110.17,88.06-165.26c9.52-17.87,19.03-35.74,28.55-53.61
c0.2-0.38,0.43-0.76,0.73-1.29c0.79,1.47,1.53,2.82,2.25,4.18c9.19,17.23,18.37,34.46,27.58,51.68c0.37,0.7,0.44,1.21,0.05,1.96
c-12.32,23.7-24.62,47.42-36.92,71.14c-11.95,23.04-23.88,46.09-35.83,69.14c-4.12,7.94-8.25,15.87-12.33,23.84
c-0.43,0.84-0.98,0.86-1.72,0.86c-20.12-0.01-40.24-0.01-60.36-0.01c-0.48,0-0.96,0.03-1.44,0.04
C60.48,488,60.48,487.84,60.48,487.68z"/>
<path d="M743.28,261.12c0.01,1.76,0.04,3.52,0.04,5.28c0,13.4,0,26.79,0,40.19c0,0.48,0,0.95,0,1.52c-58.58,0-117.08,0-175.72,0
c0-1.21,0-2.4,0-3.58c0.01-4.52,0.03-9.04,0.04-13.55c0.03-9.44,0.06-18.87,0.08-28.31c0-0.51-0.07-1.03-0.11-1.54
C626.16,261.12,684.72,261.12,743.28,261.12z"/>
<path d="M432.74,265.28c4.45,8.34,8.75,16.41,13.05,24.48c5.56,10.43,11.12,20.86,16.7,31.28c0.44,0.81,0.5,1.42,0.05,2.3
c-15.34,29.52-30.63,59.06-45.94,88.59c-12.9,24.89-25.82,49.77-38.69,74.67c-0.59,1.15-1.23,1.55-2.54,1.55
c-19.88-0.05-39.76-0.04-59.64-0.04c-0.48,0-0.96,0-1.73,0C353.6,413.81,393.11,339.66,432.74,265.28z"/>
<path d="M218.46,338.99c26.51,49.77,52.92,99.34,79.49,149.21c-52.41,0-104.57,0-156.78,0c0.08-0.19,0.19-0.52,0.35-0.82
c9.22-17.48,18.46-34.96,27.66-52.45c0.42-0.8,0.87-1.04,1.74-1.03c9.6,0.07,19.19,0.1,28.79,0.14c2.2,0.01,4.39,0,6.76,0
c-0.14-0.35-0.24-0.66-0.4-0.95c-5.86-11.22-11.7-22.45-17.6-33.65c-0.55-1.04-0.55-1.82-0.01-2.86
c9.8-18.8,19.56-37.62,29.33-56.44C217.97,339.83,218.15,339.53,218.46,338.99z"/>
<path d="M472.03,339c26.48,49.7,52.9,99.3,79.49,149.2c-52.45,0-104.6,0-156.8,0c0.1-0.22,0.23-0.55,0.39-0.85
c9.22-17.48,18.45-34.96,27.66-52.45c0.39-0.74,0.81-1,1.65-1c9.64,0.07,19.27,0.1,28.91,0.14c2.2,0.01,4.39,0,6.76,0
c-0.17-0.37-0.31-0.72-0.48-1.05c-5.93-11.36-11.86-22.73-17.82-34.07c-0.37-0.7-0.31-1.21,0.03-1.86
c9.87-18.99,19.72-37.99,29.58-56.99C471.56,339.76,471.76,339.46,472.03,339z"/>
<path d="M644.34,348.67c33.05,0.37,65.93,0.73,98.89,1.1c0,15.76,0,31.46,0,47.24c-32.82,0-65.63,0-98.52,0
C644.59,380.91,644.47,364.89,644.34,348.67z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
static/img/search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB