mirror of https://github.com/escalate/hugo-split-theme.git

Felix Boerner
05.22.2024 c8ea989882e27b831c76e4bbcc47e6caada1e415
feat: use webflow html
1 files renamed
6 files modified
68 ■■■■ changed files
assets/scss/_content.scss 18 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 22 ●●●●● patch | view | raw | blame | history
layouts/partials/bio.html 2 ●●● patch | view | raw | blame | history
layouts/partials/credit.html 8 ●●●● patch | view | raw | blame | history
layouts/partials/head.html 2 ●●● patch | view | raw | blame | history
layouts/partials/intro.html 6 ●●●● patch | view | raw | blame | history
layouts/partials/links.html 10 ●●●● patch | view | raw | blame | history
assets/scss/_content.scss
@@ -60,7 +60,7 @@
  line-height: 100%;
}
.bio {
.bio p {
  margin-bottom: 40px;
  font-family: Lora, sans-serif;
  color: #848d96;
@@ -68,6 +68,11 @@
  line-height: 140%;
}
.bio a {
  border-bottom: 1px solid #848d96;
  text-decoration: none;
}
.text-block-2 {
  margin-bottom: 20px;
  color: #485462;
@@ -135,11 +140,6 @@
  flex: 0 auto;
}
.bio-links {
  border-bottom: 1px solid #848d96;
  text-decoration: none;
}
.credit-links {
  color: #485462;
}
@@ -197,10 +197,6 @@
    margin-bottom: 20px;
  }
  .column-2 {
    margin-bottom: 20px;
  }
  .image {
    position: static;
    height: 420px;
@@ -226,7 +222,7 @@
    line-height: 42px;
  }
  .bio {
  .bio p {
    font-size: 16px;
  }
layouts/_default/baseof.html
@@ -5,16 +5,17 @@
  {{ partial "head" . }}
</head>
<body id="fullsingle" class="page-template-page-fullsingle-split">
<body class="body">
  <div class="fs-split">
  <div class="columns w-row">
    <!-- Media Side -->
    <div class="leftcontent w-col w-col-6 w-col-stack">
    <!-- Image -->
    {{ if .Params.visual.image.enable | default .Site.Params.visual.image.enable }}
      <div class="split-image">
      </div>
      <div class="image"></div>
    <!-- Video -->
    {{ else if .Params.visual.video.enable | default .Site.Params.visual.video.enable }}
@@ -22,10 +23,12 @@
      {{ partial "video" . }}
    {{ end }}
    </div>
    <!-- Content Side -->
    <div class="split-content">
      <div class="split-content-vertically-center">
    <div class="rightcontent w-col w-col-6 w-col-stack">
      <div class="content">
        <!-- Intro -->
        {{ partial "intro" . }}
@@ -35,9 +38,10 @@
          {{ partial "bio" . }}
        {{ end }}
        <!-- Footer -->
        {{ partial "footer" . }}
        <!-- Credit -->
        {{ partial "credit" . }}
      </div>
    </div>
  </div>
layouts/partials/bio.html
@@ -1,3 +1,3 @@
<div class="split-bio">
<div class="bio">
  {{ .Content }}
</div>
layouts/partials/credit.html
File was renamed from layouts/partials/footer.html
@@ -1,8 +1,8 @@
<div class="split-credit">
  <p>{{ .Site.Copyright | safeHTML }}
<div class="credit">
  {{ .Site.Copyright | safeHTML }}
  {{ if not .Site.Params.licensed }}
  &ndash; <a href="https://onepagelove.com/split" title="Split Template">Split Template</a> by <a href="https://onepagelove.com" title="One Page Love">One Page Love</a>
  {{- end }}</p>
  &ndash; <a href="https://onepagelove.com/split" target="_blank" class="credit-links">Split Template</a> by <a href="https://onepagelove.com" target="_blank" class="credit-links">One Page Love</a>
  {{- end }}
  {{ if not .Site.Params.licensed }}
  {{ "<!--" | safeHTML }}
layouts/partials/head.html
@@ -1,4 +1,4 @@
<meta charset="UTF-8" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<!-- SEO -->
layouts/partials/intro.html
@@ -1,4 +1,4 @@
<div class="split-intro">
  {{ with .Title }}<h1>{{ . }}</h1>{{ end }}
  {{ with .Params.tagline }}<h2 class="tagline">{{ . }}</h2>{{ end }}
<div class="intro">
  {{ with .Title }}<h1 class="name">{{ . }}</h1>{{ end }}
  {{ with .Params.tagline }}<h2 class="tagline"><strong class="bold-text">{{ . }}</strong></h2>{{ end }}
</div>
layouts/partials/links.html
@@ -1,14 +1,14 @@
<div class="split-lists">
<div class="links w-row">
  {{ range $key, $value := .Site.Params.links }}
    {{ range $key, $list := $value }}
    {{ if $list.link }}
      <div class="split-list">
        <h3>{{ $list.heading }}</h3>
        <ul>
      <div class="column w-col w-col-4">
        <h3 class="text-block-2">{{ $list.heading }}</h3>
        <ul class="list w-list-unstyled">
          {{ range $list.link }}
            <li><a href="{{ .url | safeURL }}" title="{{ .text }}" target="{{ cond (.new_tab | default false) "_blank" "_self" }}">{{ .text }}</a></li>
            <li><a href="{{ .url | safeURL }}" target="{{ cond (.new_tab | default false) "_blank" "_self" }}">{{ .text }}</a></li>
          {{ end }}
        </ul>
      </div>