Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus2k2 committed Jun 20, 2024
1 parent 18ba8b6 commit a160da0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 143 deletions.
36 changes: 18 additions & 18 deletions mkdocs.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,23 @@ home_description: My blog
# Gradient Color
home_gradient_hsla: hsla(270deg, 30%, 50%, 1)

# # Custom Homepage Button(s)
# home_button1_name: Blog
# home_button1_url: Blog/
# home_button1_theme: md-button md-button--primary
# home_button1_icon: people
# home_button1_blurb: My Blog

# home_button2_name: Archive
# home_button2_url: blog/archive
# home_button2_theme: md-button
# home_button2_icon: gear
# home_button2_blurb: Archive posts organized by year

# home_button3_name: Categories
# home_button3_url: blog/category
# home_button3_theme: md-button
# home_button3_icon: image
# home_button3_blurb: Posts organized by categories
# Custom Homepage Button(s)
home_button1_name: Blog
home_button1_url: Blog/
home_button1_theme: md-button md-button--primary
home_button1_icon: people
home_button1_blurb: My Blog

home_button2_name: Archive
home_button2_url: blog/archive
home_button2_theme: md-button
home_button2_icon: gear
home_button2_blurb: Archive posts organized by year

home_button3_name: Categories
home_button3_url: blog/category
home_button3_theme: md-button
home_button3_icon: image
home_button3_blurb: Posts organized by categories

home_execute_js: console.log("This is an example!");
36 changes: 18 additions & 18 deletions mkdocs.pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,23 +143,23 @@ home_description: Meu blog
# Cor do Gradiente
home_gradient_hsla: hsla(270deg, 30%, 50%, 1)

# # Botão(s) Personalizado(s) da Página Inicial
# home_button1_name: Blog
# home_button1_url: Blog/
# home_button1_theme: md-button md-button--primary
# home_button1_icon: people
# home_button1_blurb: Meu Blog

# home_button2_name: Arquivo
# home_button2_url: blog/archive
# home_button2_theme: md-button
# home_button2_icon: gear
# home_button2_blurb: Postagens arquivadas organizadas por ano

# home_button3_name: Categorias
# home_button3_url: blog/category
# home_button3_theme: md-button
# home_button3_icon: image
# home_button3_blurb: Postagens organizadas por categorias
# Botão(s) Personalizado(s) da Página Inicial
home_button1_name: Blog
home_button1_url: Blog/
home_button1_theme: md-button md-button--primary
home_button1_icon: people
home_button1_blurb: Meu Blog

home_button2_name: Arquivo
home_button2_url: blog/archive
home_button2_theme: md-button
home_button2_icon: gear
home_button2_blurb: Postagens arquivadas organizadas por ano

home_button3_name: Categorias
home_button3_url: blog/category
home_button3_theme: md-button
home_button3_icon: image
home_button3_blurb: Postagens organizadas por categorias

home_execute_js: console.log("Este é um exemplo!");
107 changes: 0 additions & 107 deletions overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,113 +263,6 @@ <h1>{{ config.home_tagline }}</h1>
</div>
</section>


<!-- Main site box descriptions -->
<div class="top-hr">

<!-- Start Outer Condition -->
{%- if config.home_button1_name -%}
<div class="feature-item">
<h2>
<!-- People Icon -->
{%- if config.home_button1_icon == "people" -%}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M16 17v2H2v-2s0-4 7-4 7 4 7 4m-3.5-9.5A3.5 3.5 0 109 11a3.5 3.5 0 003.5-3.5m3.44 5.5A5.32 5.32 0 0118 17v2h4v-2s0-3.63-6.06-4M15 4a3.39 3.39 0 00-1.93.59 5 5 0 010 5.82A3.39 3.39 0 0015 11a3.5 3.5 0 000-7z" />
</svg>
{%- endif -%}

<!-- Gear Icon -->
{%- if config.home_button1_icon == "gear" -%}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M15 17v-3h3v-2l4 3.5-4 3.5v-2h-3m2 1v3h-3v2l-4-3.5 4-3.5v2h3M12 8c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2m9.66-5.27l-2-3.46c-.12-.22-.38-.31-.61-.22l-2.49 1c-.51-.41-1.06-.74-1.69-1l-.37-2.63A.506.506 0 0014 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.26-1.17.59-1.69 1L5 5.05c-.23-.09-.5 0-.61.22l-2 3.46c-.13.21-.08.49.11.64L4.57 11l-.07 1 .07 1-2.11 1.63c-.2.15-.25.43-.12.64l2 3.46c.11.27.4.38.66.27l2.5-1c.24.19.5.37.76.53l1.65-1.4c-.77-.33-1.45-.82-2-1.45l-2.41 1-.77-1.3L6.8 13.8a5.55 5.55 0 010-3.6L4.69 8.65l.75-1.3 2.41 1c.78-.9 1.83-1.53 3-1.78l.4-2.57h1.5l.37 2.62c1.17.24 2.22.88 3 1.77l2.41-1 .75 1.3-2.08 1.51c.09.26.16.53.2.8h2l2.1-1.63a.48.48 0 00.16-.64M12 8c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2m0-6c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2z" />
</svg>
{%- endif -%}

<!-- Image Icon -->
{%- if config.home_button1_icon == "image" -%}
<svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M20.4 14.5L16 10 4 20"/>
</svg>
{%- endif -%}

