You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 年之前
4 年之前
4 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Lekh
  2. Simple, text-focussed and minimal personal portfolio theme based on https://github.com/vegarsti/vegarsti.github.io
  3. ## Screenshot ([Live Demo](https://agitated-yonath-d9c445.netlify.com/))
  4. ![Screenshot](https://raw.githubusercontent.com/invinciblycool/lekh/master/images/screenshot.png)
  5. ## Features
  6. * Social media links
  7. * Markdown supported
  8. * Easy to personalize
  9. * RSS feed
  10. * Dark mode (taken from https://www.gwern.net/ as it is.)
  11. ## Installation
  12. cd into your hugo site's root directory and:
  13. ```sh
  14. cd themes
  15. git clone https://github.com/invinciblycool/lekh.git
  16. ```
  17. For more information read the [official setup guide](https://gohugo.io/overview/installing/) of Hugo.
  18. ## Personalization
  19. To personalize the theme
  20. `cp themes/lekh/.personalize.toml data/personalize.toml`
  21. And then customize accordingly.
  22. Or simply copy the below into a new file called `data/personalize.toml` and customize accordingly.
  23. ```toml
  24. Name = ""
  25. # Supports markdown
  26. About = ""
  27. Email = ""
  28. # Add the filename with file extension.
  29. Resume = ""
  30. # Sets the number of posts to display on the front page
  31. PostLimit = 4
  32. [[profiles]]
  33. name = "GitHub"
  34. url = ""
  35. [[profiles]]
  36. name = "Twitter"
  37. url = ""
  38. [[profiles]]
  39. name = "Goodreads"
  40. url = ""
  41. [[profiles]]
  42. name = "LinkedIn"
  43. url = ""
  44. ```
  45. ## Posts
  46. Below is a typical post, which defaults to what Hugo expects.
  47. Specify `draft: true` to avoid publishing the post.
  48. ```md
  49. ---
  50. title: "Rant post"
  51. date: "2020-04-02"
  52. draft: true
  53. ---
  54. Too much to rant :(
  55. ```
  56. ## Credits
  57. * Thanks to [Vegard's](https://github.com/vegarsti) personal site from which the theme was heavily inspired.
  58. * Also to https://www.gwern.net/ for the dark mode.
  59. Feel free to contribute and open issues.