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

add theme submodule to the main

parent 678e6964
No related branches found
No related tags found
No related merge requests found
Showing
with 174 additions and 0 deletions
{{ with site.Params.utterances }}
{{ if $.Type | in site.Params.mainSections | and .repo }}
<script src="https://utteranc.es/client.js" repo="{{ .repo }}" issue-term="{{ .issueterm }}" theme="{{ .theme }}" crossorigin="anonymous" async></script>
{{end}}
{{end}}
\ No newline at end of file
{{ with site.Params.footer }}
<footer class="Footer">
<div class="u-wrapper">
<div class="u-padding">
{{ safeHTML . }}
</div>
</div>
</footer>
{{ end }}
\ No newline at end of file
<header class="Heading">
<h2 class="Heading-title">
<a class="Heading-link u-clickable" href="{{ .RelPermalink }}" rel="bookmark">{{ .Title }}</a>
</h2>
{{ with .PublishDate | default nil }}
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Format "2 January, 2006" -}}
</time>
{{ end }}
</header>
\ No newline at end of file
<link rel="canonical" href="{{ .RelPermalink }}">
{{ range .AlternativeOutputFormats }}
{{ printf "<link rel=%q type=%q href=%q title=%q>" .Rel .MediaType .RelPermalink site.Title | safeHTML }}
{{ end }}
\ No newline at end of file
{{ $base_css := resources.Get "css/base.tpl.css" | resources.ExecuteAsTemplate "css/base.css" . }}
{{ $site_css := $base_css }}
{{ with site.Params.css }}
{{ $css_list := slice $site_css }}
{{ range . }}
{{ $custom_css := resources.Get . }}
{{ $css_list = $css_list | append $custom_css }}
{{ end }}
{{ $site_css = $css_list | resources.Concat "css/base.css" }}
{{ end }}
{{ minify $site_css | fingerprint | .Page.Scratch.SetInMap "css" "base" }}
{{ with site.Params.js }}
{{ $js_list := slice }}
{{ range . }}
{{ $custom_js := resources.Get . }}
{{ $js_list = $js_list | append $custom_js }}
{{ end }}
{{ $site_js := $js_list | resources.Concat "js/base.js" }}
{{ minify $site_js | fingerprint | $.Page.Scratch.SetInMap "js" "base" }}
{{ end }}
\ No newline at end of file
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ with .Description }}
<meta name="description" content="{{ . }}">
{{ else }}
{{ if .IsPage }}
<meta name="description" content="{{ .Summary }}">
{{ else }}
{{ with site.Params.description }}
<meta name="description" content="{{ . }}">
{{ end }}
{{ end }}
{{ end }}
{{ if site.Params.schema }}
{{ template "_internal/schema.html" . }}
{{ end }}
{{ if site.Params.opengraph }}
{{ template "_internal/opengraph.html" . }}
{{ end }}
{{ if site.Params.twittercards }}
{{ template "_internal/twitter_cards.html" . }}
{{ end }}
{{ hugo.Generator }}
\ No newline at end of file
{{ $paginator := .Scratch.Get "paginator" }}
{{ if gt $paginator.TotalPages 1 }}
<nav>
{{ with $paginator.Next }}
<a class="Pagination u-clickable" href="{{ .URL }}" rel="prev">« Previous</a>
{{ end }}
{{ with $paginator.Prev }}
<a class="Pagination Pagination--right u-clickable" href="{{ .URL }}" rel="next">Next »</a>
{{ end }}
</nav>
{{ end }}
\ No newline at end of file
{{ $taxonomy_list := slice }}
{{ range $taxonomy, $_ := site.Taxonomies }}
{{ $taxonomy_list = $taxonomy_list | append $taxonomy }}
{{ end }}
{{ $taxonomy_is_used_list := apply $taxonomy_list "isset" .Params "." }}
{{ if true | in $taxonomy_is_used_list }}
<footer>
{{ range $taxonomy := $taxonomy_list }}
{{ if isset $.Params $taxonomy }}
<ul class="Tags">
{{ range $.GetTerms $taxonomy }}
<li class="Tags-item u-background">
<a class="Tags-link u-clickable" href="{{ .RelPermalink }}" rel="tag">{{ .LinkTitle }}</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</footer>
{{ end }}
\ No newline at end of file
<title>
{{- if eq .Title site.Title -}}
{{ site.Title }}
{{- else -}}
{{ with .Title }}{{ . }} | {{ end }}{{ site.Title }}
{{- end -}}
</title>
\ No newline at end of file
{{ resources.Get "css/contact.css" | minify | fingerprint | .Page.Scratch.SetInMap "css" "contact" }}
<form class="Contact" name="contact" method="POST" data-netlify="true"{{ if site.Params.netlify.honeypot }} data-netlify-honeypot="bot"{{ end }}{{ if site.Params.netlify.recaptcha }} data-netlify-recaptcha="true"{{ end }}{{ with .Get 0 }} action="{{ . }}"{{ end }}>
<ul class="Contact-group">
{{ if site.Params.netlify.honeypot }}
<li class="Contact-hidden">
<label>Don’t fill this out if you're human:</label>
<input name="bot">
</li>
{{ end }}
<li class="Contact-item">
<label class="Contact-label" for="Contact-name">Name:</label>
<input class="Contact-input" id="Contact-name" type="text" name="name" autofocus>
</li>
<li class="Contact-item">
<label class="Contact-label" for="Contact-email">Email:</label>
<input class="Contact-input" id="Contact-email" type="email" name="email">
</li>
<li class="Contact-item">
<label class="Contact-label" for="Contact-subject">Subject:</label>
<input class="Contact-input" id="Contact-subject" type="text" name="subject">
</li>
<li class="Contact-item">
<label class="Contact-label" for="Contact-message">Message:</label>
<textarea class="Contact-input Contact-input--textbox" id="Contact-message" name="message"></textarea>
</li>
<li class="Contact-item">
<button class="Contact-button" type="submit">Send</button>
</li>
</ul>
{{ if site.Params.netlify.recaptcha }}<div data-netlify-recaptcha="true"></div>{{ end }}
</form>
{{ resources.Get "css/soundcloud.css" | minify | fingerprint | .Page.Scratch.SetInMap "css" "soundcloud" }}
{{ resources.Get "js/soundcloud.js" | minify | fingerprint | .Page.Scratch.SetInMap "js" "soundcloud" }}
<div class="Soundcloud" data-id="{{ .Get 0 }}"></div>
name = "Hugo Flex"
license = "Apache-2.0"
licenselink = "https://github.com/de-souza/hugo-flex/blob/master/LICENSE"
description = "A lightweight Hugo theme leveraging CSS Flexbox"
homepage = "https://github.com/de-souza/hugo-flex/"
demosite = "https://de-souza.github.io/hugo-flex/"
tags = ["responsive", "minimal", "flexbox", "no-javascript"]
features = ["posts"]
min_version = "0.65"
[author]
name = "Léo De Souza"
homepage = "https://github.com/de-souza/"
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