index.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>{$maccms.site_name} - 网站地图</title>
  7. <style>
  8. body { font-family: Arial, sans-serif; line-height: 1.6; margin: 0; padding: 20px; background-color: #f4f4f4; color: #333; }
  9. .container { max-width: 960px; margin: auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
  10. h1, h2 { color: #0056b3; }
  11. h1 { text-align: center; border-bottom: 2px solid #eee; padding-bottom: 10px; }
  12. h2 { border-bottom: 1px solid #eee; padding-bottom: 5px; margin-top: 30px; }
  13. ul { list-style: none; padding: 0; }
  14. li { margin-bottom: 10px; }
  15. a { text-decoration: none; color: #007bff; }
  16. a:hover { text-decoration: underline; }
  17. .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
  18. </style>
  19. </head>
  20. <body>
  21. <div class="container">
  22. <h1>{$maccms.site_name} - 网站地图</h1>
  23. <h2><a href="{$maccms.path}">首页</a></h2>
  24. {maccms:type ids="parent" order="asc" by="sort" id="vo"}
  25. <h2><a href="{:mac_url_type($vo)}">{$vo.type_name}</a></h2>
  26. {if condition="!$vo.childids eq '' "}
  27. <ul class="grid">
  28. {maccms:type parent="'.$vo['type_id'].'" order="asc" by="sort" id="vo2"}
  29. <li><a href="{:mac_url_type($vo2)}">{$vo2.type_name}</a></li>
  30. {/maccms:type}
  31. </ul>
  32. {/if}
  33. {/maccms:type}
  34. <h2>最新内容</h2>
  35. <ul class="grid">
  36. {maccms:vod num="100" order="desc" by="time"}
  37. <li><a href="{:mac_url_vod_detail($vo)}">{$vo.vod_name}</a></li>
  38. {/maccms:vod}
  39. </ul>
  40. </div>
  41. </body>
  42. </html>