Skip to content

Commit

Permalink
mvp-tema-i18n (#9), menu-sitemap-i18n (#10): reorganização de arquivos
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed May 14, 2021
1 parent f7fca39 commit 1ecbba1
Show file tree
Hide file tree
Showing 9 changed files with 203 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# @see _systema/infrastructuram/temporarium.sh
# @see https://docs.travis-ci.com/user/deployment/script/

# TODO: remove this file. travis not used now (Emerson Rocha, 2021-05-14 15:30 UTC)

# Without specifing language, it would default to ruby and this can fail
# script: bash _systema/infrastructuram/travis-ci.sh
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ keep_files:

# @see https://github.com/jekyll/jekyll-sitemap
url: "https://hapi.etica.ai" # the base hostname & protocol for your site
plugins:
- jekyll-sitemap
# plugins:
# - jekyll-sitemap

defaults:
- scope:
Expand Down
3 changes: 3 additions & 0 deletions documentum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ published: false
> - https://weblate.org/pt/
> - https://docs.weblate.org/pt/latest/formats.html#csv-files
> - https://docs.weblate.org/pt/latest/formats.html#xliff
> - Update boostrap
> - https://github.com/twbs/bootstrap/releases/tag/v5.0.1
> - https://github.com/twbs/bootstrap/pull/33709
<!--
## Extensões e plugins
Expand Down
12 changes: 12 additions & 0 deletions documentum/debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: "Debug, ignore"
description: "Debug, ignore"
locale: la
linguam: lat
permalink: /debug

published: false
sitemap:
exclude: yes
---

3 changes: 3 additions & 0 deletions documentum/eng/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: "[working-draft] Argumented documentation of common APIs for humani
locale: en
linguam: eng
permalink: /eng/
categories: index
tags:
- index
---

# Augmented documentation for Humanitarian APIs
Expand Down
2 changes: 2 additions & 0 deletions documentum/por/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: "[rascunho] Documentação argumentada de APIs comuns para ajuda hu
locale: pt
linguam: por
permalink: /por/
categories:
- index

---

Expand Down
7 changes: 7 additions & 0 deletions robots.txt → documentum/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
layout: null
permalink: /robots.txt
sitemap:
exclude: yes
---

# 2021-05-08 (draft)

User-agent: *
Expand Down
111 changes: 111 additions & 0 deletions documentum/sitemap.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
layout: null
permalink: /sitemap.html
sitemap:
exclude: 'yes'

# See http://www.independent-software.com/generating-a-sitemap-xml-with-jekyll-without-a-plugin.html
---

<!doctype html>
<html lang="la">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<title>Sitemap</title>
</head>

<body>
<header>
<div class="container">
<h1>Sitemap</h1>
</div>
</header>
<main>
<div class="container">
<h2>Pages</h2>
<ul>
{% for post in site.pages %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<h2>Categories</h2>
<ul>
{% for category in site.pages %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<pre>
{{ site.categories | json }}
</pre>

<h2>sitemal.xml draft</h2>
<pre><code>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
{% unless post.published == false %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.sitemap.lastmod %}
<lastmod>{{ post.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif post.date %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if post.sitemap.changefreq %}
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if post.sitemap.priority %}
<priority>{{ post.sitemap.priority }}</priority>
{% else %}
<priority>0.5</priority>
{% endif %}
</url>
{% endunless %}
{% endfor %}
{% for page in site.pages %}
{% unless page.sitemap.exclude == "yes" or page.name == "feed.xml" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
{% if page.sitemap.lastmod %}
<lastmod>{{ page.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if page.sitemap.changefreq %}
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if page.sitemap.priority %}
<priority>{{ page.sitemap.priority }}</priority>
{% else %}
<priority>0.3</priority>
{% endif %}
</url>
{% endunless %}
{% endfor %}
</code></urlset>
</pre>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"></script>

</body>

</html>
62 changes: 62 additions & 0 deletions documentum/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
layout: null
permalink: /sitemap.xml
sitemap:
exclude: 'yes'

# See http://www.independent-software.com/generating-a-sitemap-xml-with-jekyll-without-a-plugin.html

# NOTE: this is a draft (Emerson Rocha, 2021-05-14 16:06 UTC)
---

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
{% unless post.published == false %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.sitemap.lastmod %}
<lastmod>{{ post.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif post.date %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if post.sitemap.changefreq %}
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if post.sitemap.priority %}
<priority>{{ post.sitemap.priority }}</priority>
{% else %}
<priority>0.5</priority>
{% endif %}
</url>
{% endunless %}
{% endfor %}
{% for page in site.pages %}
{% unless page.sitemap.exclude == "yes" or page.name == "feed.xml" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
{% if page.sitemap.lastmod %}
<lastmod>{{ page.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if page.sitemap.changefreq %}
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if page.sitemap.priority %}
<priority>{{ page.sitemap.priority }}</priority>
{% else %}
<priority>0.3</priority>
{% endif %}
</url>
{% endunless %}
{% endfor %}
</urlset>

0 comments on commit 1ecbba1

Please sign in to comment.