  <nav class="navbar navbar-expand-lg bg-body-secondary">
      <div class="container-fluid">
        <a class="navbar-brand" href="{% url 'anasayfa' %}">Kampus Blog</a>
        <button
          class="navbar-toggler"
          type="button"
          data-bs-toggle="collapse"
          data-bs-target="#navbarSupportedContent"
          aria-controls="navbarSupportedContent"
          aria-expanded="false"
          aria-label="Toggle navigation"
        >
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
          <ul class="navbar-nav me-auto mb-2 mb-lg-0">
            <li class="nav-item"><a class="nav-link {% if request.resolver_match.url_name == 'anasayfa' %}active{% endif %}" aria-current="page" href="{% url 'anasayfa' %}">Ana Sayfa</a></li>
            <li class="nav-item"><a class="nav-link {% if request.resolver_match.url_name == 'iletisim' %}active{% endif %}" href="{% url 'iletisim' %}">İletişim</a></li>
            <li class="nav-item "><a class="nav-link {% if request.resolver_match.url_name == 'hakkimizda' %}active{% endif %}" href="{% url 'hakkimizda' %}">Hakkımızda</a></li>
            <li class="nav-item "><a class="nav-link {% if request.resolver_match.url_name == 'yazarlar' %}active{% endif %}" href="{% url 'yazarlar' %}">Yazarlar</a></li>

            <li class="nav-item dropdown">
              <a
                class="nav-link dropdown-toggle {% if request.resolver_match.namespace == 'blog' %}active{% endif %}"
                href="#"
                role="button"
                data-bs-toggle="dropdown"
                aria-expanded="false"
              >
                Blog
              </a>
              <ul class="dropdown-menu">
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'blog_anasayfa' %}active{% endif %}" href="{% url 'blog:blog_anasayfa' %}">Bloglar</a></li>
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'blog_ekle' %}active{% endif %}" href="{% url 'blog:blog_ekle' %}">Yeni Blog Ekle</a></li>
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'blog_duzenle' %}active{% endif %}" href="{% url 'blog:blog_duzenle' %}">Blog Düzenle</a></li>
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'blog_sil' %}active{% endif %}" href="{% url 'blog:blog_sil' %}">Blog Sil</a></li>
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'blog_detay' %}active{% endif %}" href="{% url 'blog:blog_detay' %}">Blog Detay</a></li>
  
           
              </ul>
            </li> 
               <li class="nav-item dropdown">
              <a
                class="nav-link dropdown-toggle {% if request.resolver_match.namespace == 'kullanici' %}active{% endif %}"
                href="#"
                role="button"
                data-bs-toggle="dropdown"
                aria-expanded="false"
              >
                Kullanıcı
              </a>
              <ul class="dropdown-menu">
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'kullanici_giris' %}active{% endif %}" href="{% url 'kullanici:kullanici_giris' %}">Kullanıcı Girişi</a></li>
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'kullanici_kayit' %}active{% endif %}" href="{% url 'kullanici:kullanici_kayit' %}">Kullanıcı Kayıt</a></li>
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'kullanici_profil' %}active{% endif %}" href="{% url 'kullanici:kullanici_profil' %}">Kullanıcı Profil</a></li>
                <li><a class="dropdown-item {% if request.resolver_match.url_name == 'kullanici_cikis' %}active{% endif %}" href="{% url 'kullanici:kullanici_cikis' %}">Kullanıcı Çıkış</a></li>
  
           
              </ul>
            </li> 
          </ul>
          <form class="d-flex" role="search">
            <input
              class="form-control me-2"
              type="search"
              placeholder="yazı ara..."
              aria-label="Search"
            />
            <button class="btn btn-outline-success" type="submit">
              Ara
            </button>
          </form>
        </div>
      </div>
    </nav>