Skip to content

Instantly share code, notes, and snippets.

@kholidfu
Created September 23, 2023 11:45
Show Gist options
  • Save kholidfu/c94cd56c333c94b600a8423be14a38f6 to your computer and use it in GitHub Desktop.
Save kholidfu/c94cd56c333c94b600a8423be14a38f6 to your computer and use it in GitHub Desktop.
membuat template blogger dengan chatgpt
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Judul Blog Anda</title>
<!-- Tambahkan link Bootstrap CSS di sini -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
/* Kustomisasi CSS tambahan jika diperlukan */
body {
background-color: #f0f0f0;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Nama Blog Anda</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavRight" aria-controls="navbarNavRight" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Elemen-elemen sebelah kanan -->
<div class="collapse navbar-collapse" id="navbarNavRight">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#">Beranda <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Kategori 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Kategori 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Kontak</a>
</li>
</ul>
</div>
</nav>
<div class="container mt-4">
<div class="row">
<div class="col-md-8">
<div class="card mb-4">
<img src="https://via.placeholder.com/500x300" class="card-img-top" alt="Gambar Posting">
<div class="card-body">
<h5 class="card-title">Judul Posting Pertama</h5>
<p class="card-text">Isi dari posting pertama Anda.</p>
</div>
</div>
<div class="card mb-4">
<img src="https://via.placeholder.com/500x300" class="card-img-top" alt="Gambar Posting">
<div class="card-body">
<h5 class="card-title">Judul Posting Kedua</h5>
<p class="card-text">Isi dari posting kedua Anda.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mb-4">
<div class="card-body">
<h5 class="card-title">Sidebar</h5>
<p class="card-text">Isi sidebar Anda.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Tambahkan link Bootstrap JavaScript di sini jika diperlukan -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment