jkawamoto/loci

View on GitHub
docs/layouts/partials/header.html

Summary

Maintainability
Test Coverage
<section id="intro">
  {{ "<!-- Header -->" | safeHTML }}
    <div class="intro-header">

        <div class="container header-container">

            <div class="row">
                <div class="intro-image col-md-1 col-md-offset-3"
                          style="background-image:url({{ .Site.Params.ProfilePicture }}); background-size: contain; transform: rotate(35deg);"></div>
                <div class="intro-message col-md-6">
                    <h1>{{ .Site.Title }}</h1>
                    <h3>{{ .Site.Params.SubTitle }}</h3>

                    {{ if (isset .Site.Params "githuborg") }}
                    {{ $org := .Site.Params.GithubOrg }}
                    {{ $repo := .Site.Params.GithubRepo }}
                    <iframe class="github-btn"
                         src="https://ghbtns.com/github-btn.html?user={{ $org }}&amp;repo={{ $repo }}&amp;type=star&amp;count=true&amp;size=large"
                        frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
          <iframe class="github-btn"
                        src="https://ghbtns.com/github-btn.html?user={{ $org }}&amp;repo={{ $repo }}&amp;type=fork&amp;count=true&amp;size=large"
                        frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
                    {{ end }}
                    <hr class="intro-divider">
                </div>
            </div>

        </div>

    </div>
</section>