Skip to content

Commit

Permalink
mvp-tema-i18n (#8): layout
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed May 12, 2021
1 parent 8423d04 commit 3ccda86
Show file tree
Hide file tree
Showing 16 changed files with 177 additions and 352 deletions.
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ plugins:
- jekyll-sitemap

defaults:
- scope:
path: "" # an empty string here means all files in the project
values:
layout: "defallo"
- scope:
path: "api/*/*/*/html"
values:
Expand Down
Empty file removed _data/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions _data/eng/documentum-navigandum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @see https://mycyberuniverse.com/jekyll-bootstrap-dynamic-navigation-highlighting-active-element.html
27 changes: 27 additions & 0 deletions _data/por/documentum-navigandum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# @see https://mycyberuniverse.com/jekyll-bootstrap-dynamic-navigation-highlighting-active-element.html


# Trivia:
# - "documentum"
# - https://en.wiktionary.org/wiki/documentum
# - "nāvigandum"
# - https://en.wiktionary.org/wiki/navigo#Latin

- title: About
url: /about.html
- title: Team
url: /team.html
- title: Contact
url: /contact.html
- title: Store
url: /store.html
- title: Support
url: /support.html
sublinks:
- title: FAQ
url: /faq.html
- title: Documentation
url: /documentation.html
- title: separator
- title: Customer Support
url: /customer-support.html
3 changes: 2 additions & 1 deletion _includes/bootstrap5-header.html → _includes/caput.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!-- Trivia: 'caput', https://en.wiktionary.org/wiki/caput#Latin -->
<header class="site-header">

<div class="wrapper">
<div class="container">
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
Expand Down
35 changes: 35 additions & 0 deletions _includes/documentum-navigandum.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% comment %}
- https://mycyberuniverse.com/jekyll-bootstrap-dynamic-navigation-highlighting-active-element.html
{% endcomment %}

<nav id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{% assign links = site.data.navigation %}
{% for link in links %}
{% assign class = nil %}
{% if page.url contains link.url %}
{% assign class = 'active' %}
{% endif %}
{% if link.sublinks %}
<li class="dropdown {{ class }}">
<a href="{{ site.url }}{{ site.baseurl }}{{ link.url }}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ link.title }} <span class="caret"></span></a>
<ul class="dropdown-menu">
{% for sublink in link.sublinks %}
{% if sublink.title == 'separator' %}
<li role="separator" class="divider"></li>
{% else %}
<li>
<a href="{{ site.url }}{{ site.baseurl }}{{ sublink.url }}">{{ sublink.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</li>
{% else %}
<li class="{{ class }}">
<a href="{{ site.url }}{{ site.baseurl }}{{ link.url }}">{{ link.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</nav>
18 changes: 0 additions & 18 deletions _includes/head.html

This file was deleted.

2 changes: 2 additions & 0 deletions _includes/bootstrap5-head.html → _includes/meta-caput.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Trivia: 'metaphysicam', https://en.wiktionary.org/wiki/metaphysica#Latin; 'caput', https://en.wiktionary.org/wiki/caput#Latin -->

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand Down
43 changes: 43 additions & 0 deletions _includes/pedem.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
Trivia:
- "pedem"
- https://en.wiktionary.org/wiki/pes#Latin
-->

<footer class="site-footer h-card">
<data class="u-url" href="{{ "/" | relative_url }}"></data>

<div class="container">

<div class="footer-col-wrapper">
<div class="footer-col">
<p class="feed-subscribe">
<a href="{{ 'feed.xml' | relative_url }}">
<svg class="svg-icon orange">
<use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use>
</svg><span>Subscribe</span>
</a>
</p>
{%- if site.author %}
<ul class="contact-list">
{% if site.author.name -%}
<li class="p-name">{{ site.author.name | escape }}</li>
{% endif -%}
{% if site.author.email -%}
<li><a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
{%- endif %}
</ul>
{%- endif %}
</div>
<div class="footer-col">
<p>{{ site.description | escape }}</p>
</div>
</div>

<div class="social-links">
{%- include social.html -%}
</div>

</div>

</footer>
16 changes: 8 additions & 8 deletions _layouts/defallo.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: 'la' }}">

{%- include bootstrap5-head.html -%}
{%- include meta-caput.html -%}

<body>

{%- include header.html -%}
{%- include caput.html -%}

<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>
<main class="page-content" aria-label="Content">
<div class="container">
{{ content }}
</div>
</main>

{%- include footer.html -%}
{%- include pedem.html -%}

</body>

Expand Down
20 changes: 20 additions & 0 deletions _layouts/default-old.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">

{%- include head.html -%}

<body>

{%- include header.html -%}

<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>

{%- include footer.html -%}

</body>

</html>
18 changes: 18 additions & 0 deletions documentum/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
published: false
---

# Ajuda para mantenedores

> TODOs:
> - https://forestry.io/blog/creating-a-multilingual-blog-with-jekyll/
## Extensões e plugins
### VSCode

<!--
- `ext install neilding.language-liquid`
- https://github.com/GingerBear/vscode-liquid
- https://marketplace.visualstudio.com/items?itemName=neilding.language-liquid
- https://github.com/siteleaf/liquid-syntax-mode
-->
2 changes: 1 addition & 1 deletion documentum/por/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Documentação interativa para APIs humanitárias"
description: "[rascunho] Documentação argumentada de APIs comuns para ajuda humanitária com OpenAPI"
locale: pt
permalink: /por2/
permalink: /por/

---

Expand Down
Loading

0 comments on commit 3ccda86

Please sign in to comment.