devcows / hugo-universal-theme

Universal theme for Hugo, it stands out with its clean design and elegant typography.
https://devcows.github.io/hugo-universal-theme
MIT License
808 stars 573 forks source link

Anyone implemented a Portfolio page? #374

Open LucaMoiana opened 2 years ago

LucaMoiana commented 2 years ago

As anyone implemented the Portfolio section of this theme? I'm trying to mimic the Boostrapious theme, and so I created a list.html page in order to display my portfolio but I couldn't get it to display properly. Following is my code Any help will be appreciated

    <div id="content">
        <div class="container">
            <section class="bar">
              <div class="row">
                <div class="col-md-12">
                  <div class="heading">
                    <h2>Portfolio</h2>
                  </div>
                  <p class="lead">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
                </div>
              </div>
              <div class="row portfolio text-center">
              {{ range .Pages }}
                <div class="col-md-4">
                  <div class="box-image">
                    <div class="image"><img src="{{ .Params.banner | relURL }}" alt="" class="img-fluid">
                      <div class="overlay d-flex align-items-center justify-content-center">
                        <div class="content">
                          <div class="name">
                            <h3><a href="{{ .Permalink }}" class="color-white">{{ .Title }}</a></h3>
                          </div>
                          <div class="text">
                            <p class="d-none d-sm-block">{{ .Summary }}</p>
                            <p class="buttons"><a href="{{ .Permalink }}" class="btn btn-template-outlined-white">{{ i18n "continueReading" }}</a></p>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                {{ end }}
                </div>

            </section>
            <!-- /.row -->
        </div>
        <!-- /.container -->
    </div>