[Change] prepare to use hugo module

This commit is contained in:
tiennm99 committed 2024-05-12 12:29:51 +07:00
1 parent ef3ada31dd
commit bbf42b9eca
9 files changed
+124 -144

No files matched your search

+10 -1
View File
@@ -1 +1,10 @@
.idea
.idea/
# Generated files by hugo
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json
# Temporary lock file while building
/.hugo_build.lock
-3
View File
@@ -1,3 +0,0 @@
[submodule "themes/restaurant-hugo"]
path = themes/restaurant-hugo
url = https://github.com/gethugothemes/restaurant-hugo.git
View File
Whitespace-only changes.
-5
View File
@@ -1,7 +1,2 @@
# Ốc Rốt
Website mừng bạn Thân trở thành ông chủ quán ăn Ốc Rốt
## TODO
- [ ] Chuyển config.toml thành có thể config được qua Netlify CMS
- [ ] Chuyển từ git submodule sang hugo module
-6
View File
@@ -1,6 +0,0 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---
+114
View File
@@ -0,0 +1,114 @@
baseURL: /
languageCode: vi-vn
title: Ốc Rốt
module:
imports:
- path: github.com/themefisher/restaurant-hugo
summaryLength: 10
paginate: 4
markup:
goldmark:
renderer:
unsafe: true
menu:
main:
- name: Trang chủ
url: hero-area
weight: 1
- name: Về chúng tôi
url: about-us
weight: 2
- name: Blog
url: blog
weight: 3
- name: Menu
url: price
weight: 4
- name: Theo dõi
url: subscribe
weight: 5
- name: Liên hệ
url: contact-us
weight: 6
#################### default parameters ################################
params:
logo: images/logo.png
# meta data
author: MiTi99
description: Just a developer want to become magician
# google analitycs ID
google_analitycs_id: G-BETBKBFEGN
# mainSections
main_sections:
- post
# copyright
copyright: Made by [MiTi99](https://miti99.eu.org) with ❤
# Preloader
preloader:
enable: false
preloader: "" # use .png , .svg or .gif format
################################### Footer ############################
footer:
enable: true
contactInfoTitle: "Thông tin <span>Liên hệ</span> "
blogTitle: "Tin <span>mới nhất</span>"
galleryTitle: "Thư viện <span>ảnh</span>"
socialTitle: "Theo dõi <span>Ốc Rốt</span>"
############################ footer contact item
contactItem:
- title: Điện thoại
icon: fa fa-phone
content: 090900khôngcó
- title: Địa chỉ
icon: fa fa-map-marker
content: "ĐT9 - Mỹ Hạnh Nam - Đức Hoà - Long An <br> (đối diện tạp hoá Anh Tài)"
- title: Giờ mở cửa
icon: fa fa-clock-o
content: "T2 - T7: 17:00 - 22:00 <br> CN: 17:00 - 21:00"
- title: Email
icon: fa fa-envelope
content: ocrot@gmail.com
######################### footer gallery
gallery:
- image: images/slider-img-1.jpg
- image: images/slider-img-2.jpg
- image: images/slider-img-3.jpg
- image: images/slider-img-4.jpg
- image: images/slider-img-1.jpg
- image: images/slider-img-2.jpg
######################## Social Icon
socialLink:
- icon: facebook
link: https://fb.com/hoangthan1999
- icon: facebook
link: https://fb.com/104600149239783
- icon: instagram
link: https://fb.com/ocrot
plugins:
css:
- URL: css/bootstrap.min.css
- URL: css/slick.css
- URL: css/font-awesome.min.css
- URL: css/animate.min.css
- URL: css/venobox.css
- URL: css/main.css
- URL: css/responsive.css
# JS Plugins
js:
- URL: js/jquery.min.js
- URL: js/bootstrap.min.js
- URL: js/slick.min.js
- URL: js/wow.min.js
- URL: js/venobox.min.js
- URL: js/main.js
-16
View File
@@ -1,16 +0,0 @@
[build]
publish = "public"
command = "hugo --minify --gc"
[build.environment]
HUGO_VERSION = "0.87.0"
HUGO_BASEURL = "/"
[[headers]]
for = "/*" # This defines which paths this specific [[headers]] block will cover.
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "same-origin"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
-100
View File
@@ -1,100 +0,0 @@
backend:
name: "git-gateway"
# name: "test-repo"
branch: "main"
#publish_mode: editorial_workflow
media_folder: "static/images"
public_folder: "images"
collections:
- name: "post"
label: "Post"
folder: "content/post"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Date", name: "date", widget: "datetime" }
- { label: "Image", name: "image", widget: "image", required: false }
- { label: "Description", name: "description", widget: "text" }
- { label: "Type", name: "type", widget: "select",options: [ "post" ], default: "post" }
- { label: "Body", name: "body", widget: "markdown" }
- name: "settings"
label: "Settings"
extension: "yml"
editor:
preview: false
files:
- file: "data/homepage.yml"
label: "Homepage"
name: "homepage"
fields:
- label: "Hero Area"
name: "hero_area"
widget: "object"
fields:
- { label: "Enable", name: "enable", widget: "boolean", default: true }
- { label: "Background Image", name: "bg_image", widget: "image" }
- { label: "Overlay", name: "overlay", widget: "boolean", default: true }
- label: "Gallery"
name: "gallery"
widget: "object"
fields:
- { label: "Enable", name: "enable", widget: "boolean", default: true }
- { label: "Title", name: "title", widget: "string" }
- label: "Images"
name: "images"
widget: "list"
field: { label: "Image", name: "image", widget: "image" }
- label: "About"
name: "about"
widget: "object"
fields:
- { label: "Enable", name: "enable", widget: "boolean", default: true }
- { label: "Image", name: "image", widget: "image" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "text" }
- label: "Blog"
name: "blog"
widget: "object"
fields:
- { label: "Enable", name: "enable", widget: "boolean", default: true }
- { label: "Title", name: "title", widget: "string" }
- { label: "Background Image", name: "bg_image", widget: "image" }
- { label: "Overlay", name: "overlay", widget: "boolean", default: true }
- label: "Pricing"
name: "pricing"
widget: "object"
fields:
- { label: "Enable", name: "enable", widget: "boolean", default: true }
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "text" }
- { label: "Subtitle", name: "subtitle", widget: "string" }
- label: "Pricing Item"
name: "pricing_item"
widget: "list"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "text" }
- { label: "Price", name: "price", widget: "string" }
- label: "Subscription"
name: "subscription"
widget: "object"
fields:
- { label: "Enable", name: "enable", widget: "boolean", default: true }
- { label: "Background Image", name: "bg_image", widget: "image" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "text" }
- { label: "Form Action", name: "form_action", widget: "string", default: "#" }
- { label: "Form Name", name: "formName", widget: "string", default: "#" }
- { label: "Overlay", name: "overlay", widget: "boolean", default: true }
- label: "Contact"
name: "contact"
widget: "object"
fields:
- { label: "Enable", name: "enable", widget: "boolean", default: true }
- { label: "Title", name: "title", widget: "string" }
- { label: "Subtitle", name: "subtitle", widget: "string" }
- { label: "Form Action", name: "form_action", widget: "string", default: "#" }
-13
View File
@@ -1,13 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Content Manager</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</body>
</html>