Preparing the details component, fixing bugs.
parent
6067077580
commit
8b1403e2d2
@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Omegamma - Hugo theme for ad5001.eu and related websites.
|
||||
* Copyright (C) 2021 Ad5001
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
details {
|
||||
padding: 0;
|
||||
margin-top: .4em;
|
||||
margin-bottom: .4em;
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
font-size: x-large;
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +1,16 @@
|
||||
{{ $langs := slice "en" "fr" }}
|
||||
|
||||
{{ $icon := .Get 0 }}
|
||||
{{ $alt := .Get 1 }}
|
||||
<div class="columns-container fill-width">
|
||||
<div class="col2 column text-center">
|
||||
<h3>{{ i18n "en" }}</h3>
|
||||
{{ partial "badge.html" (dict "Icon" (.Get 0) "Lang" "en" "Alt" (.Get 1) ) }}
|
||||
{{ range $langs }}
|
||||
<div class="col{{ len $langs }} column text-center">
|
||||
<h3>{{ i18n . }}</h3>
|
||||
{{ partial "badge.html" (dict "Icon" $icon "Lang" . "Alt" $alt ) }}
|
||||
<br>
|
||||
<div class="center fit-content">
|
||||
<div class="code"><img source="https://ad5001.eu/img/badges/en/{{ .Get 0 }}.svg" class="badge"/></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col2 column text-center">
|
||||
<h3>{{ i18n "fr" }}</h3>
|
||||
{{ partial "badge.html" (dict "Icon" (.Get 0) "Lang" "fr" "Alt" (.Get 1) ) }}
|
||||
<br>
|
||||
<div class="center fit-content">
|
||||
<div class="code"><img source="https://ad5001.eu/img/badges/fr/{{ .Get 0 }}.svg" class="badge"/></div>
|
||||
<div class="code"><img source="https://ad5001.eu/img/badges/{{ . }}/{{ $icon }}.svg" class="badge"/></div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@ -1,5 +0,0 @@
|
||||
<section style="background-image: url({{ .Get 0 }});" class="section1">
|
||||
<br><br><br>
|
||||
{{ .Inner | markdownify }}
|
||||
<br><br>
|
||||
</section>
|
@ -0,0 +1,3 @@
|
||||
<summary>
|
||||
{{ .Inner | markdownify }}
|
||||
</summary>
|
Loading…
Reference in New Issue