Skip to content

Commit

Permalink
Added initial files
Browse files Browse the repository at this point in the history
  • Loading branch information
hugojunior committed Apr 19, 2024
0 parents commit 7b4cbc2
Show file tree
Hide file tree
Showing 64 changed files with 6,408 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_site
.sass-cache
.jekyll-metadata
*.DS_Store
Gemfile.lock
12 changes: 12 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: page
title: Página não encontrada
image: banner-404.jpg
permalink: /404.html
---

<div class="page-box">
<h2>404</h2>
<p>A página solicitada não pôde ser encontrada.</p>
<p class="back-arrow"><i class="ion ion-md-arrow-back"></i> <a href="{{site.baseurl}}/">Voltar para a Página inicial</a></p>
</div>
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hugojunior.com
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'
gem "bundler"
gem "jekyll"
gem "jekyll-paginate"
gem 'jekyll-tagging'
gem "jekyll-sitemap"
36 changes: 36 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
baseurl: ""
url: "https://hugojunior.com"
timezone: America/Fortaleza


# Build settings
markdown: kramdown
permalink: pretty
plugins:
- jekyll-paginate
- jekyll-sitemap
- jekyll/tagging

paginate: 5
paginate_path: "/page/:num"


# Pages Path
defaults:
- scope:
path: '_pages'
values:
permalink: /:basename:output_ext

include:
- _pages


# Tags
tag_page_dir: tag
tag_page_layout: tag_page
tag_permalink_style: pretty

sass:
sass_dir: _sass
style: compressed
33 changes: 33 additions & 0 deletions _data/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#-------------------------------
# General Site Settings
title: Hugo Júnior
logo: logo.png
description: Um entusiasta de tecnologia, estudante, desenvolvedor e gamer, estou sempre explorando esse mundo de bits.


#-------------------------------
# Author Settings
author:
name: Hugo Júnior
image: banner-home.jpg
say-hello: Olá! Sou <strong><a>Hugo Júnior</a></strong>,
bio: Um entusiasta de <strong>tecnologia</strong>, estudante, desenvolvedor e gamer, estou sempre explorando esse mundo de bits. Este é o espaço onde compartilho o que me inspira.


#-------------------------------
# Contact links
github: https://github.com/hugojunior
linkedin: https://linkedin.com/in/hugojunior
twitter: https://twitter.com/hugojuniior
instagram: https://instagram.com/hugojunior
email: contato@hugojunior.com


#-------------------------------
# Comment Section (Disqus)
disqus-identifier: hugojuniior


#-------------------------------
# Google Analytics
google-analytics: G-WMBHW3QS2C
47 changes: 47 additions & 0 deletions _includes/article-content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% assign without-image = nil %}
<!-- begin article -->
<div class="article">
<div class="container">

<div class="article__wrapper">

{% if post.image %}
<a href="{{post.url | prepend: site.baseurl}}" class="article__image" style="background-image: url({{site.baseurl}}/images/{{post.image}})">
</a>
{% else %}
{% assign without-image = 'article-without-image' %}
{% endif %}

<div class="article__content {{ without-image }}">
<div class="article-tags">
{% if post.tags.size >= 1 %}
<div class="article-tags__box">
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tag/{{ tag | downcase | replace: " ", "-" }}" class="article__tag">{{ tag }}</a>
{% endfor %}
</div>
{% else %}
{% endif %}
</div>

<h2 class="article__title">
<a href="{{ post.url | prepend: site.baseurl }}">{{post.title}}</a>
</h2>

<p class="article__excerpt">{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | truncate: 185 }}{% endif %}</p>

<div class="article__footer">
<div class="article__meta">
<span class="article__date"><time datetime="{{ post.date | date_to_xmlschema }}">{% assign date_format = site.minima.date_format | default: "%d/%m/%Y" %}{{ post.date | date: date_format }}</time></span>
</div>

<a href="{{post.url | prepend: site.baseurl}}" class="read-more">Continue lendo <i class="ion ion-ios-arrow-forward"></i></a>
</div>

</div>

</div>

</div>
</div>
<!-- end article -->
23 changes: 23 additions & 0 deletions _includes/contact-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div class="contact">
<ul class="contact__list list-reset">
{% if site.data.settings.github %}
<li><a href="{{ site.data.settings.github }}" target="_blank"><i class="ion ion-logo-github"></i></a></li>
{% else %} {% endif %}

{% if site.data.settings.linkedin %}
<li><a href="{{ site.data.settings.linkedin }}" target="_blank"><i class="ion ion-logo-linkedin"></i></a></li>
{% else %} {% endif %}

{% if site.data.settings.twitter %}
<li><a href="{{ site.data.settings.twitter }}" target="_blank"><i class="ion ion-logo-twitter"></i></a></li>
{% else %} {% endif %}

{% if site.data.settings.instagram %}
<li><a href="{{ site.data.settings.instagram }}" target="_blank"><i class="ion ion-logo-instagram"></i></a></li>
{% else %} {% endif %}

