Add dynamic content about you
هذا المحتوى غير متوفر بلغتك بعد.
Now that you have a multi-page website with HTML content, it’s time to add some dynamic HTML!
استعد لـ…
- Define your page title in frontmatter, and use it in your HTML
- Conditionally display HTML elements
- Add some content about you
Any HTML file is valid Astro language. But, you can do more with Astro than just regular HTML!
Define and use a variable
Section titled Define and use a variableOpen about.astro
, which should look like this:
------<html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>Astro</title> </head> <body> <a href="/">Home</a> <a href="/about/">About</a> <a href="/blog/">Blog</a> <h1>About Me</h1> <h2>... and my new Astro site!</h2>
<p>I am working through Astro's introductory tutorial. This is the second page on my website, and it's the first one I built myself!</p>
<p>This site will update as I complete more of the tutorial, so keep checking back and see how my journey is going!</p> </body></html>