You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

skill.html 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{ $data := index site.Data site.Language.Lang }}
  2. {{ if $data.skill.skill.enable }}
  3. {{ with $data.skill.skill }}
  4. {{"<!-- Skills -->" | safeHTML }}
  5. <section id="skills" class="parallax-section section section-bg overly">
  6. <div class="container">
  7. <div class="row">
  8. {{"<!-- section title -->" | safeHTML }}
  9. <div class="col-lg-12">
  10. <div class="title text-center">
  11. <h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
  12. {{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
  13. <div class="border-meghna"></div>
  14. </div>
  15. </div>
  16. {{"<!-- /section title -->" | safeHTML }}
  17. </div>
  18. <div class="row">
  19. <div class="col-lg-6">
  20. <h2>{{ .subtitle | markdownify }}</h2>
  21. <p> {{ .content | markdownify }}</p>
  22. {{ with .image }}
  23. <img class="img-fluid lozad" data-src="{{ . | absURL }}" alt="image">
  24. {{ end }}
  25. </div>
  26. <div class="col-lg-6">
  27. <ul class="skill-bar">
  28. {{ $.Scratch.Set "counter" 0 }}
  29. {{ range $index, $element:= .skill_item }}
  30. {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
  31. <li>
  32. <p><span>{{if lt $index 9}}0{{end}}{{$.Scratch.Get `counter`}}- </span>{{ .name }}</p>
  33. <div class="progress">
  34. <div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"
  35. style="width:{{ .percent }}">
  36. </div>
  37. </div>
  38. </li>
  39. {{ end }}
  40. </ul>
  41. </div>
  42. </div>
  43. </div>
  44. </section>
  45. {{"<!-- /skill -->" | safeHTML }}
  46. {{ end }}
  47. {{ end }}