Skip to content

emzi/hugo-phlat-theme-rtl

 
 

Repository files navigation

RTL'ed Hugo-Phlat-Theme

- 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.

screenshot_rtl

Installation

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

Posts

  • 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 touch 03:30 which is Iran UTC time offset. You may also see 04:30 that is because of detected summer clock on author's OS. When you are still working on your post, set the draft as true. 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.

+ Read More

About

A flat theme for the Hugo static template engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 70.4%
  • HTML 29.2%
  • JavaScript 0.4%