Compare commits
No commits in common. "93203d36805475cd8ea62426fd128247ea6b2866" and "339951a41a8749d2ee0bbc567da1b86a3ff1592d" have entirely different histories.
93203d3680
...
339951a41a
51
.github/workflows/deploy.yml
vendored
@ -1,51 +0,0 @@
|
|||||||
name: Deploy to Github Pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [master]
|
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
||||||
# added or changed files to the repository.
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Cache Hugo resources
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: cache-hugo-resources
|
|
||||||
with:
|
|
||||||
path: resources
|
|
||||||
key: ${{ env.cache-name }}
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: "^1.17.0"
|
|
||||||
- run: go version
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: "latest"
|
|
||||||
extended: true
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: hugo --minify --gc
|
|
||||||
|
|
||||||
- name: Deploy 🚀
|
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
|
||||||
with:
|
|
||||||
branch: gh-pages
|
|
||||||
folder: public
|
|
||||||
clean: true
|
|
||||||
single-commit: true
|
|
78
.github/workflows/hugo.yaml
vendored
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
# Sample workflow for building and deploying a Hugo site to GitHub Pages
|
||||||
|
name: Deploy Hugo site to Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Runs on pushes targeting the default branch
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- hugo
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
# Default to bash
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Build job
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HUGO_VERSION: 0.120.3
|
||||||
|
steps:
|
||||||
|
- name: Install Hugo CLI
|
||||||
|
run: |
|
||||||
|
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||||
|
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||||
|
- name: Install Dart Sass
|
||||||
|
run: sudo snap install dart-sass
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup Pages
|
||||||
|
id: pages
|
||||||
|
uses: actions/configure-pages@v3
|
||||||
|
- name: Install Node.js dependencies
|
||||||
|
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
||||||
|
- name: Build with Hugo
|
||||||
|
env:
|
||||||
|
# For maximum backward compatibility with Hugo modules
|
||||||
|
HUGO_ENVIRONMENT: production
|
||||||
|
HUGO_ENV: production
|
||||||
|
run: |
|
||||||
|
hugo \
|
||||||
|
--gc \
|
||||||
|
--minify \
|
||||||
|
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v2
|
||||||
|
with:
|
||||||
|
path: ./public
|
||||||
|
|
||||||
|
# Deployment job
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v2
|
38
.github/workflows/update-theme.yml
vendored
@ -1,38 +0,0 @@
|
|||||||
name: Update theme
|
|
||||||
|
|
||||||
# Controls when the workflow will run
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
# Update theme automatically everyday at 00:00 UTC
|
|
||||||
- cron: "0 0 * * *"
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-theme:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
||||||
# added or changed files to the repository.
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: 0.123.8
|
|
||||||
extended: true
|
|
||||||
|
|
||||||
- name: Update theme
|
|
||||||
run: hugo mod get -u github.com/CaiJimmy/hugo-theme-stack/v3
|
|
||||||
|
|
||||||
- name: Tidy go.mod, go.sum
|
|
||||||
run: hugo mod tidy
|
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
|
||||||
with:
|
|
||||||
commit_message: "CI: Update theme"
|
|
21
LICENSE
@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2021 Jimmy Cai
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
69
README.md
@ -1,69 +0,0 @@
|
|||||||
<img align="right" width="150" alt="logo" src="https://user-images.githubusercontent.com/5889006/190859553-5b229b4f-c476-4cbd-928f-890f5265ca4c.png">
|
|
||||||
|
|
||||||
# Hugo Theme Stack Starter Template
|
|
||||||
|
|
||||||
This is a quick start template for [Hugo theme Stack](https://github.com/CaiJimmy/hugo-theme-stack). It uses [Hugo modules](https://gohugo.io/hugo-modules/) feature to load the theme.
|
|
||||||
|
|
||||||
It comes with a basic theme structure and configuration. GitHub action has been set up to deploy the theme to a public GitHub page automatically. Also, there's a cron job to update the theme automatically everyday.
|
|
||||||
|
|
||||||
## Get started
|
|
||||||
|
|
||||||
1. Click *Use this template*, and create your repository as `<username>.github.io` on GitHub.
|
|
||||||

|
|
||||||
|
|
||||||
2. Once the repository is created, create a GitHub codespace associated with it.
|
|
||||||

|
|
||||||
|
|
||||||
3. And voila! You're ready to go. The codespace has been configured with the latest version of Hugo extended, just run `hugo server` in the terminal and see your new site in action.
|
|
||||||
|
|
||||||
4. Check `config` folder for the configuration files. You can edit them to suit your needs. Make sure to update the `baseurl` property in `config/_default/config.toml` to your site's URL.
|
|
||||||
|
|
||||||
5. Open Settings -> Pages. Change the build branch from `master` to `gh-pages`.
|
|
||||||

|
|
||||||
|
|
||||||
6. Once you're done editing the site, just commit it and push it. GitHub action will deploy the site automatically to GitHub page asociated with the repository.
|
|
||||||

|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
In case you don't want to use GitHub codespace, you can also run this template in your local machine. **You need to install Git, Go and Hugo extended locally.**
|
|
||||||
|
|
||||||
## Update theme manually
|
|
||||||
|
|
||||||
Run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hugo mod get -u github.com/CaiJimmy/hugo-theme-stack/v3
|
|
||||||
hugo mod tidy
|
|
||||||
```
|
|
||||||
|
|
||||||
> This starter template has been configured with `v3` version of theme. Due to the limitation of Go module, once the `v4` or up version of theme is released, you need to update the theme manually. (Modifying `config/module.toml` file)
|
|
||||||
|
|
||||||
## Deploy to another static page hostings
|
|
||||||
|
|
||||||
If you want to build this site using another static page hosting, you need to make sure they have Go installed in the machine.
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Vercel</summary>
|
|
||||||
|
|
||||||
You need to overwrite build command to install manually Go:
|
|
||||||
|
|
||||||
```
|
|
||||||
amazon-linux-extras install golang1.11 && hugo --gc --minify
|
|
||||||
```
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
If you are using Node.js 20, you need to overwrite the install command to install manually Go:
|
|
||||||
|
|
||||||
```
|
|
||||||
dnf install -y golang
|
|
||||||
```
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
Make sure also to specify Hugo version in the environment variable `HUGO_VERSION` (Use the latest version of Hugo extended):
|
|
||||||
|
|
||||||

|
|
||||||
</details>
|
|
6
archetypes/default.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
date: '{{ .Date }}'
|
||||||
|
draft: true
|
||||||
|
title: '{{ replace .File.ContentBaseName `-` ` ` | title }}'
|
||||||
|
---
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 640 640" width="32" height="32"><path d="m395.9 484.2-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8 17.2 8.3 27.1 13 27.1 13l-.1-109.2 16.7-.1.1 117.1s57.4 24.2 83.1 40.1c3.7 2.3 10.2 6.8 12.9 14.4 2.1 6.1 2 13.1-1 19.3l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12" style="fill:#fff"/><path d="M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9 0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6M125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1m300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1" style="fill:#609926"/><path d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8s2 16.3 9.1 20c7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3s17.4 1.7 22.5-5.3c5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8z" style="fill:#609926"/></svg>
|
|
Before Width: | Height: | Size: 2.1 KiB |
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
|
||||||
aria-label="Google Scholar" role="img"
|
|
||||||
viewBox="0 0 512 512"><rect
|
|
||||||
width="512" height="512"
|
|
||||||
rx="15%"
|
|
||||||
fill="#4285f4"/><path fill="#ffffff" d="M213 111l-107 94h69c5 45 41 64 78 67-7 18-4 27 7 39-43 1-103 26-103 67 4 45 63 54 92 54 38 1 81-19 90-54 4-35-10-54-31-71-23-18-28-28-21-40 15-17 35-27 39-51 2-17-2-28-6-43l45-38-1 16c-3 2-5 6-5 9v103c2 13 22 11 23 0V160c0-3-2-7-5-8v-25l16-16zm58 141c-61 10-87-87-38-99 56-11 83 86 38 99zm-5 73c60 13 61 63 10 78-44 9-82-4-81-30 0-25 35-48 71-48z"/></svg>
|
|
Before Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 256 KiB |
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"*": [
|
|
||||||
"../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!cai!jimmy/hugo-theme-stack/v3@v3.30.0/assets/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
/*
|
|
||||||
You can add your own custom styles here.
|
|
||||||
*/
|
|
164
config.toml
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
baseurl = ""
|
||||||
|
languageCode = "en-us"
|
||||||
|
title = "Balkian's site"
|
||||||
|
theme = "balkian"
|
||||||
|
preserveTaxonomyNames = true
|
||||||
|
disqusShortname = "balkian"
|
||||||
|
googleAnalytics = ""
|
||||||
|
Paginate = 5
|
||||||
|
pygmentsCodeFences = true
|
||||||
|
pygmentsOptions = "linenos=table"
|
||||||
|
summaryLength = 50
|
||||||
|
relativeURLs = true
|
||||||
|
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
|
||||||
|
|
||||||
|
[outputs]
|
||||||
|
home = ["HTML", "RSS", "JSON"]
|
||||||
|
|
||||||
|
[taxonomies]
|
||||||
|
category = "categories"
|
||||||
|
tag = "tags"
|
||||||
|
post = "posts"
|
||||||
|
|
||||||
|
[params.author]
|
||||||
|
name = "J. Fernando Sánchez"
|
||||||
|
profile = "http://balkian.com"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
# Sets the meta tag description, usually reserved for the main page
|
||||||
|
description = "Balkian's ramblings"
|
||||||
|
# This will appear on the top left of the navigation bar
|
||||||
|
navbarTitle = "Balkian"
|
||||||
|
# Social media buttons that appear on the sidebar
|
||||||
|
socialAppearAtTop = true
|
||||||
|
socialAppearAtBottom = true
|
||||||
|
# set this to the section name if section is not post
|
||||||
|
viewMorePostLink = "/post/"
|
||||||
|
|
||||||
|
subtitle = "Build a beautiful and simple website in minutes"
|
||||||
|
logo = "img/me.png"
|
||||||
|
favicon = "img/favicon.ico"
|
||||||
|
dateFormat = "January 2, 2006"
|
||||||
|
commit = false
|
||||||
|
rss = true
|
||||||
|
comments = true
|
||||||
|
|
||||||
|
# Optional Params
|
||||||
|
categoriesByCount = true
|
||||||
|
includeReadingTime = true
|
||||||
|
# The set of favicons used are based on the write-up from this link:
|
||||||
|
# https://github.com/audreyr/favicon-cheat-sheet
|
||||||
|
# Please see the favicon partial template for more information
|
||||||
|
loadFavicon = false
|
||||||
|
faviconVersion = ""
|
||||||
|
|
||||||
|
# Load custom CSS or JavaScript files. This replaces the deprecated params
|
||||||
|
# minifiedFilesCSS and minifiedFilesJS. The variable is an array so that you
|
||||||
|
# can load multiple files if necessary. You can also load the standard theme
|
||||||
|
# files by adding the value, "default".
|
||||||
|
# customCSS = ["default", "/path/to/file"]
|
||||||
|
# customJS = ["default", "/path/to/file"]
|
||||||
|
|
||||||
|
# Loading min files for exampleSite
|
||||||
|
customCSS = ["/css/main.min.css"]
|
||||||
|
customJS = ["/js/main.min.js"]
|
||||||
|
|
||||||
|
# parms.intro will appear on the sidebar
|
||||||
|
# This is optional, but it's suggested to use
|
||||||
|
[params.intro]
|
||||||
|
header = "Balkian"
|
||||||
|
|
||||||
|
|
||||||
|
paragraph = "J. Fernando Sánchez"
|
||||||
|
|
||||||
|
about = "Fernando Sánchez's blog"
|
||||||
|
|
||||||
|
# This will also appear on the sidebar.
|
||||||
|
# A width of less than 100px is recommended
|
||||||
|
# This is optional
|
||||||
|
[params.intro.pic]
|
||||||
|
src = "/img/logo.png"
|
||||||
|
# modify your picture in the shape of a circle or
|
||||||
|
# future imperfect's hexagonal shape
|
||||||
|
circle = true
|
||||||
|
imperfect = false
|
||||||
|
width = "300px"
|
||||||
|
alt = "Balkian"
|
||||||
|
|
||||||
|
# Adjust the amount of recent posts on the sidebar.
|
||||||
|
# This is optional. The default value 5 will be used
|
||||||
|
[params.postAmount]
|
||||||
|
sidebar = 4
|
||||||
|
|
||||||
|
# # Set up your menu items in the navigation bar
|
||||||
|
# # You can use identifier to prepend a font awesome icon to your text
|
||||||
|
# [[menu.main]]
|
||||||
|
# name = "Blog"
|
||||||
|
# url = "/post"
|
||||||
|
# identifier = "fa fa-newspaper-o"
|
||||||
|
# weight = 1
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Blog"
|
||||||
|
url = "/post/"
|
||||||
|
identifier = "post"
|
||||||
|
weight = 1
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Tags"
|
||||||
|
url = "/tags/"
|
||||||
|
identifier = "tags"
|
||||||
|
weight = 2
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Cheatsheets"
|
||||||
|
identifier = "cheatsheet"
|
||||||
|
url = "/cheatsheet/"
|
||||||
|
weight = 3
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Projects"
|
||||||
|
identifier = "project"
|
||||||
|
url = "/project/"
|
||||||
|
|
||||||
|
|
||||||
|
# Insert your username and the icon will apear on the page as long as
|
||||||
|
# socialAppearAtTop or socialAppearAtBottom is set to true in the params area
|
||||||
|
# The social media icons will appear on the sidebar
|
||||||
|
[social]
|
||||||
|
github = "balkian"
|
||||||
|
bitbucket = "balkian"
|
||||||
|
jsfiddle = ""
|
||||||
|
codepen = ""
|
||||||
|
foursquare = ""
|
||||||
|
dribbble = ""
|
||||||
|
deviantart = ""
|
||||||
|
behance = ""
|
||||||
|
flickr = ""
|
||||||
|
instagram = ""
|
||||||
|
youtube = ""
|
||||||
|
vimeo = ""
|
||||||
|
vine = ""
|
||||||
|
medium = ""
|
||||||
|
wordpress = ""
|
||||||
|
tumblr = ""
|
||||||
|
xing = ""
|
||||||
|
linkedin = ""
|
||||||
|
slideshare = ""
|
||||||
|
stackoverflow = "balkian"
|
||||||
|
reddit = "balkian"
|
||||||
|
pinterest = ""
|
||||||
|
googleplus = ""
|
||||||
|
facebook = ""
|
||||||
|
facebook_admin = ""
|
||||||
|
twitter_domain = ""
|
||||||
|
twitter = "balkian"
|
||||||
|
email = ""
|
||||||
|
|
||||||
|
[markup]
|
||||||
|
[markup.tableOfContents]
|
||||||
|
endLevel = 3
|
||||||
|
startLevel = 1
|
||||||
|
|
||||||
|
[markup.goldmark.renderer]
|
||||||
|
unsafe= true
|
@ -1,6 +0,0 @@
|
|||||||
# Rename this file to languages.toml to enable multilingual support
|
|
||||||
[en]
|
|
||||||
languageName = "English"
|
|
||||||
languagedirection = "ltr"
|
|
||||||
title = "Example Site"
|
|
||||||
weight = 1
|
|
@ -1,18 +0,0 @@
|
|||||||
# Change baseurl before deploy
|
|
||||||
baseurl = "https://balkian.com"
|
|
||||||
languageCode = "en-us"
|
|
||||||
title = "J. Fernando Sánchez"
|
|
||||||
|
|
||||||
# Theme i18n support
|
|
||||||
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk, ar
|
|
||||||
defaultContentLanguage = "en"
|
|
||||||
|
|
||||||
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
|
|
||||||
# This will make .Summary and .WordCount behave correctly for CJK languages.
|
|
||||||
hasCJKLanguage = false
|
|
||||||
|
|
||||||
# Change it to your Disqus shortname before using
|
|
||||||
#disqusShortname = "hugo-theme-stack"
|
|
||||||
|
|
||||||
[pagination]
|
|
||||||
pagerSize = 5
|
|
@ -1,26 +0,0 @@
|
|||||||
# Markdown renderer configuration
|
|
||||||
[goldmark.renderer]
|
|
||||||
unsafe = true
|
|
||||||
|
|
||||||
[goldmark.extensions.passthrough]
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
# LaTeX math support
|
|
||||||
# https://gohugo.io/content-management/mathematics/
|
|
||||||
[goldmark.extensions.passthrough.delimiters]
|
|
||||||
block = [['\[', '\]'], ['$$', '$$']]
|
|
||||||
inline = [['\(', '\)']]
|
|
||||||
|
|
||||||
[tableOfContents]
|
|
||||||
endLevel = 4
|
|
||||||
ordered = true
|
|
||||||
startLevel = 2
|
|
||||||
|
|
||||||
[highlight]
|
|
||||||
noClasses = false
|
|
||||||
codeFences = true
|
|
||||||
guessSyntax = true
|
|
||||||
lineNoStart = 1
|
|
||||||
lineNos = true
|
|
||||||
lineNumbersInTable = true
|
|
||||||
tabWidth = 4
|
|
@ -1,60 +0,0 @@
|
|||||||
# Configure main menu and social menu
|
|
||||||
#[[main]]
|
|
||||||
#identifier = "home"
|
|
||||||
#name = "Home"
|
|
||||||
#url = "/"
|
|
||||||
#[main.params]
|
|
||||||
#icon = "home"
|
|
||||||
#newtab = true
|
|
||||||
|
|
||||||
#[[main]]
|
|
||||||
#name = "Cheatsheets"
|
|
||||||
#identifier = "cheatsheets"
|
|
||||||
#url = "/cheatsheet/"
|
|
||||||
#
|
|
||||||
#[main.params]
|
|
||||||
#icon = "hash"
|
|
||||||
#weight = 3
|
|
||||||
#
|
|
||||||
#[[main]]
|
|
||||||
#name = "Projects"
|
|
||||||
#identifier = "projects"
|
|
||||||
#url = "/projects/"
|
|
||||||
#
|
|
||||||
#[main.params]
|
|
||||||
#icon = "clock"
|
|
||||||
|
|
||||||
[[social]]
|
|
||||||
identifier = "github"
|
|
||||||
name = "GitHub"
|
|
||||||
url = "https://github.com/CaiJimmy/hugo-theme-stack"
|
|
||||||
weight = 1
|
|
||||||
|
|
||||||
[social.params]
|
|
||||||
icon = "brand-github"
|
|
||||||
|
|
||||||
#[[social]]
|
|
||||||
#identifier = "twitter"
|
|
||||||
#name = "Twitter"
|
|
||||||
#url = "https://twitter.com"
|
|
||||||
#
|
|
||||||
#[social.params]
|
|
||||||
#icon = "brand-twitter"
|
|
||||||
|
|
||||||
[[social]]
|
|
||||||
identifier = "gitea"
|
|
||||||
name = "gitea"
|
|
||||||
url = "https://git.sinpapel.es/balkian"
|
|
||||||
weight = 2
|
|
||||||
|
|
||||||
[social.params]
|
|
||||||
icon = "gitea"
|
|
||||||
|
|
||||||
[[social]]
|
|
||||||
identifier = "scholar"
|
|
||||||
name = "Google scholar"
|
|
||||||
url = "https://scholar.google.com/citations?user=JLNusZ8AAAAJ&hl=en"
|
|
||||||
weight = 3
|
|
||||||
|
|
||||||
[social.params]
|
|
||||||
icon = "scholar"
|
|
@ -1,2 +0,0 @@
|
|||||||
[[imports]]
|
|
||||||
path = "github.com/CaiJimmy/hugo-theme-stack/v3"
|
|
@ -1,152 +0,0 @@
|
|||||||
# Pages placed under these sections will be shown on homepage and archive page.
|
|
||||||
mainSections = ["post"]
|
|
||||||
# Output page's full content in RSS.
|
|
||||||
rssFullContent = true
|
|
||||||
favicon = "img/favicon.ico"
|
|
||||||
|
|
||||||
[footer]
|
|
||||||
since = 2012
|
|
||||||
customText = ""
|
|
||||||
|
|
||||||
[dateFormat]
|
|
||||||
published = "02 Jan 2006"
|
|
||||||
lastUpdated = "02 Jan 2006"
|
|
||||||
|
|
||||||
[sidebar]
|
|
||||||
#emoji = "🧠"
|
|
||||||
emoji = "💭"
|
|
||||||
subtitle = "My ramblings and reflections"
|
|
||||||
|
|
||||||
[sidebar.avatar]
|
|
||||||
enabled = true
|
|
||||||
local = true
|
|
||||||
src = "img/me.png"
|
|
||||||
|
|
||||||
[article]
|
|
||||||
headingAnchor = false
|
|
||||||
math = true
|
|
||||||
toc = true
|
|
||||||
readingTime = true
|
|
||||||
|
|
||||||
[article.license]
|
|
||||||
enabled = true
|
|
||||||
default = "Licensed under CC BY-NC-SA 4.0"
|
|
||||||
|
|
||||||
## Widgets
|
|
||||||
[[widgets.homepage]]
|
|
||||||
type = "search"
|
|
||||||
|
|
||||||
[[widgets.homepage]]
|
|
||||||
type = "archives"
|
|
||||||
|
|
||||||
[widgets.homepage.params]
|
|
||||||
limit = 5
|
|
||||||
|
|
||||||
[[widgets.homepage]]
|
|
||||||
type = "categories"
|
|
||||||
|
|
||||||
[widgets.homepage.params]
|
|
||||||
limit = 10
|
|
||||||
|
|
||||||
[[widgets.homepage]]
|
|
||||||
type = "tag-cloud"
|
|
||||||
|
|
||||||
[widgets.homepage.params]
|
|
||||||
limit = 10
|
|
||||||
|
|
||||||
[[widgets.page]]
|
|
||||||
type = "toc"
|
|
||||||
|
|
||||||
[opengraph.twitter]
|
|
||||||
site = ""
|
|
||||||
card = "summary_large_image"
|
|
||||||
|
|
||||||
[defaultImage.opengraph]
|
|
||||||
enabled = false
|
|
||||||
local = false
|
|
||||||
src = ""
|
|
||||||
|
|
||||||
[colorScheme]
|
|
||||||
toggle = true
|
|
||||||
default = "auto"
|
|
||||||
|
|
||||||
[imageProcessing.cover]
|
|
||||||
enabled = true
|
|
||||||
|
|
||||||
[imageProcessing.content]
|
|
||||||
enabled = true
|
|
||||||
|
|
||||||
## Comments
|
|
||||||
[comments]
|
|
||||||
enabled = false
|
|
||||||
provider = "disqus"
|
|
||||||
|
|
||||||
[comments.disqusjs]
|
|
||||||
shortname = ""
|
|
||||||
apiUrl = ""
|
|
||||||
apiKey = ""
|
|
||||||
admin = ""
|
|
||||||
adminLabel = ""
|
|
||||||
|
|
||||||
[comments.utterances]
|
|
||||||
repo = ""
|
|
||||||
issueTerm = "pathname"
|
|
||||||
label = ""
|
|
||||||
|
|
||||||
[comments.remark42]
|
|
||||||
host = ""
|
|
||||||
site = ""
|
|
||||||
locale = ""
|
|
||||||
|
|
||||||
[comments.vssue]
|
|
||||||
platform = ""
|
|
||||||
owner = ""
|
|
||||||
repo = ""
|
|
||||||
clientId = ""
|
|
||||||
clientSecret = ""
|
|
||||||
autoCreateIssue = false
|
|
||||||
|
|
||||||
[comments.waline]
|
|
||||||
serverURL = ""
|
|
||||||
lang = ""
|
|
||||||
visitor = ""
|
|
||||||
avatar = ""
|
|
||||||
emoji = ["https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo"]
|
|
||||||
requiredMeta = ["name", "email", "url"]
|
|
||||||
placeholder = ""
|
|
||||||
|
|
||||||
[comments.waline.locale]
|
|
||||||
admin = "Admin"
|
|
||||||
|
|
||||||
[comments.twikoo]
|
|
||||||
envId = ""
|
|
||||||
region = ""
|
|
||||||
path = ""
|
|
||||||
lang = ""
|
|
||||||
|
|
||||||
[comments.cactus]
|
|
||||||
defaultHomeserverUrl = "https://matrix.cactus.chat:8448"
|
|
||||||
serverName = "cactus.chat"
|
|
||||||
siteName = ""
|
|
||||||
|
|
||||||
[comments.giscus]
|
|
||||||
repo = ""
|
|
||||||
repoID = ""
|
|
||||||
category = ""
|
|
||||||
categoryID = ""
|
|
||||||
mapping = ""
|
|
||||||
lightTheme = ""
|
|
||||||
darkTheme = ""
|
|
||||||
reactionsEnabled = 1
|
|
||||||
emitMetadata = 0
|
|
||||||
|
|
||||||
[comments.gitalk]
|
|
||||||
owner = ""
|
|
||||||
admin = ""
|
|
||||||
repo = ""
|
|
||||||
clientID = ""
|
|
||||||
clientSecret = ""
|
|
||||||
|
|
||||||
[comments.cusdis]
|
|
||||||
host = ""
|
|
||||||
id = ""
|
|
@ -1,3 +0,0 @@
|
|||||||
# Permalinks format of each content section
|
|
||||||
post = "/p/:slug/"
|
|
||||||
page = "/:slug/"
|
|
@ -1,12 +0,0 @@
|
|||||||
# Related contents configuration
|
|
||||||
includeNewer = true
|
|
||||||
threshold = 60
|
|
||||||
toLower = false
|
|
||||||
|
|
||||||
[[indices]]
|
|
||||||
name = "tags"
|
|
||||||
weight = 100
|
|
||||||
|
|
||||||
[[indices]]
|
|
||||||
name = "categories"
|
|
||||||
weight = 200
|
|
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
name: Home
|
|
||||||
weight: 1
|
|
||||||
params:
|
|
||||||
icon: home
|
|
||||||
---
|
|
@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
title: Linux
|
|
||||||
description: Posts related to installing, maintaining and running GNU/Linux
|
|
||||||
|
|
||||||
# Badge style
|
|
||||||
style:
|
|
||||||
background: "#2a9d8f"
|
|
||||||
color: "#fff"
|
|
||||||
---
|
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
title: Programming
|
|
||||||
description: Posts related to programming languages
|
|
||||||
image:
|
|
||||||
|
|
||||||
# Badge style
|
|
||||||
style:
|
|
||||||
background: "#ffd700"
|
|
||||||
color: "#000"
|
|
||||||
---
|
|
@ -10,7 +10,7 @@ tags:
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## Show plain text version
|
# Show plain text version
|
||||||
|
|
||||||
<!--more-->
|
<!--more-->
|
||||||
|
|
@ -1,15 +1,14 @@
|
|||||||
---
|
---
|
||||||
title: Linux
|
title: Linux
|
||||||
author: "Fernando Sánchez"
|
author: "Unknown Author"
|
||||||
description: Tips and tricks for GNU/Linux and Unix
|
description: Tips and tricks for GNU/Linux and Unix
|
||||||
categories:
|
|
||||||
- linux
|
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
- arch
|
- arch
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Black screen and LightDM doesn't unlock
|
# Black screen and LightDM doesn't unlock
|
||||||
|
|
||||||
Add this to your /etc/lightdm/lightdm.conf file:
|
Add this to your /etc/lightdm/lightdm.conf file:
|
||||||
|
|
||||||
@ -19,7 +18,7 @@ logind-check-graphical=true
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
##Edit previous commands
|
# Edit previous commands
|
||||||
|
|
||||||
`fc` is a shell builtin to list and edit previous commands in an editor.
|
`fc` is a shell builtin to list and edit previous commands in an editor.
|
||||||
In addition to editing a single line (which you can also do with `C-x C-e`), it also allows you to edit and run several lines at the same time.
|
In addition to editing a single line (which you can also do with `C-x C-e`), it also allows you to edit and run several lines at the same time.
|
||||||
@ -71,7 +70,7 @@ If you save and exit, all commands are executed as a script, and it will be adde
|
|||||||
|
|
||||||
Source: https://shapeshed.com/unix-fc/
|
Source: https://shapeshed.com/unix-fc/
|
||||||
|
|
||||||
## Prevent logoff from killing tmux sessions
|
# Prevent logoff from killing tmux sessions
|
||||||
|
|
||||||
Lately I've noticed that logging out of i3, intentionally or when i3 fails, would also kill any tmux or emacs sessions.
|
Lately I've noticed that logging out of i3, intentionally or when i3 fails, would also kill any tmux or emacs sessions.
|
||||||
This is extremely annoying.
|
This is extremely annoying.
|
||||||
@ -92,7 +91,7 @@ systemd-run --scope --user tmux
|
|||||||
Source: https://unix.stackexchange.com/questions/490267/prevent-logoff-from-killing-tmux-session
|
Source: https://unix.stackexchange.com/questions/490267/prevent-logoff-from-killing-tmux-session
|
||||||
|
|
||||||
|
|
||||||
## Upload a temporary file
|
# Upload a temporary file
|
||||||
|
|
||||||
Sometimes you just need to copy/paste a file from a server, and copying from the terminal can be a hassle.
|
Sometimes you just need to copy/paste a file from a server, and copying from the terminal can be a hassle.
|
||||||
These two services are command-line "pastebins" just one curl away:
|
These two services are command-line "pastebins" just one curl away:
|
@ -1,16 +1,14 @@
|
|||||||
---
|
---
|
||||||
title: Python
|
title: Python
|
||||||
description: Tips and useful libraries for python developers
|
description: Tips and useful libraries for python developers
|
||||||
categories:
|
|
||||||
- programming
|
|
||||||
tags:
|
tags:
|
||||||
- python
|
- python
|
||||||
- programming
|
- programming
|
||||||
---
|
---
|
||||||
|
|
||||||
## Interesting libraries
|
# Interesting libraries
|
||||||
|
|
||||||
### [TQDM](https://github.com/tqdm/tqdm)
|
## [TQDM](https://github.com/tqdm/tqdm)
|
||||||
|
|
||||||
|
|
||||||
From tqdm's github repository:
|
From tqdm's github repository:
|
@ -5,7 +5,7 @@ tags:
|
|||||||
- rpi
|
- rpi
|
||||||
---
|
---
|
||||||
|
|
||||||
## HDMI flickering
|
# HDMI flickering
|
||||||
|
|
||||||
Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
|
Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Archives"
|
|
||||||
date: 2022-03-06
|
|
||||||
layout: "archives"
|
|
||||||
slug: "archives"
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 2
|
|
||||||
params:
|
|
||||||
icon: archives
|
|
||||||
---
|
|
@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
title: Cheatsheets
|
|
||||||
name: "cheats"
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 4
|
|
||||||
params:
|
|
||||||
icon: infinity
|
|
||||||
---
|
|
@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
title: Links
|
|
||||||
links:
|
|
||||||
- title: GitHub
|
|
||||||
description: My GitHub profile
|
|
||||||
website: https://github.com/balkian
|
|
||||||
image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
|
|
||||||
- title: gitea
|
|
||||||
description: My gitea profile
|
|
||||||
website: https://git.sinpapel.es/balkian
|
|
||||||
image: https://git.sinpapel.es/assets/img/logo.svg
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 4
|
|
||||||
params:
|
|
||||||
icon: link
|
|
||||||
|
|
||||||
comments: false
|
|
||||||
---
|
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Search"
|
|
||||||
slug: "search"
|
|
||||||
layout: "search"
|
|
||||||
outputs:
|
|
||||||
- html
|
|
||||||
- json
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 3
|
|
||||||
params:
|
|
||||||
icon: search
|
|
||||||
---
|
|
35
content/page/todo.md
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
title: To-do
|
||||||
|
menu: main
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Technical
|
||||||
|
- [x] Write a NodeJS App. Maia [See [ISSUES](http://github.com/gsi-upm/maia/issues)]
|
||||||
|
- [x] Write my first Django Application
|
||||||
|
- [ ] Develop a distributed rust application (e.g., libp2p)
|
||||||
|
- [ ] Maintain a Github repo +100 active users
|
||||||
|
- [ ] Build a custom LineageOS image
|
||||||
|
- [ ] ~~Develop a distributed LibP2P golang application~~
|
||||||
|
|
||||||
|
### Languages
|
||||||
|
- [x] English
|
||||||
|
- [ ] ~~Chinese~~
|
||||||
|
- [ ] ~~Greek~~
|
||||||
|
- [ ] ~~German~~
|
||||||
|
- [ ] Italian
|
||||||
|
- [ ] Esperanto (?)
|
||||||
|
|
||||||
|
### Personal
|
||||||
|
- [x] Run a 10k
|
||||||
|
- [ ] Run a Marathon
|
||||||
|
- [ ] Join an online community (e.g., Rust meetup, discord server)
|
||||||
|
- [ ] Blog regularly for a year
|
||||||
|
|
||||||
|
### ~~PhD~~
|
||||||
|
- [x] Write my first workshop paper as main author
|
||||||
|
- [x] Write my first journal paper
|
||||||
|
- [x] Write my first book chapter
|
||||||
|
- [x] Chair a W3C Community Group
|
||||||
|
- [x] Collaborate on a W3C recommendation
|
||||||
|
- [x] Become a doctor!
|
@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Linux on the Microsoft Surface Go
|
title: Linux on the Microsoft Surface Go
|
||||||
date: 2019-06-01 00:00:01
|
date: 2019-06-01 00:00:01
|
||||||
categories:
|
|
||||||
- Linux
|
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
- surface go
|
- surface go
|
||||||
|
@ -1,26 +1,19 @@
|
|||||||
---
|
---
|
||||||
title: Projects
|
title: Index of projects
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 1
|
|
||||||
params:
|
|
||||||
icon: clock
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Ongoing Projects
|
Ongoing Projects
|
||||||
================
|
================
|
||||||
|
|
||||||
* [Soil](https://soilsim.readthedocs.io): an agent-based simulator for social networks based on nx-sim and networkx.
|
* [Senpy](http://senpy.readthedocs.io): a framework for semantic sentiment and emotion analysis services.
|
||||||
* [Soilent](https://github.com/balkian/soilent): an efficient scheduler for soil using rust and pyo3.
|
* [Soil](http://soilsim.readthedocs.io): an agent-based simulator for social networks based on nx-sim and networkx.
|
||||||
* [Senpy](https://senpy.readthedocs.io): a framework for semantic sentiment and emotion analysis services.
|
* [Onyx](http://gsi.dit.upm.es/ontologies/onyx): an ontology for emotion analysis that includes concepts from W3C's provenance.
|
||||||
|
|
||||||
|
|
||||||
Past Projects
|
Past Projects
|
||||||
=============
|
=============
|
||||||
|
|
||||||
* [Onyx](http://gsi.dit.upm.es/ontologies/onyx): an ontology for emotion analysis that includes concepts from W3C's provenance.
|
|
||||||
* [ESP8266 Clock NTP](https://github.com/balkian/ESP8266_Clock_NTP): a simple clock display using arduino, the ESP8266 and NTP (network time protocol).
|
|
||||||
* [Shine ESP](https://github.com/balkian/shinesp): control an ws2812b LED strip over the network with an ESP8266.
|
|
||||||
* [Bitter](https://github.com/balkian/bitter): a wrapper and CLI over the (now defunct) Twitter API to researchers to download Twitter data much faster using multiple accounts.
|
|
||||||
* [Marl](http://gsi.dit.upm.es/ontologies/marl): I updated this ontology, originally created by Adam Westerski, to make it compatible with the W3C's provenance ontology.
|
* [Marl](http://gsi.dit.upm.es/ontologies/marl): I updated this ontology, originally created by Adam Westerski, to make it compatible with the W3C's provenance ontology.
|
||||||
* [Hermes](http://github.com/balkian/hermes): one of my first projects, developed together with David Pérez as the special custom assignment in one of our courses. Hermes is an affective bot designed to mimic the behavour of humans. It included a plug-in system for its sensors and actuators. The information from its sensors changed its emotional state, which was shown via its actuators. Among others, it could fetch inforation from Twitter or its host system and change the expressions of an external Face made with servo motors or speak via its Text-To-Speech software. For instance, it could detect it was running out of battery, showing a sad face and sending an alerting tweet. You can see it in action in these two youtube videos: [Part 1](http://www.youtube.com/watch?v=KnEYahPD9z4) and [Part 2](http://www.youtube.com/watch?v=lQZldCTPEJc).
|
* [Hermes](http://github.com/balkian/hermes): one of my first projects, developed together with David Pérez as the special custom assignment in one of our courses. Hermes is an affective bot designed to mimic the behavour of humans. It included a plug-in system for its sensors and actuators. The information from its sensors changed its emotional state, which was shown via its actuators. Among others, it could fetch inforation from Twitter or its host system and change the expressions of an external Face made with servo motors or speak via its Text-To-Speech software. For instance, it could detect it was running out of battery, showing a sad face and sending an alerting tweet. You can see it in action in these two youtube videos: [Part 1](http://www.youtube.com/watch?v=KnEYahPD9z4) and [Part 2](http://www.youtube.com/watch?v=lQZldCTPEJc).
|
||||||
* [Maia](http://github.com/gsi-upm/maia): the Modular Architecture for Intelligent Agents is an evented agent architecture that aims to update the classical frameworks for intelligent agents with the concepts emerged from the Live Web.
|
* [Maia](http://github.com/gsi-upm/maia): the Modular Architecture for Intelligent Agents is an evented agent architecture that aims to update the classical frameworks for intelligent agents with the concepts emerged from the Live Web.
|
7
content/project/otro.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: just a test
|
||||||
|
type: page
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
It does nothing
|
59
content/search.md
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
---
|
||||||
|
title: "Search Results"
|
||||||
|
layout: "search"
|
||||||
|
sitemap:
|
||||||
|
priority : 0.1
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
This file exists solely to respond to /search URL with the related `search` layout template.
|
||||||
|
|
||||||
|
No content shown here is rendered, all content is based in the template layouts/page/search.html
|
||||||
|
|
||||||
|
Setting a very low sitemap priority will tell search engines this is not important content.
|
||||||
|
|
||||||
|
This implementation uses Fusejs, jquery and mark.js
|
||||||
|
|
||||||
|
|
||||||
|
## Initial setup
|
||||||
|
|
||||||
|
Search depends on additional output content type of JSON in config.toml
|
||||||
|
\```
|
||||||
|
[outputs]
|
||||||
|
home = ["HTML", "JSON"]
|
||||||
|
\```
|
||||||
|
|
||||||
|
## Searching additional fileds
|
||||||
|
|
||||||
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
### Edit layouts/_default/index.JSON
|
||||||
|
This exposes the values in /index.json
|
||||||
|
i.e. add `category`
|
||||||
|
\```
|
||||||
|
...
|
||||||
|
"contents":{{ .Content | plainify | jsonify }}
|
||||||
|
{{ if .Params.tags }},
|
||||||
|
"tags":{{ .Params.tags | jsonify }}{{end}},
|
||||||
|
"categories" : {{ .Params.categories | jsonify }},
|
||||||
|
...
|
||||||
|
\```
|
||||||
|
|
||||||
|
### Edit fuse.js options to Search
|
||||||
|
`static/js/search.js`
|
||||||
|
\```
|
||||||
|
keys: [
|
||||||
|
"title",
|
||||||
|
"contents",
|
||||||
|
"tags",
|
||||||
|
"categories"
|
||||||
|
]
|
||||||
|
\```
|
||||||
|
|
||||||
|
<div id="search-results"></div>
|
||||||
|
<script id="search-result-template" type="text/x-js-template">
|
||||||
|
<div id="summary-${key}">
|
||||||
|
<h3><a href="${link}">${title}</a></h3>
|
||||||
|
<p>${snippet}</p>
|
||||||
|
</div>
|
||||||
|
</script>
|
29
deploy.sh
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
|
||||||
|
|
||||||
|
rm -rf public/*
|
||||||
|
|
||||||
|
# Build the project.
|
||||||
|
hugo # --cleanDestinationDir also removes .git :/ # if using a theme, replace with `hugo -t <YOURTHEME>`
|
||||||
|
|
||||||
|
# Go To Public folder
|
||||||
|
cd public
|
||||||
|
|
||||||
|
# Add changes to git.
|
||||||
|
git add .
|
||||||
|
|
||||||
|
# Commit changes.
|
||||||
|
msg="rebuilding site `date`"
|
||||||
|
if [ $# -eq 1 ]
|
||||||
|
then msg="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
git commit -m "$msg"
|
||||||
|
|
||||||
|
# Push source and build repos.
|
||||||
|
git push origin master
|
||||||
|
|
||||||
|
# Come Back up to the Project Root
|
||||||
|
cd ..
|
||||||
|
|
BIN
favicon.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
5
go.mod
@ -1,5 +0,0 @@
|
|||||||
module github.com/CaiJimmy/hugo-theme-stack-starter
|
|
||||||
|
|
||||||
go 1.17
|
|
||||||
|
|
||||||
require github.com/CaiJimmy/hugo-theme-stack/v3 v3.30.0 // indirect
|
|
2
go.sum
@ -1,2 +0,0 @@
|
|||||||
github.com/CaiJimmy/hugo-theme-stack/v3 v3.30.0 h1:uITC7EKGyfPjyi3C5At++E0Uu1qQXtqiwMV4pd7LkLs=
|
|
||||||
github.com/CaiJimmy/hugo-theme-stack/v3 v3.30.0/go.mod h1:IPmCXiIxlFSLFYS0tOmYP6ySLviyeNVSabyvSuaxD+I=
|
|
@ -1,43 +0,0 @@
|
|||||||
<article>
|
|
||||||
{{ $showDate := not .Date.IsZero }}
|
|
||||||
<a href="{{ .RelPermalink }}">
|
|
||||||
<div class="article-details">
|
|
||||||
<h2 class="article-title">
|
|
||||||
{{- .Title -}}
|
|
||||||
</h2>
|
|
||||||
<footer class="article-time">
|
|
||||||
{{ if $showDate }}
|
|
||||||
<time datetime='{{ .Date.Format "2007-01-02T15:04:05Z07:00" }}'>
|
|
||||||
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
|
|
||||||
</time>
|
|
||||||
{{ end }}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}}
|
|
||||||
{{ if $image.exists }}
|
|
||||||
<div class="article-image">
|
|
||||||
{{ if $image.resource }}
|
|
||||||
{{- $Permalink := $image.resource.RelPermalink -}}
|
|
||||||
{{- $Width := $image.resource.Width -}}
|
|
||||||
{{- $Height := $image.resource.Height -}}
|
|
||||||
|
|
||||||
{{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
|
|
||||||
{{- $thumbnail := $image.resource.Fill "120x120" -}}
|
|
||||||
{{- $Permalink = $thumbnail.RelPermalink -}}
|
|
||||||
{{- $Width = $thumbnail.Width -}}
|
|
||||||
{{- $Height = $thumbnail.Height -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
<img src="{{ $Permalink }}"
|
|
||||||
width="{{ $Width }}"
|
|
||||||
height="{{ $Height }}"
|
|
||||||
alt="{{ .Title }}"
|
|
||||||
loading="lazy">
|
|
||||||
{{ else }}
|
|
||||||
<img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</a>
|
|
||||||
</article>
|
|
@ -1 +0,0 @@
|
|||||||
{"Target":"/scss/style.min.663803bebe609202d5b39d848f2d7c2dc8b598a2d879efa079fa88893d29c49c.css","MediaType":"text/css","Data":{"Integrity":"sha256-ZjgDvr5gkgLVs52Ejy18Lci1mKLYee+gefqIiT0pxJw="}}
|
|
Before Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 1.3 KiB |
107
static/css/highlight.css
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
/*
|
||||||
|
IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>
|
||||||
|
*/
|
||||||
|
|
||||||
|
.hljs {
|
||||||
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
|
/*padding: 0.5em;*/
|
||||||
|
background: #272b2d;
|
||||||
|
color: #d0d0d0;
|
||||||
|
-webkit-text-size-adjust: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-shebang,
|
||||||
|
.hljs-comment {
|
||||||
|
color: #777279;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-keyword,
|
||||||
|
.hljs-tag,
|
||||||
|
.tex .hljs-command,
|
||||||
|
.hljs-request,
|
||||||
|
.hljs-status,
|
||||||
|
.clojure .hljs-attribute {
|
||||||
|
color: #ebde68;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-sub .hljs-keyword,
|
||||||
|
.method,
|
||||||
|
.hljs-list .hljs-title,
|
||||||
|
.nginx .hljs-title {
|
||||||
|
color: #ffffb6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-string,
|
||||||
|
.hljs-tag .hljs-value,
|
||||||
|
.hljs-cdata,
|
||||||
|
.hljs-filter .hljs-argument,
|
||||||
|
.hljs-attr_selector,
|
||||||
|
.apache .hljs-cbracket,
|
||||||
|
.hljs-date,
|
||||||
|
.coffeescript .hljs-attribute {
|
||||||
|
color: #c1ef65;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-subst {
|
||||||
|
color: #daefa3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-regexp {
|
||||||
|
color: #e9c062;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-title,
|
||||||
|
.hljs-sub .hljs-identifier,
|
||||||
|
.hljs-pi,
|
||||||
|
.hljs-decorator,
|
||||||
|
.tex .hljs-special,
|
||||||
|
.hljs-type,
|
||||||
|
.hljs-constant,
|
||||||
|
.smalltalk .hljs-class,
|
||||||
|
.hljs-doctag,
|
||||||
|
.nginx .hljs-built_in {
|
||||||
|
color: #c1ef65;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-symbol,
|
||||||
|
.ruby .hljs-symbol .hljs-string,
|
||||||
|
.hljs-number,
|
||||||
|
.hljs-variable,
|
||||||
|
.vbscript,
|
||||||
|
.hljs-literal,
|
||||||
|
.hljs-name {
|
||||||
|
color: #77bcd7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.css .hljs-tag {
|
||||||
|
color: #96cbfe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.css .hljs-rule .hljs-property,
|
||||||
|
.css .hljs-id {
|
||||||
|
color: #ffffb6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.css .hljs-class {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-hexcolor {
|
||||||
|
color: #c6c5fe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-number {
|
||||||
|
color:#77bcd7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.coffeescript .javascript,
|
||||||
|
.javascript .xml,
|
||||||
|
.tex .hljs-formula,
|
||||||
|
.xml .javascript,
|
||||||
|
.xml .vbscript,
|
||||||
|
.xml .css,
|
||||||
|
.xml .hljs-cdata {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
4
static/css/main.min.css
vendored
Normal file
25
static/css/monosocialiconsfont.css
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Mono Social Icons Font';
|
||||||
|
src: url('../fonts/MonoSocialIconsFont-1.10.eot');
|
||||||
|
src: url('../fonts/MonoSocialIconsFont-1.10.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('../fonts/MonoSocialIconsFont-1.10.woff') format('woff'),
|
||||||
|
url('../fonts/MonoSocialIconsFont-1.10.ttf') format('truetype'),
|
||||||
|
url('../fonts/MonoSocialIconsFont-1.10.svg#MonoSocialIconsFont') format('svg');
|
||||||
|
src: url('../fonts/MonoSocialIconsFont-1.10.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.symbol, a.symbol:before {
|
||||||
|
font-family: 'Mono Social Icons Font';
|
||||||
|
-webkit-text-rendering: optimizeLegibility;
|
||||||
|
-moz-text-rendering: optimizeLegibility;
|
||||||
|
-ms-text-rendering: optimizeLegibility;
|
||||||
|
-o-text-rendering: optimizeLegibility;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-font-smoothing: antialiased;
|
||||||
|
-ms-font-smoothing: antialiased;
|
||||||
|
-o-font-smoothing: antialiased;
|
||||||
|
font-smoothing: antialiased;
|
||||||
|
}
|
895
static/css/style.css
Normal file
@ -0,0 +1,895 @@
|
|||||||
|
/* Reset */
|
||||||
|
|
||||||
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
line-height: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote:before, blockquote:after, q:before, q:after {
|
||||||
|
content: none
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
*, *:before, *:after {
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Clearfix */
|
||||||
|
|
||||||
|
.clearfix:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Icons */
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'icons';
|
||||||
|
src: url('../fonts/icons.eot');
|
||||||
|
src: url('../fonts/icons.eot#iefix') format('embedded-opentype'), url('../fonts/icons.woff') format('woff'), url('../fonts/icons.ttf') format('truetype'), url('../fonts/icons.svg#icons') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="icon-"]:before, [class*=" icon-"]:before {
|
||||||
|
font-family: "icons";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
speak: none;
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: inherit;
|
||||||
|
text-align: center;
|
||||||
|
font-variant: normal;
|
||||||
|
text-transform: none;
|
||||||
|
line-height: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-facebook:before {
|
||||||
|
content: '\e802';
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-facebook-squared:before {
|
||||||
|
content: '\e800';
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-twitter:before {
|
||||||
|
content: '\e801';
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-twitter-1:before {
|
||||||
|
content: '\e804';
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-facebook-circled:before {
|
||||||
|
content: '\e805';
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-twitter-circled:before {
|
||||||
|
content: '\e806';
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-facebook-rect:before {
|
||||||
|
content: '\e803';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Spacing */
|
||||||
|
|
||||||
|
.post h1, h3, h4, h5, p, .post-body ul, #post-list li, pre {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Base */
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font: 16px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
color: #666;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 30px;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
color: #222;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font: italic 19px/1.3em Georgia, serif;
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile #wrapper {
|
||||||
|
padding: 100px 40px 0px;
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile #header {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile #avatar {
|
||||||
|
display: inline-block;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile h1 {
|
||||||
|
font-weight: 400;
|
||||||
|
letter-spacing: 0px;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile h2 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 300;
|
||||||
|
color: #aaa;
|
||||||
|
margin-top: 10px;
|
||||||
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav.main-nav {
|
||||||
|
padding: 20px 20px 0;
|
||||||
|
/*max-width: 600px;*/
|
||||||
|
/*width:100%;*/
|
||||||
|
background: #fff;
|
||||||
|
background: rgba(255, 255, 255, .90);
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: right;
|
||||||
|
/*position: fixed;*/
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav.main-nav a {
|
||||||
|
top: 8px;
|
||||||
|
right: 6px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
color: #5badf0;
|
||||||
|
font-size: 13px;
|
||||||
|
/*font-weight: bold;*/
|
||||||
|
line-height: 1.35;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav.main-nav a.cta {
|
||||||
|
background: #5badf0;
|
||||||
|
color: #fff;
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper {
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 60px 40px 100px 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper.home {
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0px 40px 20px 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home #avatar {
|
||||||
|
float: right;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Typography */
|
||||||
|
|
||||||
|
|
||||||
|
/*Accent color*/
|
||||||
|
|
||||||
|
a, #title, #post-list a:hover, #post-list li:hover .dates, #title:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #5badf0;
|
||||||
|
color: #5694f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
p a {
|
||||||
|
color: #5694f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*Transitions*/
|
||||||
|
|
||||||
|
a, #post-nav a, #post-list a {
|
||||||
|
-webkit-transition: all 0.15s ease;
|
||||||
|
-moz-transition: all 0.15s ease;
|
||||||
|
-ms-transition: all 0.15s ease;
|
||||||
|
-o-transition: all 0.15s ease;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
list-style-type: circle;
|
||||||
|
list-style-position: inside;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Line Height */
|
||||||
|
|
||||||
|
#post-body, p {
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
b, strong {
|
||||||
|
font-weight: 500;
|
||||||
|
color: #1E2025;
|
||||||
|
}
|
||||||
|
|
||||||
|
em, i {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
#title {
|
||||||
|
display: inline-block;
|
||||||
|
line-height: 100%;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 19px;
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
float: right;
|
||||||
|
font: italic 14px/1.4em Georgia, serif;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home h1 {
|
||||||
|
font-size: 30px;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
color: #222;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home h2 {
|
||||||
|
font: italic 19px/1.3em Georgia, serif;
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post header {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post h1 {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #222;
|
||||||
|
font: 300 32px/1.4em "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post h2 {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
font: 300 24px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
color: #111;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post h2.headline {
|
||||||
|
font: normal 13px/1.5em "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
margin: -5px 0 40px 0;
|
||||||
|
color: #b2b9be;
|
||||||
|
font-size: 13px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post h2.headline .tags {
|
||||||
|
font: normal 13px/1.5em "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
margin: -5px 0 40px 0;
|
||||||
|
color: #b2b9be;
|
||||||
|
font-size: 13px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
margin-top: 5px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list h2 {
|
||||||
|
font: normal 17px/1.5em "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
color: #aaa;
|
||||||
|
max-width: 400px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3, h4, h5 {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.small {
|
||||||
|
color: #bbb;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
padding-left: 15px;
|
||||||
|
border-left: 3px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
display: block;
|
||||||
|
border: none;
|
||||||
|
height: 1px;
|
||||||
|
margin: 40px auto;
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.code {
|
||||||
|
font-family: Menlo, Monaco, Courier;
|
||||||
|
background-color: #EEE;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
/*font-family: Menlo, Monaco, Courier;*/
|
||||||
|
/*white-space: pre-wrap;*/
|
||||||
|
overflow-x: scroll;
|
||||||
|
/*border: 1px solid #ddd;*/
|
||||||
|
/*padding: 20px;*/
|
||||||
|
/*background-color: #fdfdfd;*/
|
||||||
|
/*font-size:14px;*/
|
||||||
|
/*overflow: auto;*/
|
||||||
|
/*border-radius: 3px;*/
|
||||||
|
/*background: #272b2d;*/
|
||||||
|
/*font-family: 'Source Code Pro', Menlo, monospace;*/
|
||||||
|
/*font-size: 13px;*/
|
||||||
|
/*line-height: 1.5em;*/
|
||||||
|
/*font-weight: 500;*/
|
||||||
|
/*color: #d0d4d7;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
margin: 40px 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
text-align: left;
|
||||||
|
padding-right: 20px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td, td {
|
||||||
|
border-spacing: none;
|
||||||
|
border-style: solid;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-width: 1px 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr>td {
|
||||||
|
border-top: 1px solid #eaeaea;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:nth-child(odd)>td {
|
||||||
|
background: #fcfcfc;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead th, th {
|
||||||
|
text-align: left;
|
||||||
|
padding: 10px 15px;
|
||||||
|
height: 20px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #444;
|
||||||
|
border-bottom: 1px solid #dadadc;
|
||||||
|
cursor: default;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Made with Cactus Badge */
|
||||||
|
|
||||||
|
#badge {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 8px;
|
||||||
|
right: 8px;
|
||||||
|
height: 48px;
|
||||||
|
width: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*=========================================
|
||||||
|
Post List
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
|
#post-list, #archive-list {
|
||||||
|
/*margin-top: 100px;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list li, #archive-list li {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list li:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list li+li {
|
||||||
|
padding-top: 20px;
|
||||||
|
/*border-top: 1px solid #eee;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list a {
|
||||||
|
color: #333;
|
||||||
|
display: block;
|
||||||
|
font: bold 19px/1.7 "Helvetica Neue", helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list .dates {
|
||||||
|
float: right;
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
font: 300 17px/1.8 "Helvetica Neue", helvetica, Arial, sans-serif;
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list-footer {
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
margin-top: 20px;
|
||||||
|
padding-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#archive-link {
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 3px 10px 6px;
|
||||||
|
box-shadow: 0 0 0 1px hsla(207, 83%, 80%, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#archive-link:hover {
|
||||||
|
background: #5694f1;
|
||||||
|
color: #fff;
|
||||||
|
box-shadow: 0 0 0 1px #5694f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#archive-link span {
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
/*box-shadow: inset 0 1px 0 #eee;*/
|
||||||
|
padding: 40px 0 0 0;
|
||||||
|
margin-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Post Page */
|
||||||
|
|
||||||
|
#header {
|
||||||
|
/*border-bottom: 1px solid #eee;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.post {
|
||||||
|
margin: 80px 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-meta {
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 1.4;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
padding-top: 40px;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
margin-top: 40px;
|
||||||
|
color: #444;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-meta div span {
|
||||||
|
color: #aaa;
|
||||||
|
font-weight: 500;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-meta div span.dark {
|
||||||
|
color: #1E2025;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-meta div {
|
||||||
|
margin: 0 25px 0 0;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sharing {
|
||||||
|
float: right;
|
||||||
|
margin: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sharing a {
|
||||||
|
font-size: 20px;
|
||||||
|
font-size: 23px;
|
||||||
|
margin-left: 1px;
|
||||||
|
margin-top: 4px;
|
||||||
|
color: #d4d4d4;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sharing a:hover {
|
||||||
|
/*color: #444;*/
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Post Navigation */
|
||||||
|
|
||||||
|
#post-nav {
|
||||||
|
/*border-top:1px solid #eee;*/
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 20px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span {
|
||||||
|
-webkit-transition: all 0.1s linear;
|
||||||
|
-moz-transition: all 0.1s linear;
|
||||||
|
-ms-transition: all 0.1s linear;
|
||||||
|
-o-transition: all 0.1s linear;
|
||||||
|
transition: all 0.1s linear;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span.prev {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span.next {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span .arrow {
|
||||||
|
position: relative;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span.prev:hover .arrow {
|
||||||
|
left: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span.next:hover .arrow {
|
||||||
|
right: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span.prev:hover {
|
||||||
|
left: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-nav span.next:hover {
|
||||||
|
right: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Archive */
|
||||||
|
|
||||||
|
h1.archive {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.month {
|
||||||
|
width: 100%;
|
||||||
|
font: bold 13px/1 "Helvetica Neue", helvetica, Arial, sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-top: 40px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
#archive-list li:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#archive-list a {
|
||||||
|
display: block;
|
||||||
|
font: bold 17px/1.7 "Helvetica Neue", helvetica, Arial, sans-serif;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
#archive-list .dates {
|
||||||
|
float: right;
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
font: 300 17px/1.7 "Helvetica Neue", helvetica, Arial, sans-serif;
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
#archive-list li a:hover, #archive-list li:hover .dates {
|
||||||
|
color: #5694f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-meta img.avatar {
|
||||||
|
height: 36px;
|
||||||
|
width: 36px;
|
||||||
|
float: left;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-top: 3px;
|
||||||
|
margin-right: 20px;
|
||||||
|
box-shadow: 0 0 0 3px #fff, 0 0 0 4px #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list.archive.readmore {
|
||||||
|
margin-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list.archive.readmore h3 {
|
||||||
|
font: 400 20px "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list.archive.readmore a {
|
||||||
|
font: 400 16px/1.6 "Helvetica Neue", helvetica, Arial, sans-serif;
|
||||||
|
color: #5694f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list.archive.readmore a:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-list.archive.readmore .dates {
|
||||||
|
font: 300 16px/1.6 "Helvetica Neue", helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#disqus_thread, #ds-thread {
|
||||||
|
margin-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sharing a.facebook {
|
||||||
|
background: #4361b3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sharing a.twitter {
|
||||||
|
background: #4fafed;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sharing a {
|
||||||
|
font-size: 20px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff;
|
||||||
|
padding: 6px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Media Queries */
|
||||||
|
|
||||||
|
@media screen and (max-width: 540px) {
|
||||||
|
#wrapper {
|
||||||
|
padding: 20px 20px 20px 20px;
|
||||||
|
}
|
||||||
|
#header {
|
||||||
|
margin-bottom: 60px;
|
||||||
|
/*border-bottom: 1px solid #eee; */
|
||||||
|
}
|
||||||
|
.post {
|
||||||
|
margin: 40px 0;
|
||||||
|
}
|
||||||
|
#footer {
|
||||||
|
margin-top: 60px;
|
||||||
|
}
|
||||||
|
#post-list, #archive-list {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
#post-meta {
|
||||||
|
margin-top: 60px;
|
||||||
|
}
|
||||||
|
#title {
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
#post-list .dates {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#post-list-footer {
|
||||||
|
margin-top: 20px;
|
||||||
|
padding-top: 40px;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
|
.post h2.headline {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.post h1 {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
.post h2 {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive {
|
||||||
|
margin: 0 0 50px 0;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive .post-item {
|
||||||
|
padding: 10px 10px;
|
||||||
|
/*border-left: 1px solid #cacaca;*/
|
||||||
|
overflow-x: hidden;
|
||||||
|
white-space:nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive .post-time {
|
||||||
|
display: inline-block;
|
||||||
|
width: 60px;
|
||||||
|
margin: 0 10px;
|
||||||
|
color: #8a8a8a;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
.archive .post-time {
|
||||||
|
margin: 5px 0;
|
||||||
|
width: auto;
|
||||||
|
font-size: 13px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive .post-link {
|
||||||
|
color: #8a8a8a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive .post-item:hover {
|
||||||
|
color: #5694f1;
|
||||||
|
padding-left: 13px;
|
||||||
|
/*border-left: 1px solid #5badf0;*/
|
||||||
|
transition: 0.3s ease-out;
|
||||||
|
}
|
||||||
|
.archive .post-item:hover .post-time,.archive .post-item:hover .post-link {
|
||||||
|
color: #5694f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fa.fa-heart:hover {
|
||||||
|
color: #ff3356;
|
||||||
|
transition: 0.7s ease-out;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* CUSTOM ADDITIONS */
|
||||||
|
|
||||||
|
#social {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.symbol {
|
||||||
|
color: #cdd4da;
|
||||||
|
font-size: 2rem;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-right: 0.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.symbol:hover {
|
||||||
|
color: #BCD4DA;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family: Menlo, Monaco, Courier;
|
||||||
|
background-color: #EEE;
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 4px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* tags page
|
||||||
|
*/
|
||||||
|
|
||||||
|
#wrapper.tags {
|
||||||
|
padding: 0px 40px 20px 40px;
|
||||||
|
}
|
||||||
|
.page-tags {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-tags .tags {
|
||||||
|
font: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
margin: 10px 15px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-tags .tags a {
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-tags .tags:hover a {
|
||||||
|
color: #5694f1;
|
||||||
|
}
|
Before Width: | Height: | Size: 639 B |
BIN
static/fonts/MonoSocialIconsFont-1.10.eot
Executable file
BIN
static/fonts/MonoSocialIconsFont-1.10.otf
Executable file
1013
static/fonts/MonoSocialIconsFont-1.10.svg
Executable file
After Width: | Height: | Size: 283 KiB |
BIN
static/fonts/MonoSocialIconsFont-1.10.ttf
Executable file
BIN
static/fonts/MonoSocialIconsFont-1.10.woff
Executable file
18
static/fonts/icons.svg
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>Copyright (C) 2013 by original authors @ fontello.com</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="icons" horiz-adv-x="1000" >
|
||||||
|
<font-face font-family="icons" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
|
||||||
|
<missing-glyph horiz-adv-x="1000" />
|
||||||
|
<glyph glyph-name="facebook" unicode="" d="m285 540h144l-17-159h-127v-460h-190v460h-95v159h95v95q0 102 48 154t158 52h126v-158h-79q-22 0-35-4t-19-13t-7-19t-2-28v-79z" horiz-adv-x="428.6" />
|
||||||
|
<glyph glyph-name="facebook-squared" unicode="" d="m729 338l13 122h-110v61q0 27 8 38t40 11h62v122h-98q-85 0-122-40t-36-119v-73h-74v-122h74v-355h146v355h97z m128 280v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
|
||||||
|
<glyph glyph-name="twitter" unicode="" d="m904 622q-37-54-90-93q0-8 0-23q0-73-21-145t-64-139t-103-117t-144-82t-181-30q-151 0-276 81q19-3 43-3q126 0 224 77q-59 2-105 36t-64 89q19-2 34-2q24 0 48 6q-63 13-104 62t-41 115v2q38-21 82-23q-37 25-59 64t-22 86q0 49 25 91q68-83 164-133t208-55q-5 21-5 41q0 75 53 127t127 53q79 0 132-57q61 12 114 44q-20-64-79-100q52 6 104 28z" horiz-adv-x="928.6" />
|
||||||
|
<glyph glyph-name="twitter-1" unicode="" d="m920 636q-36-54-94-98l0-24q0-130-60-250t-186-203t-290-83q-160 0-290 84q14-2 46-2q132 0 234 80q-62 2-110 38t-66 94q10-4 34-4q26 0 50 6q-66 14-108 66t-42 120l0 2q36-20 84-24q-84 58-84 158q0 48 26 94q154-188 390-196q-6 18-6 42q0 78 55 133t135 55q82 0 136-58q60 12 120 44q-20-66-82-104q56 8 108 30z" horiz-adv-x="920" />
|
||||||
|
<glyph glyph-name="facebook-circled" unicode="" d="m800 683q138-138 138-333q0-193-138-331t-331-137q-195 0-333 137q-136 136-136 331q0 197 136 333q135 136 333 136q195 0 331-136z m-384-271q0 61 39 104t98 43l72 0l0-105l-72 0q-13 0-22-9t-10-22l0-73l104 0l0-103l-104 0l0-258q117 15 205 104q108 107 108 257q0 153-108 259t-257 106q-153 0-259-106t-106-259q0-150 106-257q89-89 206-104l0 258l-103 0l0 103l103 0l0 62z" horiz-adv-x="938" />
|
||||||
|
<glyph glyph-name="twitter-circled" unicode="" d="m475 408q0 35 25 60t61 25t62-26q27 6 53 20q-10-30-36-47q30 4 49 14q-16-24-44-45l0-11q0-133-111-205q-56-38-131-38q-72 0-132 39q4-1 22-1q58 0 106 36q-29 1-51 18t-29 42q5-2 15-2q15 0 22 2q-28 6-48 29t-19 56q14-7 39-10q-39 28-39 71q0 20 12 43q69-85 177-89q-3 10-3 19z m-6-527q-195 0-333 138q-136 136-136 331q0 197 136 333q135 136 333 136q195 0 331-136q138-138 138-333q0-193-138-331t-331-137z m0 834q-153 0-259-106t-106-259q0-150 106-257t259-108q150 0 257 108t108 257q0 153-108 259t-257 106z" horiz-adv-x="938" />
|
||||||
|
<glyph glyph-name="facebook-rect" unicode="" d="m183 850c-102 0-183-81-183-183l0-634c0-102 81-183 183-183l344 0l0 391l-104 0l0 141l104 0l0 120c0 94 61 181 201 181c57 0 100-5 100-5l-4-132s-43 1-90 1c-50 0-58-24-58-62l0-103l152 0l-6-141l-146 0l0-391l141 0c102 0 183 81 183 183l0 634c0 102-81 183-183 183l-634 0z" horiz-adv-x="1000" />
|
||||||
|
</font>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 3.0 KiB |
BIN
static/fonts/icons.ttf
Normal file
BIN
static/fonts/icons.woff
Normal file
BIN
static/images/avatar.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
static/images/avatar@2x.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
static/images/favicon.ico
Normal file
After Width: | Height: | Size: 59 KiB |
92
static/js/jquery.tagcloud.js
Executable file
@ -0,0 +1,92 @@
|
|||||||
|
/*!
|
||||||
|
* jquery.tagcloud.js
|
||||||
|
* A Simple Tag Cloud Plugin for JQuery
|
||||||
|
*
|
||||||
|
* https://github.com/addywaddy/jquery.tagcloud.js
|
||||||
|
* created by Adam Groves
|
||||||
|
*/
|
||||||
|
(function($) {
|
||||||
|
|
||||||
|
/*global jQuery*/
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var compareWeights = function(a, b)
|
||||||
|
{
|
||||||
|
return a - b;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Converts hex to an RGB array
|
||||||
|
var toRGB = function(code) {
|
||||||
|
if (code.length === 4) {
|
||||||
|
code = code.replace(/(\w)(\w)(\w)/gi, "\$1\$1\$2\$2\$3\$3");
|
||||||
|
}
|
||||||
|
var hex = /(\w{2})(\w{2})(\w{2})/.exec(code);
|
||||||
|
return [parseInt(hex[1], 16), parseInt(hex[2], 16), parseInt(hex[3], 16)];
|
||||||
|
};
|
||||||
|
|
||||||
|
// Converts an RGB array to hex
|
||||||
|
var toHex = function(ary) {
|
||||||
|
return "#" + jQuery.map(ary, function(i) {
|
||||||
|
var hex = i.toString(16);
|
||||||
|
hex = (hex.length === 1) ? "0" + hex : hex;
|
||||||
|
return hex;
|
||||||
|
}).join("");
|
||||||
|
};
|
||||||
|
|
||||||
|
var colorIncrement = function(color, range) {
|
||||||
|
return jQuery.map(toRGB(color.end), function(n, i) {
|
||||||
|
return (n - toRGB(color.start)[i])/range;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
var tagColor = function(color, increment, weighting) {
|
||||||
|
var rgb = jQuery.map(toRGB(color.start), function(n, i) {
|
||||||
|
var ref = Math.round(n + (increment[i] * weighting));
|
||||||
|
if (ref > 255) {
|
||||||
|
ref = 255;
|
||||||
|
} else {
|
||||||
|
if (ref < 0) {
|
||||||
|
ref = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ref;
|
||||||
|
});
|
||||||
|
return toHex(rgb);
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.tagcloud = function(options) {
|
||||||
|
|
||||||
|
var opts = $.extend({}, $.fn.tagcloud.defaults, options);
|
||||||
|
var tagWeights = this.map(function(){
|
||||||
|
return $(this).attr("rel");
|
||||||
|
});
|
||||||
|
tagWeights = jQuery.makeArray(tagWeights).sort(compareWeights);
|
||||||
|
var lowest = tagWeights[0];
|
||||||
|
var highest = tagWeights.pop();
|
||||||
|
var range = highest - lowest;
|
||||||
|
if(range === 0) {range = 1;}
|
||||||
|
// Sizes
|
||||||
|
var fontIncr, colorIncr;
|
||||||
|
if (opts.size) {
|
||||||
|
fontIncr = (opts.size.end - opts.size.start)/range;
|
||||||
|
}
|
||||||
|
// Colors
|
||||||
|
if (opts.color) {
|
||||||
|
colorIncr = colorIncrement (opts.color, range);
|
||||||
|
}
|
||||||
|
return this.each(function() {
|
||||||
|
var weighting = $(this).attr("rel") - lowest;
|
||||||
|
if (opts.size) {
|
||||||
|
$(this).css({"font-size": opts.size.start + (weighting * fontIncr) + opts.size.unit});
|
||||||
|
}
|
||||||
|
if (opts.color) {
|
||||||
|
$(this).css({"color": tagColor(opts.color, colorIncr, weighting)});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.tagcloud.defaults = {
|
||||||
|
size: {start: 14, end: 18, unit: "pt"}
|
||||||
|
};
|
||||||
|
|
||||||
|
})(jQuery);
|
36
static/js/main.js
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
// To make images retina, add a class "2x" to the img element
|
||||||
|
// and add a <image-name>@2x.png image. Assumes jquery is loaded.
|
||||||
|
|
||||||
|
function isRetina() {
|
||||||
|
var mediaQuery = "(-webkit-min-device-pixel-ratio: 1.5),\
|
||||||
|
(min--moz-device-pixel-ratio: 1.5),\
|
||||||
|
(-o-min-device-pixel-ratio: 3/2),\
|
||||||
|
(min-resolution: 1.5dppx)";
|
||||||
|
|
||||||
|
if (window.devicePixelRatio > 1)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (window.matchMedia && window.matchMedia(mediaQuery).matches)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
function retina() {
|
||||||
|
|
||||||
|
if (!isRetina())
|
||||||
|
return;
|
||||||
|
|
||||||
|
$("img.2x").map(function(i, image) {
|
||||||
|
|
||||||
|
var path = $(image).attr("src");
|
||||||
|
|
||||||
|
path = path.replace(".png", "@2x.png");
|
||||||
|
path = path.replace(".jpg", "@2x.jpg");
|
||||||
|
|
||||||
|
$(image).attr("src", path);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$(document).ready(retina);
|
6
static/js/main.min.js.bak
Normal file
2
themes/balkian/archetypes/default.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
+++
|
||||||
|
+++
|
74
themes/balkian/layouts/_default/baseof.html
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
<title>{{ .Site.Title }} - {{ block "site_title" . }}WELCOME{{ end }}</title>
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
|
|
||||||
|
<!-- syntax highlighting CSS -->
|
||||||
|
<!-- <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/solarized.css"> -->
|
||||||
|
<!--<link href="/css/bootstrap.css" rel="stylesheet">-->
|
||||||
|
<link rel="stylesheet" href="{{ "/font-awesome/css/all.css" | relURL }}">
|
||||||
|
|
||||||
|
<!--<link rel="stylesheet" href="/css/bootstrap-responsive.min.css">-->
|
||||||
|
|
||||||
|
<!-- Custom CSS -->
|
||||||
|
<link rel="stylesheet" media="only screen" href="{{ "/css/main.css" | relURL }}">
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300|Comfortaa' rel='stylesheet' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="container" class="container">
|
||||||
|
<div id="contentwrapper">
|
||||||
|
<div id="content">
|
||||||
|
<header id="header">
|
||||||
|
<ul class="navbar" id="navbar">
|
||||||
|
<a href="/">
|
||||||
|
<li {{ if ( eq .Params.url "/" ) }}
|
||||||
|
class="active"
|
||||||
|
{{ end }} >
|
||||||
|
<i class="fa fa-home fa-large"></i>
|
||||||
|
</li></a>
|
||||||
|
{{ $currentNode := . }}
|
||||||
|
{{ range .Site.Menus.main }}
|
||||||
|
<a href="{{ .URL}}"><li class='{{if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} active{{end}}' >{{ .Name }}
|
||||||
|
</li></a>
|
||||||
|
{{ end }}
|
||||||
|
<a href="{{ "/search" | relURL }}"><li>
|
||||||
|
<i class="fa fa-search"></i>
|
||||||
|
</li></a>
|
||||||
|
</ul>
|
||||||
|
</header>
|
||||||
|
<!--Body content-->
|
||||||
|
{{ block "content" . }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ block "sidebar" . }}
|
||||||
|
{{ partial "sidebar-entries.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<footer class="pagefooter" role="contentinfo">
|
||||||
|
<div class="contact">
|
||||||
|
<p>
|
||||||
|
J. Fernando Sánchez Rada | balkian
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<ul id="social">
|
||||||
|
<li><a href="http://github.com/balkian"><i class="fab fa-github"></i></a></li>
|
||||||
|
<li><a href="http://lab.gsi.upm.es/balkian"><i class="fab fa-gitlab"></i></a></li>
|
||||||
|
<li><a href="http://twitter.com/balkian"><i class="fab fa-twitter"></i></a></li>
|
||||||
|
<li><a href="http://git.sinpapel.es/balkian"><i class="fab fa-git"></i></a></li>
|
||||||
|
<li><a href="http://linkedin.com/in/jfsanchezrada"><i class="fab fa-linkedin"></i></a></li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
<i class="fab fa-creative-commons"></i> Creative Commons A-SA-NC
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="{{ "/js/jquery-2.0.2.min.js" | relURL }}"></script>
|
||||||
|
{{ block "footerfiles" . }}
|
||||||
|
{{ end }}
|
||||||
|
</body>
|
||||||
|
</html>
|
10
themes/balkian/layouts/_default/content-list.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<div class="entry default-entry">
|
||||||
|
<div class="posthead">
|
||||||
|
{{ if ne (.Date.Format "2006") "0001" }}
|
||||||
|
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
|
||||||
|
{{ end }}
|
||||||
|
<h2><a href="{{ .Permalink }}" class="title">{{ .Title }}</a></h2>
|
||||||
|
<h3>{{ .Description }}</h3>
|
||||||
|
{{ .Render "item-tags" }}
|
||||||
|
</div>
|
||||||
|
</div>
|
5
themes/balkian/layouts/_default/index.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{{- $.Scratch.Add "index" slice -}}
|
||||||
|
{{- range .Site.RegularPages -}}
|
||||||
|
{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- $.Scratch.Get "index" | jsonify -}}
|
3
themes/balkian/layouts/_default/item-tags.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{ range .Params.tags }}
|
||||||
|
<a class="tag" href='{{ add "/tags/" . | urlize }}'><span class="label">{{ . }}</span></a>
|
||||||
|
{{ end }}
|
13
themes/balkian/layouts/_default/list.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{{ define "site_title" }}{{ .Title }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "content" }}
|
||||||
|
{{ range .Paginator.Pages }}
|
||||||
|
{{ .Render "content-list" }}
|
||||||
|
{{ end }}
|
||||||
|
<!-- Pagination -->
|
||||||
|
{{ partial "pagination.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "sidebar" }}
|
||||||
|
{{ partial "sidebar-entries.html" . }}
|
||||||
|
{{ end }}
|
9
themes/balkian/layouts/_default/single.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{{ define "content"}}
|
||||||
|
<h2>{{ .Title }}</h2>
|
||||||
|
<!-- <hr> -->
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "sidebar" }}
|
||||||
|
{{ partial "toc.html" . }}
|
||||||
|
{{ end }}
|