【发布时间】:2020-12-17 17:02:53
【问题描述】:
如果我有 index.html 并且它包含许多插件,例如搜索框、帖子、评论部分等......我只想使用 页脚部分 并使用标签和过滤器将其添加到我的所有 html 页面中,以便将来在所有 html 页面中轻松编辑它,我可以这样做吗?
这是我在 index.html 中的页脚代码:
<footer style="margin:auto" class="py-5 bg-dark h-50 d-inline-block w-100 p-3">
<div class="container">
<div class="text-center mt-4">
<a href="/Privacy_Policy" style="margin:5px;width:140px" role="presentation" type="button" class="btn btn-secondary btn-lg">Privcy Policy</a>
<a href="/request_apps/" style="margin:5px;width:140px" role="presentation" type="button" class="btn btn-secondary btn-lg">Request apps</a>
<a href="/our_Mission" style="margin:5px;width:140px" role="presentation" type="button" class="btn btn-secondary btn-lg">Our Mission</a>
<a href="/Contact_US" style="margin:5px;width:140px" role="presentation" type="button" class="btn btn-secondary btn-lg">Contact us</a>
<a href="/About_Me" style="margin:5px;width:140px" role="presentation" type="button" class="btn btn-secondary btn-lg">About us</a>
</div>
<!-- copyright -->
<p style="font-family:monospace;font-size:18px" class="m-0 text-center text-white" >Copyright 2019-2020 SoftDLR.com All Rights Reserved. </p>
</div>
<!-- /.container -->
【问题讨论】:
-
您是否使用为其他视图扩展的基本 HTML 模板?
-
不,我不@Ryan
-
这就是你所需要的。 @João Haas 的回答告诉你怎么做。
-
感谢您的宝贵时间
标签: html django django-rest-framework django-templates