From e086c07d66fddc4dff27c391d9c4035c1a64c1ce Mon Sep 17 00:00:00 2001 From: David Todd Date: Mon, 27 May 2019 00:44:18 -0500 Subject: [PATCH] Initial Commit --- .editorconfig | 32 ++++++++++++++++++++++++++++++++ .gitignore | 2 ++ license | 21 +++++++++++++++++++++ readme.md | 22 ++++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 license create mode 100644 readme.md diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7244b9e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,32 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +# Use 4 spaces for the Python files +[*.py] +indent_size = 4 +max_line_length = 80 + +# The JSON files contain newlines inconsistently +[*.json] +insert_final_newline = ignore + +# Minified JavaScript files shouldn't be changed +[**.min.js] +indent_style = ignore +insert_final_newline = ignore + +# Makefiles always use tabs for indentation +[Makefile] +indent_style = tab + +[*.md] +trim_trailing_whitespace = false + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a10c5b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +venv/ +.vscode diff --git a/license b/license new file mode 100644 index 0000000..0de88dd --- /dev/null +++ b/license @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 c0de + +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. diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..6f01e81 --- /dev/null +++ b/readme.md @@ -0,0 +1,22 @@ +# c0de.dev Blog + + +This is a [Pelican](https://getpelican.com) based blog that powers [c0de.dev](https://c0de.dev). +There's not really a whole lot here, but it contains all the posts and content; as well as all configuration files. + + +## Installation + +1. SSH into your server +1. Clone the repo - `git clone https://github.com/alopexc0de/c0de.dev-blog` +1. `cd c0de.dev-blog` +1. Setup a virtualenv - `virtualenv venv` +1. Activate it - `source venv/bin/activate` +1. Install dependencies into virtualenv - `pip install -r requirements.txt` + + +## TODO + +* Service/Unit to run this in a server on prod +* Git hooks to automatically fetch content +* NginX config