main.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <html lang="en-us">
  2. <head>
  3. <meta charset="utf-8" />
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  5. <title>[[book_title]]</title>
  6. <style>
  7. p {
  8. text-indent: 2em;
  9. line-height: 1.7em;
  10. }
  11. .sentence>p{
  12. display: inline;
  13. }
  14. a {
  15. text-decoration: none;
  16. }
  17. .paragraph {
  18. margin-bottom: 1em;
  19. }
  20. .row {
  21. display: flex;
  22. }
  23. @media screen and (max-width: 960px){
  24. .row {
  25. flex-direction: column;
  26. }
  27. }
  28. .col {
  29. flex: 5;
  30. }
  31. code {
  32. background-color: #ffe4c478;
  33. padding: 2px 6px;
  34. border-radius: 4px;
  35. }
  36. .origin {
  37. font-family: times;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <h1>[[book_title]]</h1>
  43. <h2>目录</h2>
  44. <ul>
  45. [[#sections]]
  46. <li><a href="#[[filename]]">[[filename]]</a></li>
  47. [[/sections]]
  48. </ul>