Skip to content
Snippets Groups Projects
Commit f7bf1cd4 authored by Alexandre MEYER's avatar Alexandre MEYER
Browse files

icon

parent fb2c6998
No related branches found
No related tags found
No related merge requests found
Pipeline #138943 passed
Showing
with 0 additions and 331 deletions
.Contact {
max-width: 30rem;
margin: 1.5rem auto;
}
.Contact-group {
list-style-type: none;
margin: 0;
padding: 0;
}
.Contact-hidden {
display: none;
}
.Contact-item {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 0.5rem 0;
}
.Contact-label {
flex-basis: 5rem;
}
.Contact-input {
flex-grow: 1;
flex-basis: 15rem;
}
.Contact-input--textbox {
resize: vertical;
height: 5rem;
}
.Contact-button {
margin-left: auto;
}
.Soundcloud {
height: 166px;
}
.Soundcloud:empty {
display: none;
}
.Soundcloud-iframe {
height: 100%;
width: 100%;
border: 0;
}
.Soundcloud-player {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
border: 0.1rem solid lightgray;
border-radius: 0.3rem;
background: whitesmoke;
cursor: pointer;
}
const soundcloud = (() => {
for (const wrapper of document.querySelectorAll(".Soundcloud")) {
const iframe = document.createElement("iframe");
iframe.className = "Soundcloud-iframe";
iframe.setAttribute("src", `https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/${wrapper.getAttribute('data-id')}&show_comments=false`);
const link = document.createElement("a");
link.setAttribute("href", "https://soundcloud.com/pages/cookies");
link.textContent = "cookie policy";
link.onclick = e => e.stopPropagation();
link.onkeydown = e => e.stopPropagation();
const player = document.createElement("div");
player.className = "Soundcloud-player";
player.setAttribute("tabindex", "0");
player.textContent = 'Load player';
player.appendChild(link);
player.onclick = () => wrapper.replaceChild(iframe, player);
player.onkeydown = e => { if (e.keyCode == 13) wrapper.replaceChild(iframe, player) };
wrapper.appendChild(player);
};
})();
{{ safeHTML `<?xml version="1.0" encoding="utf-8" ?>` }}
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" doctype-system="about:legacy-compat" />
<xsl:template match="/rss/channel">
<html lang="{{ site.LanguageCode }}">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{ hugo.Generator }}
<title><xsl:value-of select="title" /></title>
{{ $site_css := (.Scratch.Get "css").base }}
<link rel="stylesheet" href="{{ $site_css.Permalink }}" integrity="{{ $site_css.Data.Integrity }}" />
</head>
<body>
<nav class="u-background">
<div class="u-wrapper">
<ul class="Banner">
<li class="Banner-item Banner-item--title">
<a class="Banner-link u-clickable" href="{{ absURL nil }}">{{ site.Title }}</a>
</li>
{{ range site.Menus.nav }}
<li class="Banner-item">
<a class="Banner-link u-clickable" href="{{ absURL .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</div>
</nav>
<main>
<div class="u-wrapper">
<div class="u-padding">
<h2 class="Heading-title">
<a class="Heading-link u-clickable" href="{link}" rel="bookmark"><xsl:value-of select="title" /></a>
</h2>
{{ with site.Params.rss }}
<p>
{{ safeHTML . }}
</p>
{{ end }}
</div>
</div>
</main>
{{ with site.Params.footer }}
<footer class="Footer">
<div class="u-wrapper">
<div class="u-padding">
{{ safeHTML . }}
</div>
</div>
</footer>
{{ end }}
</body>
</html>
</xsl:template>
</xsl:stylesheet>
params:
color: teal # Any color in CSS syntax
width: 42rem # Any length in CSS syntax
footer: >- # A hardcoded space is needed before each html element
Except where otherwise noted, content on this site is licensed under a &#32;
<a href="http://creativecommons.org/licenses/by/4.0/" rel="license">Creative
Commons Attribution 4.0 International License</a>.
rss: To subscribe to this RSS feed, copy its address and paste it into your
favorite feed reader.
summaries: false # Set to true to show summaries of posts on homepage
divider: \a0 # Set to false to remove divider below posts on homepage
schema: false # Set to true to add Schema.org metadata
opengraph: false # Set to true to add Open Graph metadata
twittercards: false # Set to true to add Twitter Cards metadata
utterances:
repo: # Set to Utterances repo URL to add Utterances comments
issueterm: pathname
theme: github-light
netlify:
honeypot: false # Set to true to add honeypot field in contact form
recaptcha: false # Set to true to add recaptcha challenge in contact form
# css: # Uncomment to add custom CSS from a list of files
# - css/foo.css
# - bar.css
# js: # Uncomment to add custom JS from a list of files
# - js/foo.js
# - bar.js
menu:
nav:
- name: About
url: about/
weight: 1
- name: Posts
url: posts/
weight: 2
- name: Tags
url: tags/
weight: 3
- name: Categories
url: categories/
weight: 4
- name: RSS
url: index.xml
weight: 5
\ No newline at end of file
web/themes/hugo-flex/images/screenshot.png

