Last active
November 16, 2020 01:32
-
-
Save noize-e/51461a47de7b4667877ce3c14480bdf7 to your computer and use it in GitHub Desktop.
Jekyll boilerplate - build configuration yaml and default html layout
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
# Site | |
title: "you site title" | |
email: webmaster@yoursite.com | |
description: >- # this means to ignore newlines until "baseurl:" | |
Your site description | |
# Env: localhost | |
url: "http://localhost/" # the base hostname & protocol | |
baseurl: "/cc" # the subpath, e.g. /parefix | |
port: 5000 | |
# Build | |
encoding: utf-8 | |
locale: es | |
markdown: kramdown | |
source: src/ # Source Code | |
destination: dist/ # Distro dir | |
# SASS compiler | |
sass: | |
style: compressed # possible values: nested expanded compact compressed | |
sass_dir: assets/_sass |
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
<!-- | |
Google Fonts <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Muli:300|Comfortaa:400,500,600&display=swap"> | |
TinySlider <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/tiny-slider.css" | |
[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.helper.ie8.js"></script><![endif] | |
--> | |
<!-- Bootstrap 4 --> | |
<link rel="stylesheet" type="text/css" href="{{ 'assets/css/vendor/bootstrap.min.css' | relative_url }}" /> | |
<link rel="stylesheet" type="text/css" href="{{ 'assets/css/vendor/font-awesome-all.min.css' | relative_url }}"> | |
<!-- layout --> | |
{%- assign _lc = "assets/css/" | append: layout.name | append: ".css" -%} | |
<link rel="stylesheet" type="text/css" href="{{ _lc | relative_url }}" /> | |
<!-- layout widget --> | |
{%- if layout.widget -%}{%- assign _lw = "assets/css/widgets/" | append: layout.widget | append: ".css" -%} | |
<link rel="stylesheet" type="text/css" href="{{ _lw | relative_url }}" />{%- endif -%} | |
<!-- page widget --> | |
{%- if page.widget -%}{%- assign _pw = "assets/css/widgets/" | append: page.widget | append: ".css" -%} | |
<link rel="stylesheet" type="text/css" href="{{ _pw | relative_url }}" />{%- endif -%} |
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
<!DOCTYPE html> | |
<html class="h-100 w-100" lang="{{ page.lang | default: site.lang | default: "en" }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content="{{site.title}}"> | |
<meta name="author" content="wirdlog inc"> | |
<title>{{page.title}}</title> | |
<link rel="canonical" href="{{ page.canonical | relative_url }}"> | |
<!-- css --> | |
{% include stylesheets.html theme=layout.theme %} | |
<!-- vendor --> | |
{%- if page.vendor -%}<script type="text/javascript" src="{{page.vendor}}"></script>{%- endif -%} | |
</head> | |
<body class="d-flex flex-column h-100 w-100 {%if layout.theme%}{{layout.theme}}{%endif%}{%if page.theme%}{{page.theme}}{% endif %} {% if page.mv %}{{page.mv}}{% endif %}"> | |
{{ content }} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment