Skip to content

Commit

Permalink
Merge pull request #547 from lappis-unb/tais-page
Browse files Browse the repository at this point in the history
[WIP] Muda o layout da pagina da Tais
  • Loading branch information
MatheusMiranda authored Jul 17, 2019
2 parents 9d326d1 + a6a4cb0 commit 93b1022
Show file tree
Hide file tree
Showing 45 changed files with 1,981 additions and 729 deletions.
10 changes: 10 additions & 0 deletions docs/404.md
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 }})
2 changes: 1 addition & 1 deletion docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source "https://rubygems.org"
gem "jekyll", "~> 3.7.4"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
gem "jekyll-theme-cayman-blog"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
Expand Down
8 changes: 2 additions & 6 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GEM
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.6.0)
jekyll-theme-cayman-blog (0.0.6)
jekyll (~> 3.3)
jekyll-watch (2.2.1)
listen (~> 3.0)
Expand All @@ -42,10 +42,6 @@ GEM
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
minima (2.5.0)
jekyll (~> 3.5)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
Expand All @@ -67,7 +63,7 @@ PLATFORMS
DEPENDENCIES
jekyll (~> 3.7.4)
jekyll-feed (~> 0.6)
minima (~> 2.0)
jekyll-theme-cayman-blog
tzinfo-data

BUNDLED WITH
Expand Down
6 changes: 2 additions & 4 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Tais
title: TAIS
email: tais
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "/tais" # the subpath of your site, e.g. /blog
url: "127.0.0.1" # the base hostname & protocol for your site, e.g. http://example.com
github_username: lappis-unb

# Build settings
markdown: kramdown
theme: minima
theme: "jekyll-theme-cayman-blog"
plugins:
- jekyll-feed

Expand Down
36 changes: 0 additions & 36 deletions docs/_includes/footer.html

This file was deleted.

18 changes: 0 additions & 18 deletions docs/_includes/navbar.html

This file was deleted.

67 changes: 67 additions & 0 deletions docs/_includes/site-header.html
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>
120 changes: 120 additions & 0 deletions docs/_includes/social-metatags.html
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 %}
Loading

0 comments on commit 93b1022

Please sign in to comment.