<!-- Button Description -->
{{ config.home_button1_name }}
</h2>
<p>{{ config.home_button1_blurb }}</p>
</div>
{%- endif -%}
<!-- End Outer Condition -->

<!-- Start Outer Condition -->
{%- if config.home_button2_name -%}
<div class="feature-item">
<h2>
<!-- People Icon -->
{%- if config.home_button2_icon == "people" -%}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M16 17v2H2v-2s0-4 7-4 7 4 7 4m-3.5-9.5A3.5 3.5 0 109 11a3.5 3.5 0 003.5-3.5m3.44 5.5A5.32 5.32 0 0118 17v2h4v-2s0-3.63-6.06-4M15 4a3.39 3.39 0 00-1.93.59 5 5 0 010 5.82A3.39 3.39 0 0015 11a3.5 3.5 0 000-7z" />
</svg>
{%- endif -%}

<!-- Gear Icon -->
{%- if config.home_button2_icon == "gear" -%}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M15 17v-3h3v-2l4 3.5-4 3.5v-2h-3m2 1v3h-3v2l-4-3.5 4-3.5v2h3M12 8c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2m9.66-5.27l-2-3.46c-.12-.22-.38-.31-.61-.22l-2.49 1c-.51-.41-1.06-.74-1.69-1l-.37-2.63A.506.506 0 0014 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.26-1.17.59-1.69 1L5 5.05c-.23-.09-.5 0-.61.22l-2 3.46c-.13.21-.08.49.11.64L4.57 11l-.07 1 .07 1-2.11 1.63c-.2.15-.25.43-.12.64l2 3.46c.11.27.4.38.66.27l2.5-1c.24.19.5.37.76.53l1.65-1.4c-.77-.33-1.45-.82-2-1.45l-2.41 1-.77-1.3L6.8 13.8a5.55 5.55 0 010-3.6L4.69 8.65l.75-1.3 2.41 1c.78-.9 1.83-1.53 3-1.78l.4-2.57h1.5l.37 2.62c1.17.24 2.22.88 3 1.77l2.41-1 .75 1.3-2.08 1.51c.09.26.16.53.2.8h2l2.1-1.63a.48.48 0 00.16-.64M12 8c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2m0-6c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2z" />
</svg>
{%- endif -%}

<!-- Image Icon -->
{%- if config.home_button2_icon == "image" -%}
<svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M20.4 14.5L16 10 4 20"/>
</svg>
{%- endif -%}

<!-- Button Description -->
{{ config.home_button2_name }}
</h2>
<p>{{ config.home_button2_blurb }}</p>
</div>
{%- endif -%}
<!-- End Outer Condition -->

<!-- Start Outer Condition -->
{%- if config.home_button3_name -%}
<div class="feature-item">
<h2>
<!-- People Icon -->
{%- if config.home_button3_icon == "people" -%}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M16 17v2H2v-2s0-4 7-4 7 4 7 4m-3.5-9.5A3.5 3.5 0 109 11a3.5 3.5 0 003.5-3.5m3.44 5.5A5.32 5.32 0 0118 17v2h4v-2s0-3.63-6.06-4M15 4a3.39 3.39 0 00-1.93.59 5 5 0 010 5.82A3.39 3.39 0 0015 11a3.5 3.5 0 000-7z" />
</svg>
{%- endif -%}

<!-- Gear Icon -->
{%- if config.home_button3_icon == "gear" -%}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M15 17v-3h3v-2l4 3.5-4 3.5v-2h-3m2 1v3h-3v2l-4-3.5 4-3.5v2h3M12 8c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2m9.66-5.27l-2-3.46c-.12-.22-.38-.31-.61-.22l-2.49 1c-.51-.41-1.06-.74-1.69-1l-.37-2.63A.506.506 0 0014 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.26-1.17.59-1.69 1L5 5.05c-.23-.09-.5 0-.61.22l-2 3.46c-.13.21-.08.49.11.64L4.57 11l-.07 1 .07 1-2.11 1.63c-.2.15-.25.43-.12.64l2 3.46c.11.27.4.38.66.27l2.5-1c.24.19.5.37.76.53l1.65-1.4c-.77-.33-1.45-.82-2-1.45l-2.41 1-.77-1.3L6.8 13.8a5.55 5.55 0 010-3.6L4.69 8.65l.75-1.3 2.41 1c.78-.9 1.83-1.53 3-1.78l.4-2.57h1.5l.37 2.62c1.17.24 2.22.88 3 1.77l2.41-1 .75 1.3-2.08 1.51c.09.26.16.53.2.8h2l2.1-1.63a.48.48 0 00.16-.64M12 8c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2m0-6c-2.21 0-4 1.8-4 4 0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0012 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2 2 .9 2 2-.89 2-2 2z" />
</svg>
{%- endif -%}

<!-- Image Icon -->
{%- if config.home_button3_icon == "image" -%}
<svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M20.4 14.5L16 10 4 20"/>
</svg>
{%- endif -%}

<!-- Button Description -->
{{ config.home_button3_name }}
</h2>
<p>{{ config.home_button3_blurb }}</p>
</div>
{%- endif -%}
<!-- End Outer Condition -->
</div>

<div class="top-hr">
<!-- <div class="hr"> -->
<!-- </div> -->
Expand Down

0 comments on commit a160da0

Please sign in to comment.