fork download
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title><data:blog.pageTitle/></title>
  7. <b:include data="blog" name="all-head-content"/>
  8.  
  9. <link rel="stylesheet" href="https://f...content-available-to-author-only...s.com/css?family=Poppins:400,600&amp;display=swap" />
  10.  
  11. <b:skin>
  12. <![CDATA[
  13. /* Global reset */
  14. * {
  15. margin: 0;
  16. padding: 0;
  17. box-sizing: border-box;
  18. }
  19.  
  20. html, body {
  21. height: 100%;
  22. width: 100%;
  23. font-family: 'Poppins', sans-serif;
  24. background-color: #f9f9f9;
  25. color: #333; /* Default text color */
  26. display: flex;
  27. flex-direction: column;
  28. padding: 0;
  29. margin: 0;
  30. }
  31.  
  32. /* Header and navigation styling */
  33. background-color: #0056b3;
  34. color: #fff;
  35. padding: 20px 0;
  36. text-align: center;
  37. }
  38.  
  39. nav {
  40. background-color: #003366;
  41. padding: 10px 0;
  42. text-align: center;
  43. }
  44.  
  45. nav a {
  46. text-decoration: none;
  47. margin: 0 15px;
  48. color: #fff;
  49. }
  50.  
  51. nav a:hover {
  52. color: #ffd700;
  53. }
  54.  
  55. /* Main container styling */
  56. .main-container {
  57. display: flex;
  58. flex-direction: column;
  59. width: 100%;
  60. padding: 0;
  61. }
  62.  
  63. .content {
  64. width: 100%;
  65. padding: 20px;
  66. }
  67.  
  68. .post {
  69. background: #fff;
  70. padding: 20px;
  71. width: 100%;
  72. }
  73.  
  74. /* Post Title styling */
  75. .post h2 {
  76. color: #0056b3;
  77. font-size: 2rem;
  78. margin-bottom: 10px;
  79. }
  80.  
  81. /* Paragraph styling */
  82. .post-content p {
  83. color: #333 !important; /* Ensures paragraphs have default color (black) */
  84. line-height: 1.6;
  85. }
  86.  
  87. /* Link styling */
  88. .post-content a {
  89. color: #0056b3 !important; /* Link color is blue */
  90. text-decoration: none; /* Remove underline from links */
  91. }
  92.  
  93. /* Hover effect for links */
  94. .post-content a:hover {
  95. color: #ffd700 !important; /* Hover color (yellow) */
  96. text-decoration: underline !important; /* Underline on hover */
  97. }
  98.  
  99. footer {
  100. text-align: center;
  101. padding: 15px;
  102. background-color: #004494;
  103. color: #fff;
  104. }
  105.  
  106. footer a {
  107. color: #ffd700;
  108. text-decoration: none;
  109. }
  110.  
  111. footer a:hover {
  112. text-decoration: underline;
  113. }
  114.  
  115. /* Responsive design */
  116. @media (max-width: 1024px) {
  117. .content {
  118. padding: 10px;
  119. }
  120.  
  121. .post {
  122. padding: 15px;
  123. }
  124. }
  125.  
  126. @media (max-width: 768px) {
  127. header h1 {
  128. font-size: 2rem;
  129. }
  130.  
  131. nav a {
  132. font-size: 1rem;
  133. }
  134.  
  135. .content {
  136. width: 100%;
  137. padding: 5px;
  138. }
  139.  
  140. .post {
  141. padding: 15px;
  142. }
  143. }
  144.  
  145. @media (max-width: 480px) {
  146. header h1 {
  147. font-size: 1.5rem;
  148. }
  149.  
  150. nav a {
  151. font-size: 0.9rem;
  152. }
  153.  
  154. .content {
  155. padding: 5px;
  156. width: 100%;
  157. }
  158.  
  159. .post {
  160. padding: 15px;
  161. }
  162. }
  163. ]]>
  164. </b:skin>
  165. </head>
  166. <body>
  167. <header>
  168. <h1><data:blog.title/></h1>
  169. </header>
  170.  
  171. <nav>
  172. <a href="/">Home</a>
  173. <a href="/about">About</a>
  174. <a href="/contact">Contact</a>
  175. </nav>
  176.  
  177. <div class="main-container">
  178. <div class="content">
  179. <b:section class="posts" id="main" maxposts="1" name="Main Posts">
  180. <b:widget id="Blog1" locked="false" title="Blog Post" type="Blog"/>
  181. </b:section>
  182.  
  183. <div class="post">
  184. <h2 class="post-title"><data:post.title/></h2>
  185. <div class="post-content">
  186. <data:post.body/>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191.  
  192. <footer>
  193. <p>&amp;copy; <data:blog.year/> <data:blog.title/>. Designed by <a href="#">Your Name</a>.</p>
  194. </footer>
  195. </body>
  196. </html>
  197.  
