book-theme 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/404.html +91 -0
- data/Gemfile +35 -0
- data/README.md +136 -0
- data/_books/Default-Book.md +20 -0
- data/_books/Test-Book-1.md +34 -0
- data/_books/Test-Book-2.md +31 -0
- data/_books/my-book.md +17 -0
- data/_books/the-great-gatsby.md +25 -0
- data/_config.yml +45 -0
- data/_includes/about-book.html +22 -0
- data/_includes/book-meta.html +35 -0
- data/_includes/footer-credit.html +4 -0
- data/_includes/footer.html +2 -0
- data/_includes/head.html +36 -0
- data/_includes/header-warning.html +13 -0
- data/_layouts/book-profile.html +133 -0
- data/_layouts/default.html +12 -0
- data/_layouts/home.html +4 -0
- data/_layouts/page.html +6 -0
- data/_layouts/post.html +8 -0
- data/_sass/_base.scss +13 -0
- data/_sass/_layout.scss +562 -0
- data/_sass/_variables.scss +7 -0
- data/assets/covers/gatsby.jpg +0 -0
- data/assets/css/main.scss +6 -0
- data/index.html +17 -0
- data/new-book.bat +160 -0
- metadata +132 -0
data/new-book.bat
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal enabledelayedexpansion
|
|
3
|
+
|
|
4
|
+
:: ========================================
|
|
5
|
+
:: NEW BOOK GENERATOR FOR JEKYLL
|
|
6
|
+
:: ========================================
|
|
7
|
+
echo.
|
|
8
|
+
echo ========================================
|
|
9
|
+
echo [New Book Profile Generator]
|
|
10
|
+
echo ========================================
|
|
11
|
+
echo.
|
|
12
|
+
|
|
13
|
+
:: --- Required Fields ---
|
|
14
|
+
set /p title=Enter book title (required):
|
|
15
|
+
if "!title!"=="" (
|
|
16
|
+
echo ERROR: Title is required!
|
|
17
|
+
exit /b 1
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
set /p author=Enter author name (required):
|
|
21
|
+
if "!author!"=="" (
|
|
22
|
+
echo ERROR: Author is required!
|
|
23
|
+
exit /b 1
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
set /p genre=Enter genre (required):
|
|
27
|
+
if "!genre!"=="" (
|
|
28
|
+
echo ERROR: Genre is required!
|
|
29
|
+
exit /b 1
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
:: --- Optional Fields with Defaults ---
|
|
33
|
+
echo.
|
|
34
|
+
echo [Optional - Press Enter to skip]
|
|
35
|
+
echo.
|
|
36
|
+
|
|
37
|
+
set /p subtitle=Subtitle:
|
|
38
|
+
set /p published=Published year:
|
|
39
|
+
set /p publisher=Publisher:
|
|
40
|
+
set /p pages=Page count:
|
|
41
|
+
set /p series=Series name (or Standalone):
|
|
42
|
+
if "!series!"=="" set "series=Standalone"
|
|
43
|
+
|
|
44
|
+
set /p status=Status [Completed/Reading/Wishlist] (default: Completed):
|
|
45
|
+
if "!status!"=="" set "status=Completed"
|
|
46
|
+
|
|
47
|
+
echo.
|
|
48
|
+
echo Traits (up to 3, comma-separated):
|
|
49
|
+
set /p traits_input=Example: Tragic, Symbolic, Elegant:
|
|
50
|
+
|
|
51
|
+
:: Parse traits into YAML array format (comma-separated, quoted)
|
|
52
|
+
set "traits_yaml="
|
|
53
|
+
if not "!traits_input!"=="" (
|
|
54
|
+
:: Replace commas with spaces for proper tokenization
|
|
55
|
+
set "traits_clean=!traits_input:,= !"
|
|
56
|
+
for %%a in (!traits_clean!) do (
|
|
57
|
+
set "trait=%%a"
|
|
58
|
+
:: Trim spaces
|
|
59
|
+
for /f "tokens=* delims= " %%b in ("!trait!") do set "trait=%%b"
|
|
60
|
+
if not "!trait!"=="" (
|
|
61
|
+
if not "!traits_yaml!"=="" set "traits_yaml=!traits_yaml!, "
|
|
62
|
+
:: Plain quotes, NO backslashes, comma separator
|
|
63
|
+
set "traits_yaml=!traits_yaml!"!trait!""
|
|
64
|
+
)
|
|
65
|
+
)
|
|
66
|
+
set "traits_yaml=[!traits_yaml!]"
|
|
67
|
+
) else (
|
|
68
|
+
:: Default empty traits
|
|
69
|
+
set "traits_yaml=["", "", ""]"
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
set /p cover_image=Cover image path (default: /assets/covers/placeholder.jpg):
|
|
73
|
+
if "!cover_image!"=="" set "cover_image=/assets/covers/placeholder.jpg"
|
|
74
|
+
|
|
75
|
+
set /p quote=Famous quote from the book:
|
|
76
|
+
set /p description=One-line description:
|
|
77
|
+
set /p buy_link=Buy link (Amazon, etc.):
|
|
78
|
+
set /p content_warning=Content warning (if any):
|
|
79
|
+
set /p about_title=About section title (default: ABOUT THIS BOOK):
|
|
80
|
+
if "!about_title!"=="" set "about_title=ABOUT THIS BOOK"
|
|
81
|
+
set /p about_text=About section text:
|
|
82
|
+
|
|
83
|
+
set /p wip=Work in progress? [y/n] (default: n):
|
|
84
|
+
if /i "!wip!"=="y" (
|
|
85
|
+
set "work_in_progress=true"
|
|
86
|
+
) else (
|
|
87
|
+
set "work_in_progress=false"
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
:: --- Generate Safe Filename ---
|
|
91
|
+
set "filename=!title!"
|
|
92
|
+
set "filename=!filename: =-!"
|
|
93
|
+
set "filename=!filename:"=!"
|
|
94
|
+
set "filename=!filename:/=-!"
|
|
95
|
+
set "filename=!filename:<=-!"
|
|
96
|
+
set "filename=!filename:>=-!"
|
|
97
|
+
set "filename=!filename::=-!"
|
|
98
|
+
set "filename=_books/!filename!.md"
|
|
99
|
+
|
|
100
|
+
:: --- Write the File ---
|
|
101
|
+
(
|
|
102
|
+
echo ---
|
|
103
|
+
echo title: "!title!"
|
|
104
|
+
if not "!subtitle!"=="" echo subtitle: "!subtitle!"
|
|
105
|
+
echo author: "!author!"
|
|
106
|
+
if not "!published!"=="" echo published: "!published!"
|
|
107
|
+
if not "!publisher!"=="" echo publisher: "!publisher!"
|
|
108
|
+
echo genre: "!genre!"
|
|
109
|
+
if not "!series!"=="" echo series: "!series!"
|
|
110
|
+
if not "!pages!"=="" echo pages: "!pages!"
|
|
111
|
+
echo status: "!status!"
|
|
112
|
+
echo traits: !traits_yaml!
|
|
113
|
+
echo cover_image: "!cover_image!"
|
|
114
|
+
if not "!quote!"=="" echo quote: "!quote!"
|
|
115
|
+
if not "!description!"=="" echo description: "!description!"
|
|
116
|
+
if not "!buy_link!"=="" echo buy_link: "!buy_link!"
|
|
117
|
+
if not "!content_warning!"=="" echo content_warning: "!content_warning!"
|
|
118
|
+
echo about_title: "!about_title!"
|
|
119
|
+
if not "!about_text!"=="" echo about_text: "!about_text!"
|
|
120
|
+
echo work_in_progress: !work_in_progress!
|
|
121
|
+
echo ---
|
|
122
|
+
echo.
|
|
123
|
+
echo ## Introduction
|
|
124
|
+
echo.
|
|
125
|
+
echo *Write your book review, analysis, or synopsis here. This content will appear in the scrollable box on the right side of the page.*
|
|
126
|
+
echo.
|
|
127
|
+
echo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
128
|
+
echo.
|
|
129
|
+
echo ### Key Themes
|
|
130
|
+
echo.
|
|
131
|
+
echo - Theme one
|
|
132
|
+
echo - Theme two
|
|
133
|
+
echo - Theme three
|
|
134
|
+
echo.
|
|
135
|
+
echo ### Final Thoughts
|
|
136
|
+
echo.
|
|
137
|
+
echo Your concluding thoughts about the book...
|
|
138
|
+
) > "!filename!"
|
|
139
|
+
|
|
140
|
+
:: --- Success Message ---
|
|
141
|
+
echo.
|
|
142
|
+
echo ========================================
|
|
143
|
+
echo [✓ Book Profile Created!]
|
|
144
|
+
echo ========================================
|
|
145
|
+
echo.
|
|
146
|
+
echo File: !filename!
|
|
147
|
+
echo.
|
|
148
|
+
echo Next steps:
|
|
149
|
+
echo 1. Add your cover image to /assets/covers/
|
|
150
|
+
echo 2. Edit the file to refine content if needed
|
|
151
|
+
echo 3. Run: bundle exec jekyll build
|
|
152
|
+
echo 4. Upload _site/ contents to Nixihost via FTP
|
|
153
|
+
echo.
|
|
154
|
+
|
|
155
|
+
:: --- Open File in Default Editor ---
|
|
156
|
+
start "" "!filename!"
|
|
157
|
+
|
|
158
|
+
echo.
|
|
159
|
+
echo Opening file in default editor...
|
|
160
|
+
pause
|
metadata
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: book-theme
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- dar
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: jekyll
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '4.3'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '4.3'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: jekyll-sass-converter
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '3.0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '3.0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: bundler
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '2.0'
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '2.0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: rake
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '13.0'
|
|
61
|
+
type: :development
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '13.0'
|
|
68
|
+
description: |2
|
|
69
|
+
Book Theme is a beautifully crafted Jekyll theme for creating book profile pages.
|
|
70
|
+
Inspired by the original Paperback HTML design by Starcorex, it features a decorative
|
|
71
|
+
card layout with ornamental corners, alternating metadata sections, scrollable content
|
|
72
|
+
areas with drop caps, horizontal-scrolling related book links, and responsive design.
|
|
73
|
+
Perfect for book reviewers, libraries, and literary blogs.
|
|
74
|
+
email:
|
|
75
|
+
- darbookspub@gmail.com
|
|
76
|
+
executables: []
|
|
77
|
+
extensions: []
|
|
78
|
+
extra_rdoc_files: []
|
|
79
|
+
files:
|
|
80
|
+
- 404.html
|
|
81
|
+
- Gemfile
|
|
82
|
+
- README.md
|
|
83
|
+
- _books/Default-Book.md
|
|
84
|
+
- _books/Test-Book-1.md
|
|
85
|
+
- _books/Test-Book-2.md
|
|
86
|
+
- _books/my-book.md
|
|
87
|
+
- _books/the-great-gatsby.md
|
|
88
|
+
- _config.yml
|
|
89
|
+
- _includes/about-book.html
|
|
90
|
+
- _includes/book-meta.html
|
|
91
|
+
- _includes/footer-credit.html
|
|
92
|
+
- _includes/footer.html
|
|
93
|
+
- _includes/head.html
|
|
94
|
+
- _includes/header-warning.html
|
|
95
|
+
- _layouts/book-profile.html
|
|
96
|
+
- _layouts/default.html
|
|
97
|
+
- _layouts/home.html
|
|
98
|
+
- _layouts/page.html
|
|
99
|
+
- _layouts/post.html
|
|
100
|
+
- _sass/_base.scss
|
|
101
|
+
- _sass/_layout.scss
|
|
102
|
+
- _sass/_variables.scss
|
|
103
|
+
- assets/covers/gatsby.jpg
|
|
104
|
+
- assets/css/main.scss
|
|
105
|
+
- index.html
|
|
106
|
+
- new-book.bat
|
|
107
|
+
homepage: https://github.com/breakthebull/book-theme
|
|
108
|
+
licenses:
|
|
109
|
+
- MIT
|
|
110
|
+
metadata:
|
|
111
|
+
bug_tracker_uri: https://github.com/breakthebull/book-theme/issues
|
|
112
|
+
source_code_uri: https://github.com/breakthebull/book-theme
|
|
113
|
+
changelog_uri: https://github.com/breakthebull/book-theme/releases
|
|
114
|
+
rubygems_mfa_required: 'true'
|
|
115
|
+
rdoc_options: []
|
|
116
|
+
require_paths:
|
|
117
|
+
- lib
|
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - ">="
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: '0'
|
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
|
+
requirements:
|
|
125
|
+
- - ">="
|
|
126
|
+
- !ruby/object:Gem::Version
|
|
127
|
+
version: '0'
|
|
128
|
+
requirements: []
|
|
129
|
+
rubygems_version: 4.0.8
|
|
130
|
+
specification_version: 4
|
|
131
|
+
summary: A vintage-inspired book library theme for Jekyll
|
|
132
|
+
test_files: []
|