- This repository contains rtl version of the Phlat theme. It's originally a @nraboy work.
- Contents are converted from Markdown to HTML manually by Hugo static site generator. You can host your static site on Github Pages, GitLab Pages, Bitbucket (via Aerobatic) and others.
hugo new site my-blog
cd $_
git clone [email protected]:emzi/hugo-phlat-theme-rtl.git themes/hugo-phlat-theme-rtl
mv -f themes/hugo-phlat-theme-rtl/exampleSite-rtl/* .
hugo server --buildDrafts
-
Each post must be located in
content/post
-
A post should be started with the below snippet (called 'frontmatter') at the beginnig:
+++ author = "Author" categories = [ "Category" ] date = "YYYY-MM-DDThh:mm:ss+03:30" description = "Description" draft = true/false tags = [ "tag1", "tag2" ] title = "Title" +++
YYYY-MM-DD
should be in Gregorian date.hh:mm:ss
refers to time and don't touch03:30
which is Iran UTC time offset. You may also see04:30
that is because of detected summer clock on author's OS. When you are still working on your post, set thedraft
astrue
. Once completed, ensure it’s no longer a draft:hugo undraft content/post/<file-name>.md
or simply replace 'true' with 'false'. -
Put images in
static/img
directory.