generate Hugo structure add the theme and firsts contents

This commit is contained in:
2025-01-05 18:25:29 +01:00
parent ea0a13253b
commit 53dfed0093
124 changed files with 859 additions and 1 deletions

View 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>

View 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>

View 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>