-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
7,349 additions
and
321 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/public | ||
/resources/_gen | ||
.hugo_build.lock | ||
resources/* | ||
node_modules/* | ||
public/* |
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,24 @@ | ||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest | ||
|
||
default: | ||
before_script: | ||
- apk add --update --no-cache git go nodejs npm | ||
- hugo mod tidy | ||
- hugo mod npm pack | ||
- npm install | ||
|
||
test: | ||
script: | ||
- hugo | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH | ||
|
||
pages: | ||
script: | ||
- hugo | ||
artifacts: | ||
paths: | ||
- public | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH | ||
|
Empty file.
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,48 @@ | ||
# tiago.carreira.pw | ||
|
||
This is the repo building the website at https://tiago.carreira.pw | ||
|
||
Built with [Hugo](https://gohugo.io), with [Toha theme](https://github.com/hugo-toha/toha) | ||
|
||
|
||
## Requirements | ||
|
||
In order to run the theme locally, you must have the following tools installed. | ||
|
||
- Hugo version v0.118.x (extended) or later. | ||
- Go language version v1.18.x or later. | ||
- Node version v18.x and npm version 8.x or later. | ||
|
||
Make sure you have the required tools installed to the proper version using the following commands. | ||
``` | ||
# Check Hugo version | ||
➜ hugo version | ||
hugo v0.118.2+extended linux/amd64 BuildDate=unknown | ||
# Check Go version | ||
➜ go version | ||
go version go1.19.4 linux/amd64 | ||
# Check Node version | ||
➜ node -v | ||
v18.12.1 | ||
# Check NPM version | ||
➜ npm -v | ||
8.19.2 | ||
``` | ||
|
||
|
||
## Run locally | ||
|
||
``` | ||
# a. Load Hugo modules | ||
hugo mod tidy | ||
# b. Install node modules | ||
hugo mod npm pack | ||
npm install | ||
# c. Run the site | ||
hugo server -w | ||
``` |
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,6 @@ | ||
--- | ||
title: "{{ replace .Name "-" " " | title }}" | ||
date: {{ .Date }} | ||
draft: true | ||
--- | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"*": [ | ||
"*", | ||
"../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/v4@v4.5.0/assets/*" | ||
] | ||
} | ||
} | ||
} |
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,12 @@ | ||
import 'popper.js' | ||
import 'bootstrap' | ||
import '@fortawesome/fontawesome-free/js/all' | ||
import feather from 'feather-icons' | ||
|
||
import './core' | ||
import './features' | ||
import './sections' | ||
import './pages' | ||
import './custom' | ||
|
||
feather.replace(); |
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,14 @@ | ||
// trying to avoid spam | ||
document.addEventListener('DOMContentLoaded', function() { | ||
maildivs = document.getElementsByClassName("shadowed-mail") | ||
for (let maildiv of maildivs) { | ||
direction = maildiv.getAttribute("direction") | ||
domain = maildiv.getAttribute("domain") | ||
subject = maildiv.getAttribute("subject") | ||
toreplace = maildiv.getAttribute("toreplace") | ||
fullm = direction+"@"+domain | ||
|
||
maildiv.href = "mailto:"+fullm+"?subject="+subject | ||
maildiv.innerHTML = maildiv.innerHTML.replaceAll(toreplace, fullm) | ||
}; | ||
}); |
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 @@ | ||
import './email-shadower' |
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,46 @@ | ||
// make the tyny background image look just unfocused | ||
#homePageBackgroundImageDivStyled { | ||
filter: blur(0.3em); | ||
-webkit-filter: blur(0.3em); | ||
-moz-filter: blur(0.3em); | ||
-o-filter: blur(0.3em); | ||
-ms-filter: blur(0.3em); | ||
} | ||
|
||
// keep img ratio on technical skills | ||
.card-img-xs { | ||
object-fit: contain; | ||
width: auto; | ||
} | ||
|
||
// Contacts section | ||
.contacts { | ||
list-style: none; | ||
padding-inline-start: 0px; | ||
} | ||
|
||
html[data-theme='dark'] .contacts a{ | ||
color: get-dark-color('heading-color'); | ||
} | ||
.contacts a { | ||
color: get-light-color('heading-color'); | ||
} | ||
|
||
.contacts a i, | ||
.contacts .svg-inline--fa { | ||
font-size: 1.5rem; | ||
padding-right: 1rem; | ||
padding-top: .5rem; | ||
} | ||
|
||
|
||
// make transparent backgroud work with my background image | ||
html[data-theme='dark'] .top-navbar.transparent-navbar .navbar-brand, | ||
html[data-theme='dark'] .top-navbar.transparent-navbar .feather-menu, | ||
html[data-theme='dark'] .top-navbar.transparent-navbar .navbar-nav a, | ||
.top-navbar.transparent-navbar .navbar-brand, | ||
.top-navbar.transparent-navbar .feather-menu, | ||
.top-navbar.transparent-navbar .navbar-nav a { | ||
color: get-light-color('heading-color'); | ||
stroke: get-light-color('heading-color'); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Notes | ||
private: true | ||
--- |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
private: true | ||
--- | ||
--- |
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,4 @@ | ||
--- | ||
title: Search | ||
private: true | ||
--- |
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
Oops, something went wrong.