mirror of https://github.com/lxndrblz/anatole.git

alexanderdavide
11.26.2022 e75111904bbabe4d2b1eb0d4a2c657eed61c5ff6
refactor: post-footer
4 files modified
69 ■■■■■ changed files
assets/scss/partials/components/_post.scss 59 ●●●●● patch | view | raw | blame | history
layouts/_default/single.html 2 ●●●●● patch | view | raw | blame | history
layouts/index.html 6 ●●●● patch | view | raw | blame | history
layouts/partials/taxonomy/template.html 2 ●●● patch | view | raw | blame | history
assets/scss/partials/components/_post.scss
@@ -96,65 +96,14 @@
    }
  }
  .post-footer {
    padding: 0 0 10px 0;
  &-footer {
    border-bottom: $border;
    .meta {
      max-width: 100%;
      display: flex;
      color: #bbbbbb;
      .info {
        float: left;
        font-size: 1.2rem;
        margin-bottom: 1em;
        color: $primary;
        .date {
    padding: 12px 0;
    &__date {
          margin-right: 10px;
          margin-left: 5px;
        }
      }
      a {
        text-decoration: none;
        color: $primary;
        &:hover {
          color: #2660ab;
        }
      }
      i {
        margin-right: 6px;
      }
    }
    .info {
      .separator a {
        margin-right: 0.2em;
      }
    }
    .tags {
      padding-bottom: 15px;
      font-size: 1.3rem;
      ul {
        list-style-type: none;
        display: inline;
        margin: 0;
        padding: 0;
      }
      ul li {
        list-style-type: none;
        margin: 0;
        padding-right: 5px;
        display: inline;
      }
      a {
        text-decoration: none;
        color: $primary;
        font-weight: 400;
        &:hover {
          text-decoration: none;
        }
      }
    }
  }
}
layouts/_default/single.html
@@ -61,7 +61,6 @@
        {{- end -}}
      </div>
      <div class="post-footer">
        <div class="info">
          {{ with .Page.Params.Categories }}
            {{ partial "taxonomy/categories.html" . }}
@@ -74,7 +73,6 @@
          {{ end }}
        </div>
      </div>
      {{ if and (or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (ne .Page.Params.disableComments true) }}
        {{- if .Site.DisqusShortname -}}
layouts/index.html
@@ -85,10 +85,8 @@
        <!--  -->
        <div class="post-footer">
          <div class="meta">
            <div class="info">
              <em class="fas fa-calendar-day"></em>
              <span class="date"
          <span class="post-footer__date"
                >{{ if isset .Site.Params "indexdateformat" }}
                  {{ .Date.Format .Site.Params.indexDateFormat }}
@@ -112,8 +110,6 @@
              {{ end }}
            </div>
          </div>
        </div>
      </div>
    {{ end }}
    <div class="pagination">
layouts/partials/taxonomy/template.html
@@ -2,7 +2,7 @@
{{- $linkBase := .linkBase -}}
<span class="separator">
<span>
  {{- range $index, $el := .items -}}
    <!-- Replace certain special characters with their URL encoded counterparts -->
    {{- $item := replace . "#" "%23" -}}