Muutke küpsiste eelistusi

Build Websites with Hugo: Fast Web Development with Markdown [Pehme köide]

  • Formaat: Paperback / softback, 140 pages, kõrgus x laius x paksus: 234x190x9 mm, kaal: 328 g
  • Ilmumisaeg: 23-Jul-2020
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1680507265
  • ISBN-13: 9781680507263
  • Formaat: Paperback / softback, 140 pages, kõrgus x laius x paksus: 234x190x9 mm, kaal: 328 g
  • Ilmumisaeg: 23-Jul-2020
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1680507265
  • ISBN-13: 9781680507263

Rediscover how fun web development can be with Hugo, the static site generator and web framework that lets you build content sites quickly using the skills you already have. Design layouts with HTML and share common components across pages. Create Markdown templates that let you create new content quickly. Consume and generate JSON, enhance layouts with logic, and generate a site that works on any platform with no runtime dependencies or database. Hugo gives you everything you need to build your next content site and have fun doing it.

Database-driven sites bring complexity you might not need, but building a site by hand is too much work. Hugo is a static site generator and web development framework that creates content sites quickly without the overhead or dependencies of a dyanmic web framework. With Hugo, you use HTML templates and Markdown to build static sites you can host anywhere, letting you use the skills you already have.

Develop your own theme using standard HTML and CSS, using Hugo's powerful templating features to organize your site's components. Create your site's content with HTML or Markdown and use Hugo's content templating features to build new content quickly. Build a fully-featured blog with archive pages, tagging, and pagination, and integrate an external commenting system to provide interactivity. Use data from front-matter, site-wide configuration, and external JSON sources to add content, and generate JSON others can use. Integrate JavaScript with your site to create a search engine. Get Hugo working with Webpack so you can leverage the wider web development ecosystem, and explore ways to publish your site to various services. Finally, learn how you can move your existing content site to Hugo.

Dive in and build your next site with Hugo!

Acknowledgments ix
Preface xi
1 Kicking the Tires
1(14)
Installing Hugo
1(2)
Creating Your Site
3(1)
Building the Home Page
4(4)
Creating Content Using Archetypes
8(3)
Building and Exploring Hugo's Output
11(1)
Your Turn
12(1)
Wrapping Up
13(2)
2 Building a Basic Theme
15(10)
Generating the Theme
16(1)
Using Content Blocks and Partials
17(4)
Styling the Theme with CSS
21(3)
Your Turn
24(1)
Wrapping Up
24(1)
3 Adding Content Sections
25(10)
Creating a Project Archetype
25(2)
Creating the List Layout
27(2)
Creating More Specific Layouts
29(2)
Adding Content to List Pages
31(1)
Customizing the Project List
32(1)
Your Turn
33(1)
Wrapping Up
33(2)
4 Working with Data
35(20)
Using Site Configuration Data in Your Theme
35(1)
Populating Page Content Using Data in Front Matter
36(4)
Conditionally Displaying Data
40(2)
Using Local Data Files
42(2)
Pulling Data from Remote Sources
44(4)
Syndicating Content with RSS
48(2)
Rendering Content as JSON
50(2)
Your Turn
52(1)
Wrapping Up
53(2)
5 Adding a Blog
55(24)
Creating the Post's Layout
56(2)
Organizing Content with Taxonomies
58(4)
Customizing the URL for Posts
62(3)
Customizing Blog List Pages
65(3)
Adding Pagination
68(3)
Adding Comments to Posts Using Disqus
71(4)
Displaying Related Content
75(3)
Your Turn
78(1)
Wrapping Up
78(1)
6 Adding Search to Your Site
79(12)
Creating the Document Collection
80(2)
Creating the Search Interface
82(4)
Improving the Search
86(2)
Your Turn
88(1)
Wrapping Up
89(2)
7 Managing Assets with Pipes
91(18)
Managing Stylesheets
92(3)
Managing Images
95(6)
Bundling JavaScript Files
101(1)
Using Webpack and npm with Hugo
102(5)
Your Turn
107(1)
Wrapping Up
107(2)
8 Deploying the Site
109(14)
Deploying to Netlify
110(4)
Deploying to Cloud Storage with Hugo
114(4)
Deploying to a Traditional Web Server
118(3)
Your Turn
121(1)
Wrapping Up
121(2)
A1 Migrating to Hugo
123(8)
Understanding What You Have
123(1)
Transferring the Content
124(5)
Replicating the Theme
129(1)
Making the Switch
130(1)
Wrapping Up
130(1)
Bibliography 131
Brian P. Hogan is a web developer, editor, and author of technical books, including "Small, Sharp Software Tools," "Exercises for Programmers," and "tmux: Productive Mouse-Free Development." When he's not working, he's hacking on code, composing music, or spending time with family and friends.