{% if site.data.settings.email %}
<li><a href="mailto:{{ site.data.settings.email }}"><i class="ion ion-md-mail"></i></a></li>
{% else %} {% endif %}
</ul>
</div>
16 changes: 16 additions & 0 deletions _includes/disqus-comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- begin comments -->
<div class="comments">
<div id="disqus_thread"></div>
<script>
(function () {
var d = document, s = d.createElement('script');
s.src = '//{{ site.data.settings.disqus-identifier }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript>
</div>
<!-- end comments -->
10 changes: 10 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- begin footer -->
<footer class="footer">
<div class="container">

{% include contact-link.html %}

<div class="copyright">Copyright &copy; {{site.time | date: '%Y'}} <a href="/"><strong>{{ site.data.settings.title }}</strong></a> — Todos os direitos reservados.</div>
</div>
</footer>
<!-- end footer -->
9 changes: 9 additions & 0 deletions _includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.data.settings.google-analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ site.data.settings.google-analytics }}');
</script>
23 changes: 23 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{% if page.title %}{{ page.title }}{% else %}{{ site.data.settings.title }}{% endif %}</title>
<meta name='description' content='{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.data.settings.description }}{% endif %}'>

<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">

<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<!-- Ionicons -->
<link href="https://unpkg.com/ionicons@4.2.2/dist/css/ionicons.min.css" rel="stylesheet">

<style>
{% capture include_to_scssify %}
{% include main.scss %}
{% endcapture %}
{{ include_to_scssify | scssify }}
</style>
</head>
55 changes: 55 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<div class="container">
<div class="row">
<div class="col col-12">
<!-- begin header -->
<header class="header">

<div class="logo">
<a class="logo__link" href="{{site.baseurl}}/">
{%if site.data.settings.logo %}
<img class="logo__image" src="{{ site.baseurl }}/images/{{ site.data.settings.logo }}" alt="{{ site.data.settings.title }}">
{% else %}
{{ site.data.settings.title }}
{% endif %}
</a>
</div>

<nav class="main-nav">

<div class="main-nav__box">
<div class="nav-icon__close">
<i class="ion ion-ios-close-circle-outline"></i>
</div>

<div class="nav__title">Menu</div>

<ul class="nav__list list-reset">
<li class="nav__item">
<a href="{{site.baseurl}}/" class="nav__link">Início</a>
</li>
{% assign sorted_pages = site.pages | sort: 'order' %}
{% for page in sorted_pages %}
{% unless page.name == 'tags.html' or page.name == '404.html' %}
{% if page.title %}
<li class="nav__item">
<a href="{{ page.url | prepend: site.baseurl }}" class="nav__link">{{ page.title }}</a>
</li>
{% endif %}
{% endunless %}
{% endfor %}
</ul>

</div>
</nav>

<div class="nav-buttons">
<i class="nav__icon nav__icon-menu ion ion-md-menu" aria-label="Menu Icon"></i>
<i class="nav__icon nav__icon-search ion ion-md-search" aria-label="Search Icon"></i>
</div>

<div class="header__overlay"></div>
</header>
<!-- end header -->
</div>
</div>
</div>
23 changes: 23 additions & 0 deletions _includes/hero.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- begin c-hero -->
<div class="hero">
<div class="container">
<div class="row">
<div class="col col-6 col-t-12 last-item">
<div class="hero__content">
<h1 class="hero__title">{{ site.data.settings.author.say-hello }}</h1>
<p class="hero__subtitle">{{ site.data.settings.author.bio }}</p>
<div class="hero__social">
<span class="hero__social-title">Minhas redes: </span>
{% include contact-link.html %}
</div>
</div>
</div>
<div class="col col-6 col-t-12">
<div class="hero__image">
<img src="{{site.baseurl}}/images/{{ site.data.settings.author.image }}" alt="">
</div>
</div>
</div>
</div>
</div>
<!-- end hero -->
16 changes: 16 additions & 0 deletions _includes/javascripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script src="{{ site.baseurl }}/js/vendors/jquery-3.3.1.min.js"></script>
<script src="{{ site.baseurl }}/js/vendors/simple-jekyll-search.min.js"></script>
<script>
SimpleJekyllSearch({
searchInput: document.getElementById("js-search-input"),
resultsContainer: document.getElementById("js-results-container"),
json: "{{site.baseurl}}/search.json",
searchResultTemplate: '<li class="search-results__item"><a class="search-results__link" href="{url}">{title}</a><br> <span class="search-results__date">{date}</span></li>',
noResultsText: '<li class="no-results">No results found</li>'
});
</script>
<script src="{{ site.baseurl }}/js/vendors/transition.js"></script>
<script src="{{ site.baseurl }}/js/vendors/zoom.min.js"></script>
<script src="{{ site.baseurl }}/js/vendors/instafeed.min.js"></script>
<script src="{{ site.baseurl }}/js/vendors/jquery.fitvids.js"></script>
<script src="{{ site.baseurl }}/js/common.js"></script>
Loading

0 comments on commit 7b4cbc2

Please sign in to comment.