html - 为什么“无”出现在 Django cms 的导航栏和正文之间
问题描述
我在导航栏和正文之间没有任何东西,但是这个 None 出现了,我无法理解为什么。我正在共享我的主页模板出现的位置。检查导航栏和占位符滑块之间的代码。
{% load cms_tags menu_tags sekizai_tags static %} <!--load template libraries of Sekizai and CMS tag -->
{% load thumbnail %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}"> <!-- in case you want other languages -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content=""> {% page_attribute "meta_description" %} <!--should have description of pages-->
<meta name="author" content="">
<title>Smart Learn - {% page_attribute "page_title" %} </title> <!--In title page name should come first then website title -->
{% render_block "css" %} <!-- loading css here render_block comes with sekizai lib to allow templates to included-->
<!-- Bootstrap core CSS -->
{% addtoblock "css" %} <!--for sekizai tags -->
<link href="{% static "vendor/bootstrap/css/bootstrap.min.css" %}" rel="stylesheet">
{% endaddtoblock %}
<!-- Custom styles for this template -->
{% addtoblock "css" %}
<link href="{% static "css/smart-learn.css" %}" rel="stylesheet">
{% endaddtoblock %}
</head>
{% cms_toolbar %} <!-- from cms toobar -->
<body>
<!-- Navigation -->
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="/">Smart Learn</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
{% show_menu 0 100 100 100 %} <!-- for cms menu -->
<li class="nav-item">
<a class="#" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="#" href="services.html">Services</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- slider -->
{% block base_content %}
{% placeholder Slider %}
{% endblock %}
<!-- Page Content -->
解决方案
推荐阅读
- php - 是否可以使用 CodeIgniter 3.1.9 将时间戳转换为人类可读的日期(任何语言)
- vba - 从 Outlook.Recipients 获取别名地址
- c - Linux 文件操作测试程序未按预期运行
- json - Bash & cURL:从 Web API 中检索 JSON 并在其中搜索特定的键:值对
- excel - VBA删除多个工作表上同一单元格的部分内容
- android - 将屏幕分为SurfaceView和xml布局
- javascript - 使用 Javascript 或 Jquery 根据高/低值对表行着色
- c# - C# 示例中的异步和等待
- ios - 如何跟踪 collectionView(由 FetchedResultsController 支持)单元格
- linux - 制作:i686-linux-gnu-ld:找不到命令