-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #547 from lappis-unb/tais-page
[WIP] Muda o layout da pagina da Tais
- Loading branch information
Showing
45 changed files
with
1,981 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
layout: page | ||
title: 404 Error | ||
tagline: Ah snap! We could not find what you are looking for! | ||
permalink: /404.html | ||
--- | ||
|
||
Try got get back to the Home Page and start over! | ||
|
||
[Go to the Home Page]({{ site.url }}{{ site.baseurl }}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<header class="site-header" role="banner"> | ||
|
||
<div class="wrapper"> | ||
{% assign default_paths = site.pages | map: "path" | sort: "title" %} | ||
{% assign page_paths = site.header_pages | default: default_paths | sort: "site-title" %} | ||
|
||
{% if page.layout != 'home' %} | ||
<img class="img-icon" href="/tais/assets/Tdetais.svg" > | ||
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a> | ||
{% endif %} | ||
|
||
<nav class="site-nav"> | ||
<div class="dropdown"> | ||
<button class="dropbtn">Documentação</button> | ||
<div class="dropdown-content"> | ||
{% for path in page_paths %} | ||
{% assign my_page = site.pages | where: "path", path | first %} | ||
{% if my_page.title %} | ||
{% if my_page.title contains "404" %} | ||
{% else %} | ||
{%if my_page.url contains "/documentacao" %} | ||
<a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="dropdown"> | ||
<button class="dropbtn">Tutoriais</button> | ||
<div class="dropdown-content"> | ||
{% for path in page_paths %} | ||
{% assign my_page = site.pages | where: "path", path | first %} | ||
{% if my_page.title %} | ||
{% if my_page.title contains "404" %} | ||
{% else %} | ||
{%if my_page.url contains "/tutoriais" and my_page.title != "Tutoriais" %} | ||
<a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="dropdown"> | ||
<button class="dropbtn">Comunidade</button> | ||
<div class="dropdown-content"> | ||
{% for path in page_paths %} | ||
{% assign my_page = site.pages | where: "path", path | first %} | ||
{% if my_page.title %} | ||
{% if my_page.title contains "404" %} | ||
{% else %} | ||
{%if my_page.url contains "/comunidade" %} | ||
<a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
<a href="http://lappis.rocks" class="dropbtn">Lappis</a> | ||
|
||
</nav> | ||
|
||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!-- Update your html tag to include the itemscope and itemtype attributes. --> | ||
<html itemscope itemtype="http://schema.org/Article"> | ||
|
||
{% if page.title %} | ||
{% assign page_title = page.title | escape %} | ||
{% else %} | ||
{% assign page_title = site.title | escape %} | ||
{% endif %} | ||
|
||
|
||
{% if page.author.name %} | ||
{% assign page_author = page.author.name | default: nil | escape %} | ||
{% assign twitter_creator = page.twitter.username | default: site.twitter.site | default: nil | escape %} | ||
{% else %} | ||
{% assign page_author = site.author.name | default: nil | escape %} | ||
{% assign twitter_creator = site.twitter.username | default: nil | escape %} | ||
{% endif %} | ||
|
||
{% assign page_description = page.excerpt | default: page.tagline | default: site.description | strip_html | normalize_whitespace | truncate: 300 | escape %} | ||
|
||
{%if page.image %} | ||
{% assign page_image = site.url | append: site.baseurl | append: page.image %} | ||
{%else if site.image %} | ||
{% assign page_image = site.url | append: site.baseurl | append: site.image %} | ||
{%endif %} | ||
|
||
{% assign canonical_url = page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url %} | ||
|
||
<!-- Place this data between the <head> tags of your website --> | ||
{%if page_author %} | ||
<meta name="author" content="{{ page_author }}" /> | ||
{%endif %} | ||
<meta name="description" content="{{ page_description }}" /> | ||
{%if page.tags.size > 0 %} | ||
<meta name="keywords" itemprop="tags" content="{{ page.tags | join: ', ' | escape }}"/> | ||
{%endif %} | ||
{%if page.keywords %} | ||
<meta name="keywords" itemprop="keywords" content="{{ page.keywords | escape }}" /> | ||
{%endif %} | ||
{%if page.categories.size > 0 %} | ||
<meta name="keywords" itemprop="categories" content="{{ page.categories | join: ', ' | escape }}" /> | ||
{%endif %} | ||
{%if page.category %} | ||
<meta name="keywords" itemprop="category" content="{{ category | escape }}" /> | ||
{%endif %} | ||
|
||
<meta itemprop="name" content="{{ page_title }}" /> | ||
<meta itemprop="description" content="{{ page_description }}" /> | ||
{%if page_image %} | ||
<meta itemprop="image" content="{{ page_image }}" /> | ||
{%endif %} | ||
|
||
<!-- Twitter Card data --> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
|
||
{%if site.twitter.site %} | ||
<meta name="twitter:site" content="@{{ site.twitter.site }}" /> | ||
{%endif %} | ||
|
||
<meta name="twitter:title" content="{{ page_title }}" /> | ||
<meta name="twitter:description" content="{{ page_description }}" /> | ||
|
||
{%if twitter_creator %} | ||
<meta name="twitter:creator" content="@{{ twitter_creator }}" /> | ||
{%endif %} | ||
|
||
<!-- Twitter summary card with large image must be at least 280x150px --> | ||
{%if page_image %} | ||
<meta name="twitter:image:src" content="{{ page_image }}" /> | ||
<meta name="twitter:image" content="{{ page_image }}" /> | ||
{%endif %} | ||
<meta name="twitter:url" content="{{ canonical_url }}" /> | ||
|
||
<!-- Open Graph data --> | ||
<meta property="og:title" content="{{ page_title }}" /> | ||
<meta property="og:type" content="article" /> | ||
<meta property="og:url" content="{{ canonical_url }}" /> | ||
{%if page_image %} | ||
<meta property="og:image" content="{{ page_image }}" /> | ||
{%endif %} | ||
<meta property="og:description" content="{{ page_description }}" /> | ||
<meta property="og:site_name" content="{{ site.title }}" /> | ||
|
||
{% if page-lang == "en" %} | ||
{% assign page-lang-country = "en_US" %} | ||
{% elsif page-lang == "it" %} | ||
{% assign page-lang-country = "it_IT" %} | ||
{% endif %} | ||
<meta property="og:locale" content="{{ page-lang-country }}" /> | ||
|
||
{%if page.date %} | ||
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" /> | ||
{%endif %} | ||
{%if page.modified_date %} | ||
<meta property="og:updated_time" content="{{ page.modified_date | date_to_xmlschema }}" /> | ||
<meta property="article:modified_time" content="{{ page.modified_date | date_to_xmlschema }}" /> | ||
{%endif %} | ||
|
||
{%if page.tags %} | ||
{% for tag in page.tags %} | ||
<meta property="article:tag" content="{{ tag | escape }}" /> | ||
{% endfor %} | ||
{%endif %} | ||
|
||
{%if page.keywords %} | ||
{% assign keywordsList = page.keywords | split:', ' %} | ||
{% for keyword in keywordsList %} | ||
<meta property="article:tag" content="{{ keyword | escape }}" /> | ||
{% endfor %} | ||
{%endif %} | ||
|
||
{%if page.categories %} | ||
{% for category in page.categories %} | ||
<meta property="article:tag" content="{{ category | escape }}" /> | ||
{% endfor %} | ||
{%endif %} | ||
|
||
{%if page.category %} | ||
<meta property="article:tag" content="{{ category | escape }}" /> | ||
{%endif %} |
Oops, something went wrong.