diff options
Diffstat (limited to 'themes/hugo-coder/exampleSite/content/posts')
15 files changed, 761 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/exampleSite/content/posts/emoji-support.md b/themes/hugo-coder/exampleSite/content/posts/emoji-support.md new file mode 100644 index 0000000..f17f49a --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/emoji-support.md | |||
@@ -0,0 +1,46 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Emoji Support" | ||
4 | date = "2019-03-05" | ||
5 | description = "Guide to emoji usage in Hugo" | ||
6 | tags = [ | ||
7 | "emoji", | ||
8 | ] | ||
9 | +++ | ||
10 | |||
11 | Emoji can be enabled in a Hugo project in a number of ways. | ||
12 | <!--more--> | ||
13 | The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). | ||
14 | |||
15 | To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. | ||
16 | |||
17 | <p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p> | ||
18 | <br> | ||
19 | |||
20 | The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. | ||
21 | |||
22 | *** | ||
23 | |||
24 | **N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. | ||
25 | |||
26 | {{< highlight html >}} | ||
27 | .emoji { | ||
28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; | ||
29 | } | ||
30 | {{< /highlight >}} | ||
31 | |||
32 | {{< css.inline >}} | ||
33 | <style> | ||
34 | .emojify { | ||
35 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; | ||
36 | font-size: 2rem; | ||
37 | vertical-align: middle; | ||
38 | } | ||
39 | @media screen and (max-width:650px) { | ||
40 | .nowrap { | ||
41 | display: block; | ||
42 | margin: 25px 0; | ||
43 | } | ||
44 | } | ||
45 | </style> | ||
46 | {{< /css.inline >}} | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/emoji-support.pt-br.md b/themes/hugo-coder/exampleSite/content/posts/emoji-support.pt-br.md new file mode 100644 index 0000000..0aa0ae2 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/emoji-support.pt-br.md | |||
@@ -0,0 +1,46 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Suporte a Emojis" | ||
4 | date = "2019-03-05" | ||
5 | description = "Um guia de utilização de emojis com Hugo" | ||
6 | tags = [ | ||
7 | "emoji", | ||
8 | ] | ||
9 | +++ | ||
10 | |||
11 | Emojis podem ser ativados em um projeto Hugo de diversar formas. | ||
12 | <!--more--> | ||
13 | A função [`emojify`](https://gohugo.io/functions/emojify/) pode ser chamada diretamente nos templates ou com [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). | ||
14 | |||
15 | Para ativar os emojis globalmente, aplique `enableEmoji` com o valor `true` na [configuração](https://gohugo.io/getting-started/configuration/) do seu site e então você poderá adicionar códigos de emoji diretamente nos arquivos de conteúdo. Por exemplo: | ||
16 | |||
17 | <p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p> | ||
18 | <br> | ||
19 | |||
20 | O [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) é uma referência útil para identificar códigos de emojis. | ||
21 | |||
22 | *** | ||
23 | |||
24 | **Nota:** Os passos anteriores ativam os caractéres e sequências de emoji do Padrão Unicode no Hugo, porém a renderização desses glifos depende do navegador e plataforma utilizada. Para escolher o estilo dos emojis você pode tanto usar um font de emoji de terceiros ou uma lista de fontes. Por exemplo: | ||
25 | |||
26 | {{< highlight html >}} | ||
27 | .emoji { | ||
28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; | ||
29 | } | ||
30 | {{< /highlight >}} | ||
31 | |||
32 | {{< css.inline >}} | ||
33 | <style> | ||
34 | .emojify { | ||
35 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; | ||
36 | font-size: 2rem; | ||
37 | vertical-align: middle; | ||
38 | } | ||
39 | @media screen and (max-width:650px) { | ||
40 | .nowrap { | ||
41 | display: block; | ||
42 | margin: 25px 0; | ||
43 | } | ||
44 | } | ||
45 | </style> | ||
46 | {{< /css.inline >}} | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/external-post.md b/themes/hugo-coder/exampleSite/content/posts/external-post.md new file mode 100644 index 0000000..ef26245 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/external-post.md | |||
@@ -0,0 +1,15 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | date = "2019-03-04" | ||
4 | title = "External Page: Hugo Coder Wiki" | ||
5 | slug = "hugo-coder-wiki" | ||
6 | tags = [ | ||
7 | "hugo", | ||
8 | "development", | ||
9 | "themes" | ||
10 | ] | ||
11 | categories = [ | ||
12 | "Development", | ||
13 | ] | ||
14 | externalLink = "https://github.com/luizdepra/hugo-coder/wiki" | ||
15 | +++ | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/external-post.pt-br.md b/themes/hugo-coder/exampleSite/content/posts/external-post.pt-br.md new file mode 100644 index 0000000..eea351a --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/external-post.pt-br.md | |||
@@ -0,0 +1,15 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | date = "2019-03-04" | ||
4 | title = "Página Externa: Wiki Hugo Coder" | ||
5 | slug = "hugo-coder-wiki" | ||
6 | tags = [ | ||
7 | "hugo", | ||
8 | "development", | ||
9 | "themes" | ||
10 | ] | ||
11 | categories = [ | ||
12 | "Development", | ||
13 | ] | ||
14 | externalLink = "https://github.com/luizdepra/hugo-coder/wiki" | ||
15 | +++ | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/markdown-syntax.md b/themes/hugo-coder/exampleSite/content/posts/markdown-syntax.md new file mode 100644 index 0000000..a61a239 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/markdown-syntax.md | |||
@@ -0,0 +1,148 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Markdown Syntax Guide" | ||
4 | date = "2019-03-11" | ||
5 | description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." | ||
6 | tags = [ | ||
7 | "markdown", | ||
8 | "css", | ||
9 | "html", | ||
10 | ] | ||
11 | categories = [ | ||
12 | "themes", | ||
13 | "syntax", | ||
14 | ] | ||
15 | series = ["Themes Guide"] | ||
16 | aliases = ["migrate-from-jekyl"] | ||
17 | +++ | ||
18 | |||
19 | This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. | ||
20 | <!--more--> | ||
21 | |||
22 | ## Headings | ||
23 | |||
24 | The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest. | ||
25 | |||
26 | # H1 | ||
27 | ## H2 | ||
28 | ### H3 | ||
29 | #### H4 | ||
30 | ##### H5 | ||
31 | ###### H6 | ||
32 | |||
33 | ## Paragraph | ||
34 | |||
35 | Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. | ||
36 | |||
37 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. | ||
38 | |||
39 | ## Blockquotes | ||
40 | |||
41 | The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. | ||
42 | |||
43 | #### Blockquote without attribution | ||
44 | |||
45 | > Tiam, ad mint andaepu dandae nostion secatur sequo quae. | ||
46 | > **Note** that you can use *Markdown syntax* within a blockquote. | ||
47 | |||
48 | #### Blockquote with attribution | ||
49 | |||
50 | > Don't communicate by sharing memory, share memory by communicating.<br> | ||
51 | > — <cite>Rob Pike[^1]</cite> | ||
52 | |||
53 | [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. | ||
54 | |||
55 | ## Tables | ||
56 | |||
57 | Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box. | ||
58 | |||
59 | Name | Age | ||
60 | --------|------ | ||
61 | Bob | 27 | ||
62 | Alice | 23 | ||
63 | |||
64 | #### Inline Markdown within tables | ||
65 | |||
66 | | Italics | Bold | Code | | ||
67 | | -------- | -------- | ------ | | ||
68 | | *italics* | **bold** | `code` | | ||
69 | |||
70 | ## Code Blocks | ||
71 | |||
72 | #### Code block with backticks | ||
73 | |||
74 | ```html | ||
75 | <!doctype html> | ||
76 | <html lang="en"> | ||
77 | <head> | ||
78 | <meta charset="utf-8"> | ||
79 | <title>Example HTML5 Document</title> | ||
80 | </head> | ||
81 | <body> | ||
82 | <p>Test</p> | ||
83 | </body> | ||
84 | </html> | ||
85 | ``` | ||
86 | |||
87 | #### Code block indented with four spaces | ||
88 | |||
89 | <!doctype html> | ||
90 | <html lang="en"> | ||
91 | <head> | ||
92 | <meta charset="utf-8"> | ||
93 | <title>Example HTML5 Document</title> | ||
94 | </head> | ||
95 | <body> | ||
96 | <p>Test</p> | ||
97 | </body> | ||
98 | </html> | ||
99 | |||
100 | #### Code block with Hugo's internal highlight shortcode | ||
101 | {{< highlight html >}} | ||
102 | <!doctype html> | ||
103 | <html lang="en"> | ||
104 | <head> | ||
105 | <meta charset="utf-8"> | ||
106 | <title>Example HTML5 Document</title> | ||
107 | </head> | ||
108 | <body> | ||
109 | <p>Test</p> | ||
110 | </body> | ||
111 | </html> | ||
112 | {{< /highlight >}} | ||
113 | |||
114 | ## List Types | ||
115 | |||
116 | #### Ordered List | ||
117 | |||
118 | 1. First item | ||
119 | 2. Second item | ||
120 | 3. Third item | ||
121 | |||
122 | #### Unordered List | ||
123 | |||
124 | * List item | ||
125 | * Another item | ||
126 | * And another item | ||
127 | |||
128 | #### Nested list | ||
129 | |||
130 | * Fruit | ||
131 | * Apple | ||
132 | * Orange | ||
133 | * Banana | ||
134 | * Dairy | ||
135 | * Milk | ||
136 | * Cheese | ||
137 | |||
138 | ## Other Elements — abbr, sub, sup, kbd, mark | ||
139 | |||
140 | <abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format. | ||
141 | |||
142 | H<sub>2</sub>O | ||
143 | |||
144 | X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup> | ||
145 | |||
146 | Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session. | ||
147 | |||
148 | Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures. | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/markdown-syntax.pt-br.md b/themes/hugo-coder/exampleSite/content/posts/markdown-syntax.pt-br.md new file mode 100644 index 0000000..0ca36ae --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/markdown-syntax.pt-br.md | |||
@@ -0,0 +1,149 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Guia de Sintaxe Markdown" | ||
4 | date = "2019-03-11" | ||
5 | description = "Artigo de exemplo mostrando a sintaxe básica Markdown e a formatação de elementos HTML." | ||
6 | tags = [ | ||
7 | "markdown", | ||
8 | "css", | ||
9 | "html", | ||
10 | ] | ||
11 | categories = [ | ||
12 | "temas", | ||
13 | "sintaxe", | ||
14 | ] | ||
15 | series = ["Guia do Thema"] | ||
16 | aliases = ["migrate-from-jekyl"] | ||
17 | +++ | ||
18 | |||
19 | Esse artigo é um exemplo básico para mostrar a sintaxe Markdown que é usada nos arquivos de conteúdo do Hugo. Ele também mostrar como cada elemento básico HTML é estilizado com CSS com os temas do Hugo. | ||
20 | <!--more--> | ||
21 | |||
22 | ## Cabeçalhos | ||
23 | |||
24 | Os seguintes elementos HTML `<h1>`—`<h6>` representam 6 níveis de cabeçalhos de seção. `<h1>` é para seções de nível mais alto enquanto `<h6>` é para o nível mais baixo. | ||
25 | |||
26 | # H1 | ||
27 | ## H2 | ||
28 | ### H3 | ||
29 | #### H4 | ||
30 | ##### H5 | ||
31 | ###### H6 | ||
32 | |||
33 | ## Parágrafo | ||
34 | |||
35 | Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. | ||
36 | |||
37 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. | ||
38 | |||
39 | ## Citações | ||
40 | |||
41 | O elemento de citações representa um conteúdo citado de outra origem, opcionalmente com atribuição que deve estar contida em um elemento `footer` ou `cite`, e também opcionalmente com informações in-line como anotações e abreviações. | ||
42 | |||
43 | #### Citações sem atribuição | ||
44 | |||
45 | > Tiam, ad mint andaepu dandae nostion secatur sequo quae. | ||
46 | > **Note** that you can use *Markdown syntax* within a blockquote. | ||
47 | |||
48 | #### Citações com atribuição | ||
49 | |||
50 | > Não comunique compartilhando memória, compartilhe memória comunicando.<br> | ||
51 | > — <cite>Rob Pike[^1]</cite> | ||
52 | |||
53 | [^1]: A citação acima foi extraída da [apresentação](https://www.youtube.com/watch?v=PAAkCSZUG1c) do Rob Pike durante a Gopherfest, de 18 de Novembro de 2015. | ||
54 | |||
55 | ## Tabelas | ||
56 | |||
57 | Tabelas não fazem parte do cerne da especificação do Markdown, mas o Hugo oferece suporte a elas. | ||
58 | |||
59 | Nome | Idade | ||
60 | --------|------- | ||
61 | Bob | 27 | ||
62 | Alice | 23 | ||
63 | |||
64 | #### Tabelas com Markdown inline | ||
65 | |||
66 | | Italics | Bold | Code | | ||
67 | | -------- | -------- | ------ | | ||
68 | | *italics* | **bold** | `code` | | ||
69 | |||
70 | ## Blocos de código | ||
71 | |||
72 | #### Blocos de código com crase | ||
73 | |||
74 | ```html | ||
75 | <!doctype html> | ||
76 | <html lang="pt-br"> | ||
77 | <head> | ||
78 | <meta charset="utf-8"> | ||
79 | <title>Exemplo de Documento HTML5</title> | ||
80 | </head> | ||
81 | <body> | ||
82 | <p>Teste</p> | ||
83 | </body> | ||
84 | </html> | ||
85 | ``` | ||
86 | |||
87 | #### Blocos de código com quatro espaços | ||
88 | |||
89 | <!doctype html> | ||
90 | <html lang="pt-br"> | ||
91 | <head> | ||
92 | <meta charset="utf-8"> | ||
93 | <title>Exemplo de Documento HTML5</title> | ||
94 | </head> | ||
95 | <body> | ||
96 | <p>Teste</p> | ||
97 | </body> | ||
98 | </html> | ||
99 | |||
100 | #### Blocos de código com highlight shortcode interno do Hugo | ||
101 | |||
102 | {{< highlight html >}} | ||
103 | <!doctype html> | ||
104 | <html lang="pt-br"> | ||
105 | <head> | ||
106 | <meta charset="utf-8"> | ||
107 | <title>Exemplo de Documento HTML5</title> | ||
108 | </head> | ||
109 | <body> | ||
110 | <p>Teste</p> | ||
111 | </body> | ||
112 | </html> | ||
113 | {{< /highlight >}} | ||
114 | |||
115 | ## Tipos de Listas | ||
116 | |||
117 | #### Listas Ordenada | ||
118 | |||
119 | 1. Primeiro item | ||
120 | 2. Segundo item | ||
121 | 3. Terceiro item | ||
122 | |||
123 | #### Listas não Ordenada | ||
124 | |||
125 | * Um item | ||
126 | * Outro item | ||
127 | * Algum outro item | ||
128 | |||
129 | #### Listas aninhadas | ||
130 | |||
131 | * Frutas | ||
132 | * Maçã | ||
133 | * Laranja | ||
134 | * Banana | ||
135 | * Laticínios | ||
136 | * Leite | ||
137 | * Queijo | ||
138 | |||
139 | ## Outros Elementos — abbr, sub, sup, kbd, mark | ||
140 | |||
141 | <abbr title="Graphics Interchange Format">GIF</abbr> é um formato de imagem bitmap. | ||
142 | |||
143 | H<sub>2</sub>O | ||
144 | |||
145 | X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup> | ||
146 | |||
147 | Aperte <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> para fechar. | ||
148 | |||
149 | A maioria das <mark>salamandras</mark> são noturnas e caçam insetos, vermes, e outras criaturas pequenas. | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/math-typesetting.md b/themes/hugo-coder/exampleSite/content/posts/math-typesetting.md new file mode 100644 index 0000000..62831a9 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/math-typesetting.md | |||
@@ -0,0 +1,49 @@ | |||
1 | --- | ||
2 | author: Hugo Authors | ||
3 | title: Math Typesetting | ||
4 | date: 2019-03-08 | ||
5 | description: A brief guide to setup KaTeX | ||
6 | math: true | ||
7 | --- | ||
8 | |||
9 | Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. | ||
10 | <!--more--> | ||
11 | |||
12 | In this example we will be using [KaTeX](https://katex.org/) | ||
13 | |||
14 | - Create a partial under `/layouts/partials/math.html` | ||
15 | - Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. | ||
16 | - Include the partial in your templates like so: | ||
17 | |||
18 | ```bash | ||
19 | {{ if or .Params.math .Site.Params.math }} | ||
20 | {{ partial "math.html" . }} | ||
21 | {{ end }} | ||
22 | ``` | ||
23 | |||
24 | - To enable KaTex globally set the parameter `math` to `true` in a project's configuration | ||
25 | - To enable KaTex on a per page basis include the parameter `math: true` in content files | ||
26 | |||
27 | **Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) | ||
28 | |||
29 | {{< math.inline >}} | ||
30 | {{ if or .Page.Params.math .Site.Params.math }} | ||
31 | <!-- KaTeX --> | ||
32 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> | ||
33 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script> | ||
34 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> | ||
35 | {{ end }} | ||
36 | {{</ math.inline >}} | ||
37 | |||
38 | ### Examples | ||
39 | |||
40 | {{< math.inline >}} | ||
41 | <p> | ||
42 | Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) | ||
43 | </p> | ||
44 | {{</ math.inline >}} | ||
45 | |||
46 | Block math: | ||
47 | $$ | ||
48 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } | ||
49 | $$ | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/math-typesetting.pt-br.md b/themes/hugo-coder/exampleSite/content/posts/math-typesetting.pt-br.md new file mode 100644 index 0000000..31dd367 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/math-typesetting.pt-br.md | |||
@@ -0,0 +1,49 @@ | |||
1 | --- | ||
2 | author: Hugo Authors | ||
3 | title: Configuração de Equações Matemáticas | ||
4 | date: 2019-03-08 | ||
5 | description: Um guia rápido sobre utilizar KaTeX | ||
6 | math: true | ||
7 | --- | ||
8 | |||
9 | Em um projeto Hugo as Notações Matemáticas podem ser usadas com a ajuda de bibliotecas JavaScript de terceiros. | ||
10 | <!--more--> | ||
11 | |||
12 | Nesse exemplo usaremos o [KaTeX](https://katex.org/). | ||
13 | |||
14 | - Crie um partial template em `/layouts/partials/math.html` | ||
15 | - Dentro, utilize o [Auto-render Extension](https://katex.org/docs/autorender.html) ou sirva os scripts localmente. | ||
16 | - Inclua o partial nos seus templates da seguinte forma: | ||
17 | |||
18 | ```bash | ||
19 | {{ if or .Params.math .Site.Params.math }} | ||
20 | {{ partial "math.html" . }} | ||
21 | {{ end }} | ||
22 | ``` | ||
23 | |||
24 | - Para ativar o KaTex globalmente defina o parâmetro `math` como `true` na confgiuração do projeto | ||
25 | - Para ativar o KaTex em páginas específicas inclua o parâmetro `math: true` nos arquivos de conteúdo | ||
26 | |||
27 | **Nota:** Use a referência online [Supported TeX Functions](https://katex.org/docs/supported.html) como base para criar notações matemáticas. | ||
28 | |||
29 | {{< math.inline >}} | ||
30 | {{ if or .Page.Params.math .Site.Params.math }} | ||
31 | <!-- KaTeX --> | ||
32 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> | ||
33 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script> | ||
34 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> | ||
35 | {{ end }} | ||
36 | {{</ math.inline >}} | ||
37 | |||
38 | ### Examples | ||
39 | |||
40 | {{< math.inline >}} | ||
41 | <p> | ||
42 | Notação inline: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) | ||
43 | </p> | ||
44 | {{</ math.inline >}} | ||
45 | |||
46 | Notação em bloco: | ||
47 | $$ | ||
48 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } | ||
49 | $$ | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/more-rich-content.md b/themes/hugo-coder/exampleSite/content/posts/more-rich-content.md new file mode 100644 index 0000000..3040465 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/more-rich-content.md | |||
@@ -0,0 +1,43 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "More Rich Content" | ||
4 | date = "2019-03-09" | ||
5 | description = "A brief description about Hugo Coder's Custom Shortcodes" | ||
6 | tags = [ | ||
7 | "shortcodes" | ||
8 | ] | ||
9 | +++ | ||
10 | |||
11 | Hugo Coder provides some Custom Shortcodes. | ||
12 | <!--more--> | ||
13 | --- | ||
14 | |||
15 | ## Shortcodes Avisos | ||
16 | |||
17 | {{< notice note >}} | ||
18 | One note here. | ||
19 | {{< /notice >}} | ||
20 | |||
21 | {{< notice tip >}} | ||
22 | I'm giving a tip about something. | ||
23 | {{< /notice >}} | ||
24 | |||
25 | {{< notice example >}} | ||
26 | This is an example. | ||
27 | {{< /notice >}} | ||
28 | |||
29 | {{< notice question >}} | ||
30 | Is this a question? | ||
31 | {{< /notice >}} | ||
32 | |||
33 | {{< notice info >}} | ||
34 | Notice that this box contain information. | ||
35 | {{< /notice >}} | ||
36 | |||
37 | {{< notice warning >}} | ||
38 | This is the last warning! | ||
39 | {{< /notice >}} | ||
40 | |||
41 | {{< notice error >}} | ||
42 | There is an error in your code. | ||
43 | {{< /notice >}} | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/more-rich-content.pt-br.md b/themes/hugo-coder/exampleSite/content/posts/more-rich-content.pt-br.md new file mode 100644 index 0000000..33e8ba3 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/more-rich-content.pt-br.md | |||
@@ -0,0 +1,43 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Mais Conteúdo Rico" | ||
4 | date = "2019-03-09" | ||
5 | description = "Uma breve descrição sobre Shortcodes customizados do Hugo Coder" | ||
6 | tags = [ | ||
7 | "shortcodes" | ||
8 | ] | ||
9 | +++ | ||
10 | |||
11 | O Hugo Coder proporciona alguns Shortcodes Customizados. | ||
12 | <!--more--> | ||
13 | --- | ||
14 | |||
15 | ## Shortcodes Avisos | ||
16 | |||
17 | {{< notice note >}} | ||
18 | Uma nota aqui. | ||
19 | {{< /notice >}} | ||
20 | |||
21 | {{< notice tip >}} | ||
22 | Estou lhe dando uma dica. | ||
23 | {{< /notice >}} | ||
24 | |||
25 | {{< notice example >}} | ||
26 | Isso é um exemplo. | ||
27 | {{< /notice >}} | ||
28 | |||
29 | {{< notice question >}} | ||
30 | Isso é um pergunta? | ||
31 | {{< /notice >}} | ||
32 | |||
33 | {{< notice info >}} | ||
34 | Note que essa caixa contém informações. | ||
35 | {{< /notice >}} | ||
36 | |||
37 | {{< notice warning >}} | ||
38 | Este é o último aviso! | ||
39 | {{< /notice >}} | ||
40 | |||
41 | {{< notice error >}} | ||
42 | Há um erro no seu código. | ||
43 | {{< /notice >}} | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/placeholder-text.md b/themes/hugo-coder/exampleSite/content/posts/placeholder-text.md new file mode 100644 index 0000000..9ed5f69 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/placeholder-text.md | |||
@@ -0,0 +1,45 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Placeholder Text" | ||
4 | date = "2019-03-09" | ||
5 | description = "Lorem Ipsum Dolor Si Amet" | ||
6 | tags = [ | ||
7 | "markdown", | ||
8 | "text", | ||
9 | ] | ||
10 | +++ | ||
11 | |||
12 | Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. | ||
13 | |||
14 | 1. Exierant elisi ambit vivere dedere | ||
15 | 2. Duce pollice | ||
16 | 3. Eris modo | ||
17 | 4. Spargitque ferrea quos palude | ||
18 | |||
19 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. | ||
20 | |||
21 | 1. Comas hunc haec pietate fetum procerum dixit | ||
22 | 2. Post torum vates letum Tiresia | ||
23 | 3. Flumen querellas | ||
24 | 4. Arcanaque montibus omnes | ||
25 | 5. Quidem et | ||
26 | |||
27 | # Vagus elidunt | ||
28 | |||
29 | <svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg> | ||
30 | |||
31 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) | ||
32 | |||
33 | ## Mane refeci capiebant unda mulcebat | ||
34 | |||
35 | Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. | ||
36 | |||
37 | Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. | ||
38 | |||
39 | Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. | ||
40 | |||
41 | {{< css.inline >}} | ||
42 | <style> | ||
43 | .canon { background: white; width: 100%; height: auto; } | ||
44 | </style> | ||
45 | {{< /css.inline >}} | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/placeholder-text.pt-br.md b/themes/hugo-coder/exampleSite/content/posts/placeholder-text.pt-br.md new file mode 100644 index 0000000..8a05387 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/placeholder-text.pt-br.md | |||
@@ -0,0 +1,45 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Texto de Exemplo" | ||
4 | date = "2019-03-09" | ||
5 | description = "Lorem Ipsum Dolor Si Amet" | ||
6 | tags = [ | ||
7 | "markdown", | ||
8 | "text", | ||
9 | ] | ||
10 | +++ | ||
11 | |||
12 | Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. | ||
13 | |||
14 | 1. Exierant elisi ambit vivere dedere | ||
15 | 2. Duce pollice | ||
16 | 3. Eris modo | ||
17 | 4. Spargitque ferrea quos palude | ||
18 | |||
19 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. | ||
20 | |||
21 | 1. Comas hunc haec pietate fetum procerum dixit | ||
22 | 2. Post torum vates letum Tiresia | ||
23 | 3. Flumen querellas | ||
24 | 4. Arcanaque montibus omnes | ||
25 | 5. Quidem et | ||
26 | |||
27 | # Vagus elidunt | ||
28 | |||
29 | <svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg> | ||
30 | |||
31 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) | ||
32 | |||
33 | ## Mane refeci capiebant unda mulcebat | ||
34 | |||
35 | Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. | ||
36 | |||
37 | Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. | ||
38 | |||
39 | Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. | ||
40 | |||
41 | {{< css.inline >}} | ||
42 | <style> | ||
43 | .canon { background: white; width: 100%; height: auto; } | ||
44 | </style> | ||
45 | {{< /css.inline >}} | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/rich-content.md b/themes/hugo-coder/exampleSite/content/posts/rich-content.md new file mode 100644 index 0000000..92b4b03 --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/rich-content.md | |||
@@ -0,0 +1,34 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Rich Content" | ||
4 | date = "2019-03-10" | ||
5 | description = "A brief description of Hugo Shortcodes" | ||
6 | tags = [ | ||
7 | "shortcodes", | ||
8 | "privacy", | ||
9 | ] | ||
10 | +++ | ||
11 | |||
12 | Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. | ||
13 | <!--more--> | ||
14 | --- | ||
15 | |||
16 | ## YouTube Privacy Enhanced Shortcode | ||
17 | |||
18 | {{< youtube ZJthWmvUzzc >}} | ||
19 | |||
20 | <br> | ||
21 | |||
22 | --- | ||
23 | |||
24 | ## Twitter Simple Shortcode | ||
25 | |||
26 | {{< twitter_simple 1085870671291310081 >}} | ||
27 | |||
28 | <br> | ||
29 | |||
30 | --- | ||
31 | |||
32 | ## Vimeo Simple Shortcode | ||
33 | |||
34 | {{< vimeo_simple 48912912 >}} | ||
diff --git a/themes/hugo-coder/exampleSite/content/posts/rich-content.pt-br.md b/themes/hugo-coder/exampleSite/content/posts/rich-content.pt-br.md new file mode 100644 index 0000000..e06730f --- /dev/null +++ b/themes/hugo-coder/exampleSite/content/posts/rich-content.pt-br.md | |||
@@ -0,0 +1,34 @@ | |||
1 | +++ | ||
2 | author = "Hugo Authors" | ||
3 | title = "Conteúdo Rico" | ||
4 | date = "2019-03-10" | ||
5 | description = "Uma breve descrição sobre Shortcodes do Hugo" | ||
6 | tags = [ | ||
7 | "shortcodes", | ||
8 | "privacy", | ||
9 | ] | ||
10 | +++ | ||
11 | |||
12 | O Hugo vem com vários [Shortcodes Internos](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) para conteúdo rico, assim como uma [Configuração de Privacidade](https://gohugo.io/about/hugo-and-gdpr/) e uma gama de Shortcodes simples que permitem embutir versões estáticas e sem JS de várias de redes sociais. | ||
13 | <!--more--> | ||
14 | --- | ||
15 | |||
16 | ## Shortcode do YouTube com privacidade melhorada | ||
17 | |||
18 | {{< youtube ZJthWmvUzzc >}} | ||
19 | |||
20 | <br> | ||
21 | |||
22 | --- | ||
23 | |||
24 | ## Shortcode simples do Twitter | ||
25 | |||
26 | {{< twitter_simple 1085870671291310081 >}} | ||
27 | |||
28 | <br> | ||
29 | |||
30 | --- | ||
31 | |||
32 | ## Shortcode simples do Vimeo | ||
33 | |||
34 | {{< vimeo_simple 48912912 >}} | ||