add jekyll support

This commit is contained in:
Amir Pourmand 2022-03-01 03:52:44 +03:30
parent 37983106f5
commit 8807d1e806
6 changed files with 51 additions and 0 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
.sass-cache/
_site/
.jekyll-cache/
Gemfile.lock

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM jekyll/jekyll
Label MAINTAINER Amir Pourmand
WORKDIR /srv/jekyll
ADD Gemfile /srv/jekyll/
RUN bundle install

11
Gemfile Normal file
View file

@ -0,0 +1,11 @@
source 'https://rubygems.org'
gem "jekyll"
gem "jekyll-theme-primer"
gem "jekyll-optional-front-matter"
gem "jekyll-default-layout"
gem "jekyll-readme-index"
gem "jekyll-titles-from-headings"
gem "jekyll-relative-links"
gem "kramdown-parser-gfm"
gem "kramdown"

27
_config.yml Normal file
View file

@ -0,0 +1,27 @@
title: Amir Pourmand Schedule!
theme: jekyll-theme-primer
baseurl:
highlighter: rouge
gist:
noscript: false
kramdown:
math_engine: mathjax
syntax_highlighter: rouge
readme_index:
enabled: true
repository: hikerpig/foam-jekyll-template
# Generate permalinks in format specified in: https://jekyllrb.com/docs/permalinks/#built-in-formats
permalink: pretty
plugins:
- jekyll-optional-front-matter
- jekyll-readme-index
- jekyll-default-layout
- jekyll-titles-from-headings
- jekyll-relative-links

1
bin/docker_build.sh Executable file
View file

@ -0,0 +1 @@
docker build -t "foam:Dockerfile" .

3
bin/docker_run.sh Executable file
View file

@ -0,0 +1,3 @@
docker run --rm -v "$PWD:/srv/jekyll/" -p "8080:8080" \
-it foam:Dockerfile bundler \
exec jekyll serve --watch --port=8080 --host=0.0.0.0