Success #stdin #stdout 0.03s 25320KB
stdin
Standard input is empty
stdout
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><data:blog.pageTitle/></title>
    <b:include data="blog" name="all-head-content"/>
    
    <link rel="stylesheet" href="https://f...content-available-to-author-only...s.com/css?family=Poppins:400,600&amp;display=swap" />

    <b:skin>
        <![CDATA[
        /* Global reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            width: 100%;
            font-family: 'Poppins', sans-serif;
            background-color: #f9f9f9;
            color: #333; /* Default text color */
            display: flex;
            flex-direction: column;
            padding: 0;
            margin: 0;
        }

        /* Header and navigation styling */
        header {
            background-color: #0056b3;
            color: #fff;
            padding: 20px 0;
            text-align: center;
        }

        nav {
            background-color: #003366;
            padding: 10px 0;
            text-align: center;
        }

        nav a {
            text-decoration: none;
            margin: 0 15px;
            color: #fff;
        }

        nav a:hover {
            color: #ffd700;
        }

        /* Main container styling */
        .main-container {
            display: flex;
            flex-direction: column;
            width: 100%;
            padding: 0;
        }

        .content {
            width: 100%;
            padding: 20px;
        }

        .post {
            background: #fff;
            padding: 20px;
            width: 100%;
        }

        /* Post Title styling */
        .post h2 {
            color: #0056b3;
            font-size: 2rem;
            margin-bottom: 10px;
        }

        /* Paragraph styling */
        .post-content p {
            color: #333 !important;  /* Ensures paragraphs have default color (black) */
            line-height: 1.6;
        }

        /* Link styling */
        .post-content a {
            color: #0056b3 !important;  /* Link color is blue */
            text-decoration: none;  /* Remove underline from links */
        }

        /* Hover effect for links */
        .post-content a:hover {
            color: #ffd700 !important;  /* Hover color (yellow) */
            text-decoration: underline !important; /* Underline on hover */
        }

        footer {
            text-align: center;
            padding: 15px;
            background-color: #004494;
            color: #fff;
        }

        footer a {
            color: #ffd700;
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }

        /* Responsive design */
        @media (max-width: 1024px) {
            .content {
                padding: 10px;
            }

            .post {
                padding: 15px;
            }
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 2rem;
            }

            nav a {
                font-size: 1rem;
            }

            .content {
                width: 100%;
                padding: 5px;
            }

            .post {
                padding: 15px;
            }
        }

        @media (max-width: 480px) {
            header h1 {
                font-size: 1.5rem;
            }

            nav a {
                font-size: 0.9rem;
            }

            .content {
                padding: 5px;
                width: 100%;
            }

            .post {
                padding: 15px;
            }
        }
        ]]>
    </b:skin>
</head>
<body>
    <header>
        <h1><data:blog.title/></h1>
    </header>

    <nav>
        <a href="/">Home</a>
        <a href="/about">About</a>
        <a href="/contact">Contact</a>
    </nav>

    <div class="main-container">
        <div class="content">
            <b:section class="posts" id="main" maxposts="1" name="Main Posts">
                <b:widget id="Blog1" locked="false" title="Blog Post" type="Blog"/>
            </b:section>

            <div class="post">
                <h2 class="post-title"><data:post.title/></h2>
                <div class="post-content">
                    <data:post.body/>
                </div>
            </div>
        </div>
    </div>

    <footer>
        <p>&amp;copy; <data:blog.year/> <data:blog.title/>. Designed by <a href="#">Your Name</a>.</p>
    </footer>
</body>
</html>