generate Hugo structure add the theme and firsts contents
This commit is contained in:
23
layouts/_default/_markup/render-link.html
Normal file
23
layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- $baseurl := urls.Parse site.BaseURL -}}
|
||||
{{- $url := urls.Parse .Destination -}}
|
||||
{{- $getpage := site.GetPage .Destination -}}
|
||||
{{- $internal := lt (len $url.Host) 1 -}} {{/* NOTE: internal links will always have an empty $url.Host */}}
|
||||
|
||||
{{- $fragment := $url.Fragment -}}
|
||||
{{- with $fragment -}}{{ $fragment = printf "#%s" $fragment }}{{- end -}}
|
||||
|
||||
{{- $destination := "" -}}
|
||||
{{- if $internal -}}
|
||||
{{- if (strings.HasPrefix $url.Path "./") -}}
|
||||
{{/* NOTE: for links starting with ./ */}}
|
||||
{{- $urltrimmed := strings.TrimPrefix "./" $url -}}
|
||||
{{- $destination = printf "%s://%s/%s%s" $baseurl.Scheme $baseurl.Host $urltrimmed $fragment -}}
|
||||
{{- else -}}
|
||||
{{/* NOTE: for internal links */}}
|
||||
{{- $destination = printf "%s%s" $getpage.RelPermalink $fragment -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- $destination = .Destination -}}
|
||||
{{- end -}}
|
||||
|
||||
<a href="{{ $destination | safeURL }}"{{ with or .Title $getpage.LinkTitle .Text }} title="{{ . }}"{{ end }}{{ if not $internal }} rel="noopener external"{{ end }}>{{ or .Text .Title $getpage.LinkTitle | safeHTML }}</a>
|
||||
4
layouts/partials/custom_body.html
Normal file
4
layouts/partials/custom_body.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<!-- A partial to be overwritten by the user.
|
||||
Simply place a custom_body.html into
|
||||
your local /layouts/partials-directory.
|
||||
Its content will appear before the closing </body>-tag -->
|
||||
44
layouts/partials/custom_head.html
Normal file
44
layouts/partials/custom_head.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- A partial to be overwritten by the user.
|
||||
Its content will appear before the closing </head>-tag -->
|
||||
|
||||
|
||||
<!-- Custom CSS via inline styles
|
||||
You may use this template to add custom CSS to your site like so: -->
|
||||
<!--
|
||||
<style>
|
||||
:root {
|
||||
/* see variables.scss for more variables*/
|
||||
|
||||
/*
|
||||
--section-light-text-color: #3a4145!important;
|
||||
--section-light-bg-color: #ffdb8c!important;
|
||||
--section-dark-bg-color: #035e00!important;
|
||||
*/
|
||||
|
||||
/* define list element for unnumbered lists, leave empty for default list element */
|
||||
/* fa-asterisk is the default icon if this variable definition is missing completely */
|
||||
--ul-li-icon: fa-dashcube; /* this sets fa-dashcube as list icon */
|
||||
--ul-li-icon: ; /* this sets the default html list icon */
|
||||
}
|
||||
</style>
|
||||
-->
|
||||
|
||||
<!-- Custom CSS via "custom.css"-file
|
||||
If you would rather place your custom CSS into
|
||||
a separate file, create a "custom.css" in your
|
||||
local "static/css"-directory. Then add a <link>-tag
|
||||
referencing your "custom.css" like so: -->
|
||||
|
||||
<!-- <link rel="stylesheet" href='{{ "css/custom.css" | absURL }}'> -->
|
||||
|
||||
<!-- Custom CSS: Color Codes
|
||||
You may checkout https://htmlcolorcodes.com/ to get those
|
||||
weird color codes (like "#22343A") ;-). -->
|
||||
|
||||
<!-- Custom link-tags for different icons
|
||||
Generated via https://favicon.io/favicon-generator/ -->
|
||||
|
||||
{{ with resources.Get "images/favicon/apple-icon-180x180.png" }}<link rel="apple-touch-icon" sizes="180x180" href="{{ .RelPermalink }}" />{{ end }}
|
||||
<!--{{ with resources.Get "images/favicon/favicon.svg" }}<link rel="icon" type="image/svg+xml" href="{{ .RelPermalink }}" />{{ end }}-->
|
||||
{{ range seq 9 4 }}{{ $size := pow 2 . }}{{ $file := replace "images/favicon/favicon-##x##.png" "##" $size }}{{ with resources.Get $file }}
|
||||
<link rel="icon" type="{{ .MediaType.Type }}" sizes="{{- $size -}}x{{- $size -}}" href="{{ .RelPermalink }}" />{{ end }}{{ end }}
|
||||
11
layouts/partials/custom_header_video.html
Normal file
11
layouts/partials/custom_header_video.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<video playsinline="" autoplay="true" muted="" loop=""
|
||||
poster="https://www.ledger.com/wp-content/themes/ledger-v2/public/images/homepage/home-hero-ledger.jpg">
|
||||
<!--
|
||||
<source src="https://cdn.shopify.com/s/files/1/2974/4858/files/home-hero-mobile.webm?v=1637155649" type="video/webm">
|
||||
<source src="https://cdn.shopify.com/s/files/1/2974/4858/files/home-hero-mobile.mp4?v=1637155649" type="video/mp4">
|
||||
<source src="https://cdn.shopify.com/s/files/1/2974/4858/files/home-hero-mobile.mov?v=1637155649" type="video/mov">
|
||||
-->
|
||||
|
||||
{{ $videoResource := resources.Get "cover/pexels-pressmaster-3209239-960x540-25fps.mp4" }}
|
||||
<source src="{{ $videoResource.RelPermalink }}" type="video/mp4">
|
||||
</video>
|
||||
5
layouts/shortcodes/about-me.html
Normal file
5
layouts/shortcodes/about-me.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="about-me" >
|
||||
<p class="about-me-img"><img src="/images/yannick_dyduch.jpg" alt="Yannick Dyduch"></p>
|
||||
<p>{{ .Inner | safeHTML }}</p>
|
||||
</div>
|
||||
|
||||
4
layouts/shortcodes/checkout-button.html
Normal file
4
layouts/shortcodes/checkout-button.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
|
||||
<stripe-pricing-table pricing-table-id="prctbl_1QeZxWAVnr0yCjVx58tZnURs"
|
||||
publishable-key="pk_test_51QblVdAVnr0yCjVxvGKVEnsFExwJ5MJHrfpZha3hUdu6M1boWMVfo69sBvsaMAKPsnusWqI4JoDzsxgxjYOnzEot00ESickqIW">
|
||||
</stripe-pricing-table>
|
||||
23
layouts/shortcodes/custom-table.html
Normal file
23
layouts/shortcodes/custom-table.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{ $htmlTable := .Inner | markdownify }}
|
||||
{{ $old := "<table>" }}
|
||||
{{ $new := "" }}
|
||||
{{ $title := .Get "title" }}
|
||||
{{ $extraClass := .Get "class" }}
|
||||
{{ $id := "" }}
|
||||
{{ with .Get "id" }}
|
||||
{{ $id = . }}
|
||||
{{ else }}
|
||||
{{ $id = delimit (shuffle (seq 1 9)) "" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $title }}
|
||||
{{ $new = printf "<table class=\"table %s\" id=\"%s\" itemscope itemtype=\"https://schema.org/Table\"><caption id=\"table-caption-%s\" itemprop=\"about\"><b>Tableau.</b> %s</caption>" $extraClass $id $id $title }}
|
||||
{{ else }}
|
||||
{{ $new = printf "<table class=\"table %s\" id=\"%s\">" $extraClass $id}}
|
||||
{{ end }}
|
||||
{{ $htmlTable := replace $htmlTable $old $new }}
|
||||
{{ $htmlTable := replaceRE "align=\"([a-z]+)\"" "style=\"text-align: $1\"" $htmlTable }}
|
||||
|
||||
<div class="data-table" role="region" tabindex="0" {{ if $title }}{{ printf "aria-labelledby=\"table-caption-%s\"" $id | safeHTMLAttr }}{{ end }}>
|
||||
{{ $htmlTable | safeHTML }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user