49 KiB

web/themes/hugo-flex/images/tn.png

35.9 KiB

<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>
<li>
<a href="{{ .Permalink }}">
{{ .Title }}
<small><time>{{ .Date | time.Format (i18n "posts.date") }}</time></small>
</a>
</li>
{{ define "main" }}
{{- partial "posts.html" . -}}
{{ end }}
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range where .Site.Pages "Kind" "page" }}
{{ if or (eq .Section "posts") (eq .Section "post") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
{{ end }}
</channel>
</rss>
{{ define "main" }}
<article>
<header id="post-header">
<h1>{{ .Title }}</h1>
<div>
{{- if isset .Params "date" -}}
{{ if eq .Lastmod .Date }}
<time>{{ .Date | time.Format (i18n "post.created") }}</time>
{{ else }}
<time>{{ .Lastmod | time.Format (i18n "post.updated") }}</time>
{{ end }}
{{- end -}}
</div>
</header>
{{- .Content -}}
</article>
{{ end }}
{{ define "main" }}
<h3>{{ .Title }}</h3>
<ul id="posts">
{{- range .Pages }}
{{ .Render "li" }}
{{- end }}
</ul>
{{ end }}
{{ define "main" }}
{{ .Content }}
{{ end }}
<footer id="footer">
{{ .Site.Params.copyright }}
</footer>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ with .Site.Params.description -}}
<meta name="description" content="{{ . }}">
{{ end }}
{{ printf `<link rel="shortcut icon" href="%s">` ("favicon.ico" | absURL) | safeHTML }}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ $resources := slice -}}
{{ $resources = $resources | append (resources.Get "css/main.css") -}}
{{ $resources = $resources | append (resources.Get "css/min770px.css") -}}
{{ $dark := .Site.Params.dark | default "auto" -}}
{{ if not (eq $dark "off") -}}
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
{{ end -}}
{{ if .Site.Params.highlight -}}
{{ $resources = $resources | append (resources.Get "css/syntax.css") -}}
{{ end -}}
{{ $css := $resources | resources.Concat "css/style.css" | minify }}
{{ printf `<link rel="stylesheet" href="%s">` $css.RelPermalink | safeHTML }}
<link rel="canonical" href="{{ .Permalink }}" />
<title>{{ .Title }}</title>
</head>
<header id="banner">
<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
<nav>
<ul>
{{ range .Site.Menus.main.ByWeight -}}
<li>
{{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }}
</li>
{{- end }}
</ul>
</nav>
</header>
<h3>{{ i18n "posts.title" }}</h3>
<ul id="posts">
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ .Render "li" }}
{{- end }}
</ul>
<aside id="toc">
<h4>Table of Contents</h4>
{{ .Page.TableOfContents }}
</aside>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment