all repos — htmlepessoas.com @ main

Venha aprender HTML com um método simplificado.

src/printable.njk (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
---
permalink: printable/
originalPath: /printable/
---
<!doctype html>

<html lang="pt-BR" data-theme="light">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1, width=device-width" />

    <title>HTML e Pessoas</title>

    <meta property="og:title" content="HTML e Pessoas" />
    <meta
      property="og:description"
      content="HTML não é só para quem trabalha com tecnologia. É para todo mundo. Aprenda a fazer um site do zero neste livro na web, feito para iniciantes."
    />
    <meta property="og:image" content="/assets/img/design/og.png" />
    <meta property="og:locale" content="pt_BR" />
    <link rel="canonical" href="{{ site.url }}/printable/" />
    <link rel="alternate" hreflang="pt-BR" href="{{ site.url }}/printable/" />
    <link rel="alternate" hreflang="en" href="{{ site.originalUrl }}/printable/" />

    <!-- favicon -->
    <link
      rel="icon"
      type="image/png"
      sizes="512x512"
      href="/assets/img/design/favicon.png"
    />

    <link rel="stylesheet" href="/assets/css/style.css" />
    <link rel="stylesheet" href="/assets/css/print.css" media="print" />

    <style>
      h1 {
        margin-top: var(--size-10);
      }

      .site-footer {
        background: none;
      }
    </style>

    <script defer src="/assets/js/app.js"></script>
    {% block scripts %}{% endblock %}
  </head>

  <body class="page wrap-code">
    {% block header %}
      <header class="site-header mb-none">
        <div class="logo-wrap">
          <p class="site-title container">
            <a href="/">
              <span class="sr-only">HTML e pessoas</span>
              {% include "./assets/img/design/logo.svg" %}
            </a>
          </p>
        </div>
      </header>
    {% endblock %}

    <main id="main-content" class="container">
      {% for chapter in collections.sortedChapter %}
        {{ chapter.content | safe }}
      {% endfor %}
    </main>

    <footer class="site-footer">
      <div class="container">
        <ul class="mb-sm pl-none" style="list-style: none">
          <li>
            <a href="/conquista-desbloqueada-hipertextista#recursos-deste-livro"
              >Recursos</a
            >
          </li>
          <li>
            <a href="https://github.com/blakewatson/htmlforpeople">GitHub</a>
          </li>
          <li>
            <a href="https://blakewatson.com/about">Sobre o autor</a>
          </li>
        </ul>
        <p>
          Livro original de
          <a href="https://blakewatson.com">Blake Watson</a> —
          <a href="https://htmlforpeople.com">HTML for People</a>.<br />
          Tradução para o português do Brasil oferecida por
          <a href="https://pablomurad.com">Pablo Murad</a> e
          <a href="https://portalidea.com.br">Portal IDEA</a>.<br />
          Licença
          <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/"
            >CC BY-NC-SA 4.0</a
          >.
        </p>
      </div>
    </footer>

    <script>
      const tocLinks = Array.from(
        document.querySelector('#sumario + ol').querySelectorAll('a'),
      );
      tocLinks.forEach((link) => {
        link.setAttribute('href', link.getAttribute('href').replace('/', '#'));
      });
    </script>
  </body>
</html>