diff options
Diffstat (limited to 'examples/with-markdown-plugins/src/layouts/main.astro')
-rw-r--r-- | examples/with-markdown-plugins/src/layouts/main.astro | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/with-markdown-plugins/src/layouts/main.astro b/examples/with-markdown-plugins/src/layouts/main.astro new file mode 100644 index 000000000..d324d2017 --- /dev/null +++ b/examples/with-markdown-plugins/src/layouts/main.astro @@ -0,0 +1,32 @@ +--- +const { content } = Astro.props; +--- + +<html> + <head> + <meta charset="utf-8" /> + <title>{content.title}</title> + <link rel="stylesheet" href="/global.css" /> + <style> + .nav { + border-bottom: 1px solid #ccc; + margin-bottom: 40px; + padding-bottom: 20px; + } + .nav > * + * { + margin-left: 10px; + } + </style> + </head> + <body> + <main class="content"> + <header> + <nav class="nav"> + <a href="/">Home</a> + <a href="/about">About</a> + </nav> + </header> + <slot /> + </main> + </body> +</html> |