diff options
Diffstat (limited to 'themes/terrassa/layouts')
21 files changed, 0 insertions, 357 deletions
diff --git a/themes/terrassa/layouts/404.html b/themes/terrassa/layouts/404.html deleted file mode 100644 index 2384d5a..0000000 --- a/themes/terrassa/layouts/404.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ define "main" }} -<main class="notfound"> - <h1 class="notfound__title">404</h1> -</main> -{{ end }}
\ No newline at end of file diff --git a/themes/terrassa/layouts/_default/baseof.html b/themes/terrassa/layouts/_default/baseof.html deleted file mode 100644 index 6e1a936..0000000 --- a/themes/terrassa/layouts/_default/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -{{- partial "head.html" . -}} - -<body> - {{- partial "header.html" . -}} - {{- block "main" . }}{{- end }} - {{- partial "footer.html" . -}} -</body> - -</html>
\ No newline at end of file diff --git a/themes/terrassa/layouts/_default/card.html b/themes/terrassa/layouts/_default/card.html deleted file mode 100644 index 6a184f1..0000000 --- a/themes/terrassa/layouts/_default/card.html +++ /dev/null @@ -1,28 +0,0 @@ -<article class="card"> - <header class="card__header"> - <h1 class="card__header__title"> - <a href="{{ .Permalink }}" class="card__header__link" alt="{{ .Title }}."> - {{ .Title }} - </a> - </h1> - {{ if ne .Type "page" }} - {{ if and $.Site.Params.posts.showDate $.Site.Params.posts.showAuthor }} - <p class="card__header__date date"> - {{ dateFormat $.Site.Params.posts.dateFormat .Date }} By {{ $.Params.author }}. - </p> - {{ else if $.Site.Params.posts.showDate }} - <p class="card__header__date date">{{ dateFormat $.Site.Params.posts.dateFormat .Date }}</p> - {{ else if $.Site.Params.posts.showAuthor }} - <p class="card__header__author author">By {{ $.Params.author }}.</p> - {{ end }} - {{ end }} - </header> - - <main class="card__body"> - {{ .Content | truncate 480 }} - </main> - - <footer class="card__footer"> - {{ .Render "tags" }} - </footer> -</article>
\ No newline at end of file diff --git a/themes/terrassa/layouts/_default/list.html b/themes/terrassa/layouts/_default/list.html deleted file mode 100644 index 06390f4..0000000 --- a/themes/terrassa/layouts/_default/list.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ define "main" }} -<main class="content"> - {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "posts") }} - - {{ range $paginator.Pages }} - {{ .Render "card" }} - {{ end }} - - {{ template "_internal/pagination.html" . }} -</main> -{{ end }} diff --git a/themes/terrassa/layouts/_default/single.html b/themes/terrassa/layouts/_default/single.html deleted file mode 100644 index 9f108f7..0000000 --- a/themes/terrassa/layouts/_default/single.html +++ /dev/null @@ -1,37 +0,0 @@ -{{ define "main" }} -<article class="post"> - <header class="post__header"> - <h1 class="post__title">{{ .Title }}</h1> - {{ if .Description }} - <p class="post__subtitle">{{ .Description }}</p> - {{ end }} - {{ if ne .Type "page" }} - {{ if and $.Site.Params.posts.showDate $.Site.Params.posts.showAuthor }} - <p class="post__date date"> - {{ dateFormat $.Site.Params.posts.dateFormat .Date }} By {{ $.Params.author }}. - </p> - {{ else if $.Site.Params.posts.showDate }} - <p class="post__date date">{{ dateFormat $.Site.Params.posts.dateFormat .Date }}</p> - {{ else if $.Site.Params.posts.showAuthor }} - <p class="post__author author">By {{ $.Params.author }}.</p> - {{ end }} - {{ end }} - </header> - - {{ if ne .Type "page" }} - <main class="post__body"> - {{ .Content }} - </main> - {{ else }} - <main class="post__body" style="margin-bottom: 3rem;"> - {{ .Content }} - </main> - {{ end }} - - {{ if ne .Type "page" }} - <footer class="post__footer"> - {{ .Render "tags" }} - </footer> - {{ end }} -</article> -{{ end }}
\ No newline at end of file diff --git a/themes/terrassa/layouts/_default/tags.html b/themes/terrassa/layouts/_default/tags.html deleted file mode 100644 index 4618ae3..0000000 --- a/themes/terrassa/layouts/_default/tags.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ if and $.Site.Params.posts.showTags .Params.Tags }} -<ul class="tags"> - {{ range .Params.Tags }} - {{ $url := printf "%stags/%s/" $.Site.BaseURL . }} - <li class="tags__tag"> - <a href="{{ $url }}" class="tag__link" alt="{{ . }}."> - #{{ . }} - </a> - </li> - {{ end }} -</ul> -{{ end }} diff --git a/themes/terrassa/layouts/contact/list.html b/themes/terrassa/layouts/contact/list.html deleted file mode 100644 index 83b7402..0000000 --- a/themes/terrassa/layouts/contact/list.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ define "main" }} -<main class="contact"> - <h1 class="contact__title">{{ .Title }}</h1> - <p class="contact__content">{{ .Description }}</p> - - {{ if $.Site.Params.form.netlify }} - <form name="contact" method="POST" data-netlify="true" class="contact__form" id="contactForm"> - {{ else }} - <form action="{{ $.Site.Params.form.action }}" method="{{ lower $.Site.Params.form.method }}" class="contact__form" - id="contactForm"> - {{ end }} - - <!-- Name --> - <div class="contact__field contact__field--name"> - <label for="{{ $.Site.Params.form.inputNameName }}">{{ $.Site.Params.form.inputNameLabel }}</label> - <input type="text" name="{{ $.Site.Params.form.inputNameName }}" placeholder="{{ $.Site.Params.form.inputNamePlaceholder }}" - class="contact__form__input contact__form__name" id="{{ $.Site.Params.form.inputNameName }}" - aria-labelledby="{{ $.Site.Params.form.inputNameName }}" required> - </div> - - <!-- Email --> - <div class="contact__field contact__field--email"> - <label for="{{ $.Site.Params.form.inputEmailName }}">{{ $.Site.Params.form.inputEmailLabel }}</label> - <input type="email" name="{{ $.Site.Params.form.inputEmailName }}" placeholder="{{ $.Site.Params.form.inputEmailPlaceholder }}" - class="contact__form__input contact__form__email" id="{{ $.Site.Params.form.inputEmailName }}" - aria-labelledby="{{ $.Site.Params.form.InputEmailName }}" required> - </div> - - <!-- Message --> - <div class="contact__field contact__field--msg"> - <label for="{{ $.Site.Params.form.inputMsgName }}">{{ $.Site.Params.form.inputMsgLabel }}</label> - <textarea name="{{ $.Site.Params.form.inputMsgName }}" id="{{ $.Site.Params.form.inputMsgName }}" form="contactForm" - maxlength="{{ $.Site.Params.form.inputMsgLength }}" id="{{ $.Site.Params.form.inputMsgName }}" - arial-labelledby="{{ $.Site.Params.form.InputMsgName }}" required></textarea> - </div> - - <!-- Submit --> - <div class="contact__field contact__field--submit"> - <button type="submit" class="ripple-btn submit" onclick="cleanForm" aria-label="{{ $.Site.Params.form.inputSubmitValue }}"> - {{ $.Site.Params.form.inputSubmitValue }} - </button> - </div> - - </form> -</main> -{{ end }}
\ No newline at end of file diff --git a/themes/terrassa/layouts/index.html b/themes/terrassa/layouts/index.html deleted file mode 100644 index 8575e89..0000000 --- a/themes/terrassa/layouts/index.html +++ /dev/null @@ -1,4 +0,0 @@ -{{ define "main" }} -{{ partial "hero.html" . }} -{{ partial "sections.html" . }} -{{ end }}
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/cta-btn.html b/themes/terrassa/layouts/partials/cta-btn.html deleted file mode 100644 index 81f63a0..0000000 --- a/themes/terrassa/layouts/partials/cta-btn.html +++ /dev/null @@ -1,4 +0,0 @@ -<a href="{{ $.Site.BaseURL }}{{ $.Site.Params.cta.link }}" class="ripple-btn cta__btn" alt="{{ $.Site.Params.cta.cta }}" - aria-label="{{ $.Site.Params.cta.cta }}"> - {{ $.Site.Params.cta.cta }} -</a>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/fontawesome.html b/themes/terrassa/layouts/partials/fontawesome.html deleted file mode 100644 index 6cc5fd5..0000000 --- a/themes/terrassa/layouts/partials/fontawesome.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $version := "5.7.2" }} -{{ $integrity := "sha384-0pzryjIRos8mFBWMzSSZApWtPl/5++eIfzYmTgBBmXYdhvxPc+XcFEk+zJwDgWbP" }} -{{ if and $.Site.Params.fa.version $.Site.Params.fa.integrity }} -{{ $version = $.Site.Params.fa.version }} -{{ $integrity = $.Site.Params.fa.integrity }} -{{ end }} - -{{ $src := printf "%s%s%s" "https://use.fontawesome.com/releases/v" $version "/js/all.js" }} - -<script - defer - src="{{ $src }}" - integrity="{{ $integrity }}" - crossorigin="anonymous" -></script> diff --git a/themes/terrassa/layouts/partials/footer.html b/themes/terrassa/layouts/partials/footer.html deleted file mode 100644 index b2b27bc..0000000 --- a/themes/terrassa/layouts/partials/footer.html +++ /dev/null @@ -1,66 +0,0 @@ -<footer class="footer"> - {{ if $.Site.Params.social }} - {{ $items := $.Site.Params.social }} - {{ $len := (len $items) }} - - {{ if gt $len 0 }} - <div class="footer__social"> - {{ range $k, $v := $items }} - {{ if $v}} - <a href="{{ $v }}" class="footer__social__link" alt="{{ $k }}" target="_blank" aria-label="{{ $v }}" rel="noopener"> - <span> - <i class="fab fa-{{ $k }}"></i> - </span> - </a> - {{ end }} - {{ end }} - </div> - {{ end }} - {{ end }} - - <address class="footer__contact"> - {{ if $.Site.Params.contact.email }} - <p class="footer__contact__item"> - <span><i class="far fa-envelope"></i></span> - <a href="mailto:{{ $.Site.Params.contact.email}}" class="footer__contact__link" alt="Email"> - {{ $.Site.Params.contact.email }} - </a> - </p> - {{ end }} - - {{ if $.Site.Params.contact.phone }} - <p class="footer__contact__item"> - <span><i class="fas fa-phone"></i></span> - <a href="tel:{{ $.Site.Params.contact.phone }}" class="footer__contact__link" alt="Phone"> - {{ $.Site.Params.contact.phone }} - </a> - </p> - {{ end }} - - {{ if $.Site.Params.contact.skype }} - <p class="footer__contact__item"> - <span><i class="fab fa-skype"></i></span> - <a href="skype:{{ $.Site.Params.contact.skype }}" class="footer__contact__link" alt="Skype"> - {{ $.Site.Params.contact.skype }} - </a> - </p> - {{ end }} - - {{ if $.Site.Params.contact.address }} - <p class="footer__contact__item"> - <span><i class="fas fa-map-marker-alt"></i></span> - {{ $.Site.Params.contact.address }} - </p> - {{ end }} - </address> - - <div class="copy"> - {{ if $.Site.Params.copy.copy }} - <p>{{ $.Site.Params.copy.copy }}</p> - {{ else }} - <p>© {{ now.Format "2006" }} - {{ $.Site.Title }}</p> - {{ end }} - </div> - - {{ partial "scripts.html" . }} -</footer>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/hamburger-menu.html b/themes/terrassa/layouts/partials/hamburger-menu.html deleted file mode 100644 index 40a9ad8..0000000 --- a/themes/terrassa/layouts/partials/hamburger-menu.html +++ /dev/null @@ -1,18 +0,0 @@ -<nav class="hamburger-menu" aria-label="mobile-menu"> - <div class="toggle"> - <input type="checkbox" class="hamburger__toggle" id="hamburgerToggle" name="hamburger toggle" aria-label="Hamburguer menu"> - <label class="hamburger__toggle__icon" for="hamburgerToggle"> - <i class="fas fa-bars"></i> - </label> - - <ul class="hamburger__items" aria-label="mobile-menu"> - {{ range .Site.Menus.main }} - <li class="hamburger__items__item" aria-label="{{ .Name }}"> - <a href="{{ .URL }}" class="hamburger__items__item__link" alt="{{ .Name }}" role="menuitem"> - {{ .Name }} - </a> - </li> - {{ end }} - </ul> - </div> -</nav>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/head.html b/themes/terrassa/layouts/partials/head.html deleted file mode 100644 index 8d0b97f..0000000 --- a/themes/terrassa/layouts/partials/head.html +++ /dev/null @@ -1,21 +0,0 @@ -<head> - <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="robots" content="index, follow" /> - <meta name="googlebot" content="index, follow, noarchive" /> - <title>{{ $.Site.Title }} - {{ .Title }}</title> - <link rel="icon" href="{{ $.Site.BaseURL }}{{ $.Site.Params.favicon }}" /> - <meta name="description" content="{{ $.Site.Params.description }}" /> - - {{ hugo.Generator }} - - {{ if .Site.GoogleAnalytics }} - {{ template "_internal/google_analytics.html" . }} - {{ end }} - - {{ template "_internal/twitter_cards.html" . }} - {{ template "_internal/opengraph.html" . }} - - <!-- CSS --> - {{ partial "styles.html" . }} -</head> diff --git a/themes/terrassa/layouts/partials/header.html b/themes/terrassa/layouts/partials/header.html deleted file mode 100644 index 212f470..0000000 --- a/themes/terrassa/layouts/partials/header.html +++ /dev/null @@ -1,14 +0,0 @@ -<header class="header"> - <div class="header__title"> - <a href="{{ $.Site.BaseURL }}" class="header__title__link" alt="Home"> - {{ if $.Site.Params.logo }} - <img src="{{ $.Site.BaseURL }}{{ $.Site.Params.logo }}" class="header__title__logo" alt="{{ $.Site.Title }}"> - {{ else }} - {{ $.Site.Title }} - {{ end }} - </a> - </div> - - {{ partial "menu.html" . }} - {{ partial "hamburger-menu.html" . }} -</header>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/hero.html b/themes/terrassa/layouts/partials/hero.html deleted file mode 100644 index d3c2a30..0000000 --- a/themes/terrassa/layouts/partials/hero.html +++ /dev/null @@ -1,10 +0,0 @@ -<main class="hero" {{ if $.Params.images }} - style="background-image: url('{{ $.Site.BaseURL }}images/{{ print (index $.Params.images 0) }}');" {{ end }}> - <div class="hero__caption" {{ if $.Site.Params.hero.textColor }} style="color: {{ $.Site.Params.hero.textColor }};" - {{ end }}> - {{ .Content }} - {{ if $.Site.Params.cta.show }} - {{ partial "cta-btn.html" . }} - {{ end }} - </div> -</main>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/menu.html b/themes/terrassa/layouts/partials/menu.html deleted file mode 100644 index abfb92b..0000000 --- a/themes/terrassa/layouts/partials/menu.html +++ /dev/null @@ -1,13 +0,0 @@ -<nav class="menu" aria-label="menu"> - <ul class="menu__items" aria-label="menu"> - {{ $current := . }} - {{ range .Site.Menus.main }} - <li class="menu__items__item" aria-label="{{ .Name }}"> - <a href="{{ .URL }}" class="menu__items__item__link {{ if $current.IsMenuCurrent "main" . }}active{{ end }}" - alt="{{ .Name }}" role="menuitem"> - {{ .Name }} - </a> - </li> - {{ end }} - </ul> -</nav>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/scripts.html b/themes/terrassa/layouts/partials/scripts.html deleted file mode 100644 index 63e20b1..0000000 --- a/themes/terrassa/layouts/partials/scripts.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ $header := resources.Get "js/header.js" }} -{{ $form := resources.Get "js/form.js" }} -{{ $bundle := slice $header $form | resources.Concat "js/bundle.js" }} -{{ $js := $bundle | resources.Minify | resources.Fingerprint "sha512" }} - -<script src="{{ $js.Permalink }}"></script> - -{{ partial "fontawesome.html" . }} diff --git a/themes/terrassa/layouts/partials/section.html b/themes/terrassa/layouts/partials/section.html deleted file mode 100644 index ef05877..0000000 --- a/themes/terrassa/layouts/partials/section.html +++ /dev/null @@ -1,6 +0,0 @@ -<section class="section"> - <h1 class="section__title">{{ .Title }}</h1> - <div class="section__content"> - {{ .Content }} - </div> -</section>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/sections.html b/themes/terrassa/layouts/partials/sections.html deleted file mode 100644 index eda7fd2..0000000 --- a/themes/terrassa/layouts/partials/sections.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ $items := (where $.Site.RegularPages "Type" "sections") }} -{{ $len := (len $items) }} - -{{ range $i, $e := $items }} -{{ partial "section.html" . }} - -{{ if ne (add $i 1) $len }} - -{{ if $.Site.Params.separator.show }} -{{ partial "separator.html" . }} -{{ end }} - -{{ end }} -{{ end}}
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/separator.html b/themes/terrassa/layouts/partials/separator.html deleted file mode 100644 index e890b22..0000000 --- a/themes/terrassa/layouts/partials/separator.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class="separator"> - <i class="fas fa-circle"></i> -</div>
\ No newline at end of file diff --git a/themes/terrassa/layouts/partials/styles.html b/themes/terrassa/layouts/partials/styles.html deleted file mode 100644 index cf06c3a..0000000 --- a/themes/terrassa/layouts/partials/styles.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ $reset := resources.Get "css/reset.css" }} -{{ $base := resources.Get "css/base.css" }} -{{ $style := resources.Get "css/style.css" }} -{{ $media := resources.Get "css/media-queries.css" }} -{{ $animations := resources.Get "css/animations.css" }} -{{ $custom := resources.Get "css/custom.css" }} -{{ $bundle := slice $reset $base $style $media $animations $custom | resources.Concat "css/bundle.css" }} - -{{ $css := $bundle | resources.Minify }} - -<link rel="stylesheet" href="{{ $css.Permalink }}">
\ No newline at end of file |