Browse Source

Update hugo-academic

Xi Ruoyao 6 years ago
parent
commit
ad3dee5bd7

+ 1 - 1
config.toml

@@ -22,7 +22,7 @@ defaultContentLanguageInSubdir = false
 enableGitInfo = true
 
 [outputs]
-  home = [ "HTML", "CSS", "RSS", "JSON" ]
+  home = [ "HTML", "RSS", "JSON" ]
   section = [ "HTML", "RSS" ]
 
 # Configure BlackFriday Markdown rendering.

+ 0 - 0
content/author/xry111/_index.md → content/authors/xry111/_index.md


+ 0 - 0
content/author/xry111/avatar.jpg → content/authors/xry111/avatar.jpg


+ 0 - 1
content/home/about.md

@@ -2,7 +2,6 @@
 # About/Biography widget.
 widget = "about"
 active = true
-date = "2016-04-20T00:00:00"
 
 # Order that this section will appear in.
 weight = 5

+ 0 - 1
content/home/contact.md

@@ -2,7 +2,6 @@
 # Contact widget.
 widget = "contact"
 active = true
-date = "2016-04-20T00:00:00"
 
 title = "Contact"
 subtitle = ""

+ 27 - 0
content/home/featured_publications.md

@@ -0,0 +1,27 @@
++++
+# Selected Publications widget.
+# This widget displays publications from `content/publication/` which have
+# `selected = true` in their `+++` front matter.
+widget = "featured"
+active = true
+headless = true
+
+title = "Featured Publications"
+subtitle = ""
+
+# Order that this section will appear in.
+weight = 10
+
+[content]
+  page_type = "publication"
+  count = 0
+  order = "desc"
+
+  [content.filters]
+    tag = ""
+    category = ""
+    publication_type = ""
+
+[design]
+  view = 3
++++

+ 14 - 10
content/home/posts.md

@@ -1,9 +1,9 @@
 +++
 # Recent Posts widget.
 # This widget displays recent posts from `content/post/`.
-widget = "posts"
+widget = "pages"
+headless = true
 active = true
-date = "2016-04-20T00:00:00"
 
 title = "Recent Posts"
 subtitle = ""
@@ -11,14 +11,18 @@ subtitle = ""
 # Order that this section will appear in.
 weight = 40
 
-# Filter posts by tag.
-#  By default, show all recent posts.
-#  Filtering example: `tags_include = ["hugo", "academic"]`
-tags_include = []
-tags_exclude = []
+[content]
+  page_type = "post"
+  count = 5
+  offset = 0
+  order = "desc"
 
-# Number of posts to list.
-count = 5
+  [content.filters]
+    tag = ""
+    category = ""
+    publication_type = ""
+    exclude_featured = false
 
+[design]
+  view = 2
 +++
-

+ 0 - 1
content/home/projects.md

@@ -3,7 +3,6 @@
 # This widget displays all projects from `content/project/`.
 widget = "projects"
 active = true
-date = "2016-04-20T00:00:00"
 
 title = "Projects"
 subtitle = ""

+ 14 - 24
content/home/publications.md

@@ -1,9 +1,9 @@
 +++
 # Recent Publications widget.
 # This widget displays recent publications from `content/publication/`.
-widget = "publications"
+widget = "pages"
+headless = true
 active = true
-date = 2016-04-20
 
 title = "Recent Publications"
 subtitle = ""
@@ -11,28 +11,18 @@ subtitle = ""
 # Order that this section will appear in.
 weight = 20
 
-# Number of publications to list.
-count = 10
+[content]
+  page_type = "publication"
+  count = 10
+  offset = 0
+  order = "desc"
 
-# List format.
-#   0 = Simple
-#   1 = Detailed
-#   2 = APA
-#   3 = MLA
-list_format = 3
+  [content.filters]
+    tag = ""
+    category = ""
+    publication_type = ""
+    exclude_featured = false
 
-# Filter by publication type.
-# -1: Any
-#  0: Uncategorized
-#  1: Conference proceedings
-#  2: Journal
-#  3: Work in progress
-#  4: Technical report
-#  5: Book
-#  6: Book chapter
-publication_type = "-1"
-
-# Exclude publications that are shown in the Selected Publications widget?
-exclude_selected = true
+[design]
+  view = 4
 +++
-

+ 0 - 33
content/home/publications_featured.md

@@ -1,33 +0,0 @@
-+++
-# Selected Publications widget.
-# This widget displays publications from `content/publication/` which have
-# `selected = true` in their `+++` front matter.
-widget = "publications_featured"
-active = true
-date = 2016-04-20
-
-title = "Featured Publications"
-subtitle = ""
-
-# Order that this section will appear in.
-weight = 10
-
-# List format.
-#   0 = Simple
-#   1 = Detailed
-#   2 = APA
-#   3 = MLA
-list_format = 1
-
-# Filter by publication type.
-# -1: Any
-#  0: Uncategorized
-#  1: Conference proceedings
-#  2: Journal
-#  3: Work in progress
-#  4: Technical report
-#  5: Book
-#  6: Book chapter
-publication_type = "-1"
-+++
-

+ 0 - 1
content/home/tags.md

@@ -2,7 +2,6 @@
 # Tag Cloud widget.
 widget = "tag_cloud"
 active = true
-date = 2017-09-20
 
 title = "Tags"
 subtitle = ""

+ 1 - 1
themes/academic

@@ -1 +1 @@
-Subproject commit 858997033abd090f63b53a35fd43462965a075d8
+Subproject commit bc791191d30e04f0f16190d0ff4f84b145aa983c