An ASCII-version selfie of myself, presented using a little Jekyll website that includes the text file
How can you do the same? Easily explained in 13 steps!
Git
knowledge basicsHTML5, CSS3
knowledge basicsJekyll
to test the website locallyAn Android phone
to use the applicationDownloaded AsciiCam Android application: AsciiCam in the Google Play Store I've found this for iPhone but not tested it
Took a selfie Using default camera application on my Xiaomi Redmi Note 4 (no filters ;))
Imported the recently taken selfie Using the button with an a letter in the right bar of the AsciiCam application
Exported the picture to my personal Google Drive
Using the Share Picture -> Share Text
option and then Save to Google Drive
from the Android UI
Created a basic Jekyll site Using the following commands:
jekyll new selfie
cd selfie
_config.yml
, _layouts/default.html
, _includes/head.html
, _includes/content.html
, modified index.html
and added some assets (a CSS file and some favicons with its browser-specific definitions)_includes/content.html
the key is to include the text photo as a block of text:<pre>{% include photo.txt %}</pre>
Copied the photo as text to the _includes
folder and assets/txt
folder
To the _includes
folder so the text can be included using Jekyll and to the assets/txt
folder so it lives online as a separated text resource
Created a Git repository, and added main files
To create an empty Git repository:
git init .
Then added some files:
.gitignore
(Jekyll template from GitHub gitignores).gitattributes
to always checkout the same UNIX-like EOLREADME.md
describing the steps to create the projectLICENSE
the license of the projectCNAME
file to set a custom domain to the GitHub Pages projectAdded and commited those files:
git add .git* README.md CNAME && git commit -m "Initial commit"
Add the project files too
Commit the project files
git add * && git commit -m "First site"
Created an empty repository in GitHub
Using the GitHub website. I create one named selfie
, without including a README
or LICENSE
to create an empty repo
Added a remote
Set a git remote
git remote add github [email protected]:davidlj95/selfie
Push changes to the remote
git push -u github master
Set the project as a GitHub Pages project
In the repository settings page in GitHub, section GitHub Pages, select master
as Source and Save
Enjoy it